Квиз по Python: Условия и Циклы

Quiz
•
Computers
•
12th Grade
•
Hard
Андрей Иванов
Used 12+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как вывести текст "Привет, мир!" в Python?
print "Привет, мир!"
print("Привет, мир!")
echo("Привет, мир!")
console.log("Привет, мир!")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как запросить ввод числа от пользователя?
number = int(input("Введите число: "))
number = input("Введите число: ")
number = read("Введите число: ")
number = console.input("Введите число: ")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как проверить, что переменная x равна 10?
if x == "10":
if x = 10:
if x == 10:
if x === 10:
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что выведет этот код? x = 5 print(x + 3)
53
8
x + 3
Ошибку
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой оператор используется для "иначе" в условии?
elseif
elif
else
otherwise
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как напечатать число и текст вместе? age = 12
print(age + " лет")
print(age, "лет")
print(f"{age} лет")
print(str(age) + " лет")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что делает этот код? if temperature > 30: print("Жарко") else: print("Не жарко")
Проверяет, больше ли temperature 30, и выводит "Жарко" или "Не жарко"
Всегда выводит "Жарко"
Сравнивает temperature с 0
Вызывает ошибку
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python String

Quiz
•
12th Grade
17 questions
Operators in Python

Quiz
•
9th Grade - Professio...
25 questions
Algorithms - python (GCSE)

Quiz
•
10th - 12th Grade
20 questions
ULANGAN TIK KELAS 7

Quiz
•
12th Grade
20 questions
pyplot in python class 12 (14/08/20)

Quiz
•
12th Grade
16 questions
Python Review

Quiz
•
9th - 12th Grade
20 questions
Quarter 3 Final Exam: Functions and Parameters

Quiz
•
9th - 12th Grade
15 questions
Сестрорецк Python Занятие 6

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade