Name one input device
Keyboard, mouse, microphone
print(Hello World)
print("Hello World")
How many bits in 2 bytes?
x = n + 5
print(x+5)
15
what is the escape character for a newline
"\n"
Name 2 output devices
printer, monitor
my name = "Sujatha"
myname = "Sujatha"
What is the binary value of 32
100000
print(10 +2)
12
command for output to screen in python
print()
What does CPU stand for?
Central Processing Unit
print("Hello" + \n + "World")
print("Hello\nWorld")
OR
print("Hello" + "\n" + World")
What is the decimal value of 1000 0000
128
print("10" + "2")
102
function to change the data type to integer
int()
Name 2 types of Memory in Computers:
RAM, HardDrive, Disk Drive
OR
Primary Memory, Secondary Memory
OR
Volatile and Non-Volatile Memory
The command to input a number from the user:
n = input(int("Enter a number: "))
n = int(input("Enter a number"))
How many candles do I need to represent 5(decimal) in binary
3
5(dec) is 101(bin)
x = "My"
y = "Friends"
print(x+"y")
Myy
"/t"
Its does not mean anything
"\t" is the Escape Character for tab
A ................. translates source code / high level language into binary /machine code
Compiler / Interpreter
n = 5
print("Nubmer is" + n)
n = 5
print(Nubmer is" + str(n))
What is the decimal value of 0000 1111
15
n = "10"
print(n*2)
1010
what is the datatype that represents decimal values
float