Flowchart Description
Start
Input a number
Is the number greater than 0?
If Yes, display "Positive"
If No, go to the next decision
Is the number less than 0?
If Yes, display "Negative"
If No, display "Zero"
End
Question: If the user enters 0, what will the program display?
What will this program output?

What will this program output?

Consider this code: age = 16 if age >= 18: print("Adult") else: print("Minor") Why does the program print "Minor" instead of "Adult"?
In a flowchart, which shape represents a decision point where the program must choose between different paths?
What does a decision diamond
in a flowchart typically contain?
Which flowchart structure best represents this logic: "If the temperature is above 75, display 'Hot.' Otherwise, display 'Cool.'"?
What is the result of evaluating the condition: 5 >= 5?
Why must the condition inside an if statement evaluate to either True or False?
What is the primary purpose of an else statement in a program?
What will this program print?
score = 85
if score >= 90:
print("A")
elif score >= 80:
print("B")
else:
print("C")
You need to write a program that assigns letter grades based on test scores: A for 90+, B for 80-89, C for 70-79, D for 60-69, and F for below 60. Which control structure is best suited for this task?
In an if/elif/else structure, how many code blocks can actually execute when the program runs?
Consider this scenario: A program needs to check if a number is positive, negative, or zero. Why would if/elif/else be better than using three separate if statements?
What will this program output?
num = 10 if num > 5: if num > 15: print("Very High") else: print("Medium") else:
print("Low")
If you want to check whether a student's grade is between 80 and 90 (inclusive), which condition would work?
What is the key difference between how an if/else structure and an if/elif/else structure handle multiple conditions?
What will this program output?
temp = 72 if temp > 80: print("Hot") elif temp > 60: print("Comfortable") elif temp > 40: print("Cool") else:
print("Cold")
Consider this code: password = "secret123" if password == "secret123": print("Access Granted") else: print("Access Denied") Why is the == operator used instead of = in the condition?
Which condition will be True only if both comparisons are True?
What does the or operator do?
What is the result of this expression?
(5 > 3) and (2 > 4)
What does the not operator do?
What is the result of this expression?
not (4 < 6)
What is the result of this expression?
(10 >= 10) and (5 != 3)