Fundamentals &
Binary
Bugs - Find'n'Fix
mixed bag
What is the output?
What is the output? Iteration/loops
100

Name 2 types of Memory in Computers

RAM, HardDrive, Disk Drive 

OR

Primary Memory, Secondary Memory

OR

Volatile and Non-Volatile Memory

100

print(Hello World)

print("Hello World")

100

Python uses what feature to indicate a block of code? eg, inside an if statement?

indentation

100

n = 5

x = n + 20

print(x+5)

30
100

for i in range (1, 3):

    print ("Hello")

Hello

Hello

200

What is the decimal value of 1111 1111

255

200

my name = "Sujatha"

myname = "Sujatha"

200

#What does this code do logically? Assume user inputs n

if n%2 = 0:

    print("???")

else:

    print("***")

find if a number n is even or odd

200

print("Hello/tare your there?")

Hello/tare your there?

200

for i in range (2):

     print("what?")

what

what

300

A ................. translates source code / high level language into binary /machine code

Compiler / Interpreter

300

print("Hello" + \n + "World")

print("Hello\nWorld")

OR

print("Hello" + "\n" + World")

300

what's the output?

count = 1

while count < 10:

    if count == 2:

         print("2")

    count += 2

* nothing is printed
300

print("10" + "2")

102

300

count = 0

while count !=3:

       print ("word")

       count++

word

word

word

400

How many bits in 3 bytes?

24

400

The command to input a number from the user:

n = input(int("Enter a number: "))


n = int(input("Enter a number"))

400

x = 5

for i in range (4)

     x++

print (x)

9

400

x = "My"

y = "Friends"

print(x+"y", end = ",")

print(y)

Myy, Friends

400

for i in range (1, 100, 10):

       print(i, end = " ")

1 11 21 31 41 51 61 71 81 91

500

How many candles do I need to represent 6 (decimal) in binary

3

6(dec)  is 110(bin)

500

n = 5

print("Nubmer is" + n)

n = 5

print(Nubmer is" + str(n))

500

x = "test"

n = 8

if x == "test":

    n = 5

elif n == 8:

    n = 10

print(n)


5

500

n = "25"

print(n*2)

2525

500

n = 0

while n < 6:

    n=n+1

    print(n)

1

2

3

4

5

6

M
e
n
u