Вопрос задан 12.10.2026 в 18:28.
Предмет Информатика.
Спрашивает Анашкин Руслан.
Practice 1. Let's make simple calculations using Python: 478+1036, 5369-1473, 15.583, 145/27, 12.55*2.45 2. Calculate the following problems using Python: Dias has 500 KZT and Adilkhan has 1000 KZT. Print their total amount of money. 3. Write in the programming language: a) output of variable c b) input variables of integer type c) input variable f of real type d) output of variables a and b e) input variable w of integer type and variable x of real type 4. Составьте программу по блок-схеме: Начало, ввод: A, B, C, D, M, N, S1 = 4*A*B, S2 = C*D / (2*a + 5), S3 = M*N, S = S1 - (S2 + S3), Вывод: S, Конец. 5. What is the output of the following code? name = "Akbota" print("Hello, " + name + "!") print("Nice to meet you!") a) Hello, Akbota! Nice to meet you! b) Hello Akbota! Nice to meet you! c) Hello Akbota! Nice to meet you! d) Hello, Akbota! Nice to meet you! e) hello, akbota! nice to meet you! 6. Fix the following code: x = 3 y = 7 a = 2*x - 4*y print(a) 7. Calculate: a) 17 // 3 b) 25 // 25 c) 10 % 3 d) 15 % 8 8. What is the output of the following code? a = 11 b = 3 print(a // b + 10/2 + 2 ** 2) a) 9 b) 10 c) 11 d) 12 e) 13 9. Which of the following python code gives One plus one is equal to 2 output (select four answers)? a) print("One plus one is equal to ", 1 + 1) b) print(One plus one is equal to 2) c) print("One plus one is equal to 2") d) print("One plus one is equal to 2") e) print("One plus one is equal to", 1+3 % 2) f) print("One plus one is equal to" + "2") g) print("One plus one is equal to 2", "1 + 1") h) print("One plus one is equal to", 15 % 4 - 7 % 3)
Ответы на вопрос
Отвечает Бедная Лена.
1. Simple calculations in Python:
- 478 + 1036 gives 1514
- 5369 - 1473 gives 3896
- 15.583 gives 15.583
- 145 / 27 gives about 5.37037037037037
- 12.55 * 2.45 gives 30.7475
2. Dias has 500 KZT and Adilkhan has 1000 KZT:
print(500 + 1000)
Output: 1500
3. Python commands:
- a) output of variable c: print(c)
- b) input variables of integer type: a = int(input())
- c) input variable f of real type: f = float(input())
- d) output of variables a and b: print(a, b)
- e) input variable w of integer type and variable x of real type: w = int(input())
x = float(input())
4. Program for the block scheme:
A = float(input())
B = float(input())
C = float(input())
D = float(input())
M = float(input())
N = float(input())
S1 = 4 * A * B
S2 = C * D / (2 * A + 5)
S3 = M * N
S = S1 - (S2 + S3)
print(S)
5. The code prints two lines:
Hello, Akbota!
Nice to meet you!
The matching answer is d.
6. Fixed code:
x = 3
y = 7
a = 2 * x - 4 * y
print(a)
The result is -22.
7. Calculations:
- 17 // 3 = 5
- 25 // 25 = 1
- 10 % 3 = 1
- 15 % 8 = 7
8. In Python:
a // b = 11 // 3 = 3
10 / 2 = 5.0
2 ** 2 = 4
So the result is 12.0. From the options, the answer is d) 12.
9. The four correct variants are:
- a) print("One plus one is equal to ", 1 + 1)
- c) print("One plus one is equal to 2")
- d) print("One plus one is equal to 2")
- h) print("One plus one is equal to", 15 % 4 - 7 % 3)
Похожие вопросы
Топ вопросов за вчера в категории Информатика
Последние заданные вопросы в категории Информатика
Предметы
-
Математика
-
Литература
-
Алгебра
-
Русский язык
-
Геометрия
-
Английский язык
-
Химия
-
Физика
-
Биология
-
Другие предметы
-
История
-
Обществознание
-
Окружающий мир
-
География
-
Українська мова
-
Информатика
-
Українська література
-
Қазақ тiлi
-
Экономика
-
Музыка
-
Право
-
Беларуская мова
-
Французский язык
-
Немецкий язык
-
МХК
-
ОБЖ
-
Психология
-
Физкультура и спорт
-
Астрономия
-
Кыргыз тили
-
Оʻzbek tili

