Przywrócić automatycznie zapisane ćwiczenie: ?
Which statement about == and = in Python is correct?, == compares two values, = gives a value to a variable, = compares two values, == gives a value to a variable, Both compare values, Both assign values, Which line is an example of the equal operator?, a = 7, if a==b:, while a != 7:, a <= b, Which connector requires at least one condition to be true?, and, def, elif, or, Which expression checks that a is different from 7?, a = 7, a != 7, a == 7, a <= 7, Which connector requires both conditions to be true?, and, or, def, import, Rule: Honor List if average > 17 and maths > 18; Very good if average > 17 or maths > 18; Good in the other cases. A student has an average of 19 and maths of 15. What is the result?, Honor List, Good, Error, Very good, Rule: Honor List if average > 17 and maths > 18; Very good if average > 17 or maths > 18; Good in the other cases. A student has an average of 15 and maths of 10. What is the result?, Honor List, Very good, Good, Error, The condition is: temperature <= 20 and humidity <= 60. The temperature is 18 and the humidity is 70. What is the result?, True, because 18 <= 20, False, because the humidity 70 is not <= 60, True, because the humidity is high, False, because the temperature is 18, The condition is: temperature > 20 or humidity > 60. The temperature is 25 and the humidity is 40. What is the result?, False, because the humidity is not > 60, False, because both conditions must be true, An error is displayed, True, because the temperature is > 20, Which line defines a function named area with two parameters?, def area(a, b):, area(a, b), import area(a, b), area = (a, b), Which line calls a function named area with the values a and b?, def area(a, b):, area(a, b), import area, area == (a, b), Why is import turtle written at the beginning of a drawing program?, To define a function, To end the program, To make turtle commands available, To compare two values, A function draws a square or a triangle depending on a first value, and uses a second value for the size of the side. How many parameters does it have?, 1, 2, 3, 4, Which statement about functions with several parameters is correct?, Different principle, Cannot be called, Cannot use if, Same principle, To draw a triangle with the turtle, how many times is the forward move repeated, and by which angle does the turtle turn right each time?, 3 times, 120, 4 times, 90, 3 times, 90, 4 times, 120, The turtle program uses a while loop to repeat the forward and right commands., True, False, The symbol != is used to give a value to a variable., True, False, The parameter length_side defines the size of the shape to draw., True, False, Bad weather is displayed only if both temperature > 20 and humidity > 60 are true., True, False, The operators >, <, <=, >= are already known from Small Basic., True, False

autor:

Motyw

Pokaż wszystko

Ustawienia aktywności

Tabela rankingowa

AI Enhanced: Ta aktywność zawiera treści generowane przez AI. Dowiedz się więcej.

Zmień szablon