Why do we need conditional statements in coding?, To enable computer to count a mathematic question, To enable computer to make decision, To enable debugging process, To assign a solution to a problem, Choose the wrong statement., elif is added before if statement, elif = else-if, elif is compulsory in if-else statement, elif is added before else statement, How do you write "if statement" ?, if [color = "blue];, if(color == blue):, if (color = "blue");, if (color == "blue"):, If all the conditions are not matched, , if code block will be executed, elif code block will be executed, else code block will be executed, no action will be executed, Find the correct match., == less than, != not equal to, >= greater than, < equal to, To assign x to 20, we write..., x >= 20, x == 20, x = 20, x != 20, For the code if (age >= 18):, It will execute for aged 18 or above, It will execute for aged 18 and below, It will execute for age 18 only, It will execute for all except aged 18, Which classification is wrong?, else -> conditional operator, elif -> conditional operator, == -> comparison operator, not -> comparison operator, Choose the correct explaination, and -> both true = true, not -> wrong remains wrong, or -> one correct, one wrong = wrong, and -> both wrong = correct, if (weather == "sunny" and temp == 28):, If temperature is 28 degree Celcius , the weather is rainy, The weather is hot if temperature is 28 degree Celcius, Weather is sunny if temperature is 28 degree Celcius, Either temperature is 28 degree Celcius or weather is sunny, randomNumber = random.randint(0,9), 10 is accepted result, The value is called randomNumber, Generate a random number between 0-9, The result is not stored to a variable, Which situation uses an "if-else" statement, traffic light colour, win/lose situation, weather condition, type of transport used.
0%
Coding Quiz (8) - Conditional Statements
Share
Share
Share
by
Guanjie0807
10-12 years old
Edit Content
Print
Embed
More
Assignments
Leaderboard
Show more
Show less
This leaderboard is currently private. Click
Share
to make it public.
This leaderboard has been disabled by the resource owner.
This leaderboard is disabled as your options are different to the resource owner.
Revert Options
Gameshow quiz
is an open-ended template. It does not generate scores for a leaderboard.
Log in required
Visual style
Fonts
Subscription required
Options
Switch template
Show all
More formats will appear as you play the activity.
Open results
Copy link
QR code
Delete
Continue editing:
?