Variables & Types
Conditionals
Loops
SDLC
Debug this code
100

What type of value is returned by input()

String

100

which is true? 

6 > 6

6 >= 5

7 < 10

8 == 9

6 >= 5

100

Name the two types of loops in Python

While and For

100

What does the acronym SDLC stand for?

Software Development Life Cycle

100

What do we call the error that we get if we have a typo? For example, spelling it 'pirnt'

Syntax Error

200

What is the value of x

x = 5

x = x + 2


7

200

which phrase do you NEVER expect to see before "else"? 

- while

- if

- elif

while

200

What does this loop print? 

for i in range(3):

    print(i)

0

1

2

200

Which SDLC phase focuses on how the software will work?

Design

200

Why does this crash?

num = "5"

print(num + 1)

Type error (trying to add the string "5" to the number 1)

300

Convert the string "42" into an integer

int("42")

300

Write a condition that checks if age is between 13 and 19 (inclusive).

if age >= 13 and age <= 19:

300

How many lines will this code output? 

for x in range(2, 8):

    print("hi")

6

300

What is one method teams use to gather requirements from clients?

Interviews, surveys, meetings, observation, etc.

300

Why won’t this print 1–5?

i = 1

while i <= 5:

    print(i)

i is never incremented. This results in an infinite loop
400

What is the output?

x = 3

y = x * 2

x = 10

print(y)

6

400

Describe the difference between if and elif

elif will only be checked if the above condition was FALSE. If will be checked every time.

400

What is wrong with this loop?


while count < 10:
    print(count)


count never goes up (infinite loop)
400

What does the Deployment phase do?

Releases the software to users. Code "Goes Live"

400

How many times does this print? 

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

print (i)

0

500

How many possible values are there for a Boolean type? 

2

500

Identify the bug:

if score = 100:

    print("Perfect!")

if score == 100:

500

Write a loop that prints every number from 5 down to 1.

for i in range(5, 0, -1):

    print(i)

500

Your client says, “This feature isn't what we wanted.” Which SDLC phase likely failed?

Requirements Gathering

500

Random Trivia: 

What year was the very first version of Python released. Points earned for being within 2 years

1991

M
e
n
u