WorksheetsConditionals and Loops
Total questions: 9
Worksheet time: 5mins
What will be the output of the following program?
All even numbers until 10 will be displayed
All odd numbers until 10 will be displayed
In the following program which loop is used?
For loop
Recursion
For/In loop
While loop
In the following program which loop is used?
For loop
Recursion
For/In loop
While loop
In the following program which loop is used?
For loop
Recursion
For/In loop
While loop
According the following program state the output
You have enough money to purchase the item!
You do not have enough money in your account to purchase this item.
Accordingly to the following program state the output
Grade A
Grade B
Grade C
Grade D
Failed
Which type of conditional statement is this?
If Statement
If...else Statement
Nested If Statement
If... Else If Statement
According to the following program what will be the output?
You are Eligible to Work.
You are not Eligible to Work as per the Government rules.
According to the following program what will happen if the user enters the incorrect password the 5th time?
Login Successful!
Incorrect password... Try again!
3 unsuccessful attempts...The system is blocked!
The user cannot enter the password the 5th time as the loop will stop after 3rd unsuccessful event.
