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
Compartir
Compartir
Compartir
per en/la
Guanjie0807
10-12 years old
Editar continguts
Imprimir
Incrustar
Més
Assignacions
Tauler de classificació
Mostrar-ne més
Mostrar-ne menys
Aquesta taula de classificació és privada actualment. Fés clic a
Compartir
per fer-la públic.
El propietari del recurs ha inhabilitat aquesta taula de classificació.
Aquesta taula de classificació està inhabilitada perquè que les teves opcions són diferents a les del propietari del recurs.
Reverteix les opcions
Qüestionari de concurs
és una plantilla de final obert. No genera puntuacions per a una taula de classificació.
Cal iniciar la sessió
Estil visual
Tipus de lletra
Subscripció obligatòria
Opcions
Canvia de fonament
Mostrar-ho tot
Apareixeran més formats a mesura que jugueu a l'activitat.
Resultats oberts
Copiar enllaç
Codi QR
Suprimir
Restaurar desada automàtica:
?