Computer Science and Entrepreneurship Python Programming Control Structures Medium Q1. What is nested conditional? Condition within a condition Condition without an else A type of loop A type of multiple if
Computer Science and Entrepreneurship Python Programming Control Structures Medium Q2. Which structure checks multiple conditions? If-elif-else while loop for loop Nested loop
Computer Science and Entrepreneurship Python Programming Control Structures Medium Q3. What is shorthand version of if-else? if condition else condition else if else if condition if condition then else
Computer Science and Entrepreneurship Python Programming Control Structures Medium Q4. What does an if statement do? Run if true Run if false Run for both true/false Run as a loop
Computer Science and Entrepreneurship Python Programming Control Structures Medium Q5. Which is a decision-making structure? if statement while loop for loop range
Computer Science and Entrepreneurship Python Programming Control Structures Medium Q6. How many types of control structures are there in programming? 1 2 3 4
Computer Science and Entrepreneurship Python Programming Control Structures Medium Q7. What will be the output? list(range(1, 10, 3)) [1, 4, 7] [1, 3, 6, 9] [1, 4, 7, 10] [0, 3, 6, 9]
Computer Science and Entrepreneurship Python Programming Control Structures Medium Q8. What will be the output? for i in range(2, 6): print(i) 2 3 4 5 2 3 4 5 6 3 4 5 6 1 2 3 4 5
Computer Science and Entrepreneurship Python Programming Control Structures Medium Q9. What does the range() function return? A list A tuple A sequence of numbers A string
Computer Science and Entrepreneurship Python Programming Control Structures Medium Q10. What is nested if? Multiple loops If inside another if Loop inside loop Function inside function