Предложите пользователю ввести его имя и возраст. Увеличьте возраст на 1 и выведите сообщение: [имя] next birthday you will be [новый возраст]
КАКОЙ ВАРИАНТ КОДА ПРАВИЛЬНЫЙ
PYTHON - 57
Quiz
•
Computers
•
7th Grade
•
Medium
Елена Давыдова-Мартынова
Used 10+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 5 pts
Предложите пользователю ввести его имя и возраст. Увеличьте возраст на 1 и выведите сообщение: [имя] next birthday you will be [новый возраст]
КАКОЙ ВАРИАНТ КОДА ПРАВИЛЬНЫЙ
name = input ("What is your name? ")
age = int (input("How old are you? "))
newAge = age + 1
print (name, " next birthday you will be ", newAge)
name = int ("What is your name? ")
age = input (input("How old are you? "))
newAge = age + 1
print (name, " next birthday you will be ", newAge)
name = input ("What is your name? ")
age = int (input("How old are you? "))
newAge = age + 5
print (name, " next birthday you will be ", newAge)
2.
MULTIPLE CHOICE QUESTION
45 sec • 3 pts
num1 = 93
Прибавляет к первой переменной 93
Вычитает из переменной 93
Присваивает значение переменной
3.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
print ("This is a message")
Что появится на экране после выполнения команды
This is a message
"This is a message"
("This is a message")
4.
MULTIPLE CHOICE QUESTION
2 mins • 4 pts
num1 = int(input("Enter first number: "))
num2 = int(input("Enter second number: "))
Пользователю нужно последовательно ввести 2 числа
Пользователь должен ввести сначала единицу, а затем двойку
Пользователю нужно ввести текстовой ответ
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Что делает функция print() в Python?
Сканирует введенные данные
Выводит информацию на экран
Сохраняет данные в файл
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как в Python создать переменную x со значением 10
x = "10"
x : = 10
x = 10
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой оператор используется для сравнения значений на равенство в Python?
=
==
===
10 questions
Тест по начальным функциям информатики
Quiz
•
6th - 8th Grade
20 questions
Year 7 Lent
Quiz
•
7th Grade
10 questions
Python
Quiz
•
7th Grade
15 questions
Мова програмування
Quiz
•
7th Grade
15 questions
ASK F2 -KOD ARAHAN (PYTHON)
Quiz
•
1st Grade - University
17 questions
Компютърно моделиране с Python
Quiz
•
7th Grade
20 questions
Python (The Basics)
Quiz
•
6th - 10th Grade
20 questions
Python_2
Quiz
•
6th - 8th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check
Quiz
•
5th - 7th Grade
10 questions
Identifying equations
Quiz
•
KG - University
44 questions
El fin del año- 7th
Quiz
•
7th - 12th Grade
20 questions
Math Review
Quiz
•
7th Grade
14 questions
Subtracting Integers
Lesson
•
6th - 8th Grade
15 questions
Exponent Properties
Quiz
•
7th - 9th Grade