What does print do in most programming languages like Python?, Sends data to a file, Reads a value from the user, Displays text, Creates a new variable, Which of the following is a valid variable name in Python?, 1stValue, name-1, name_1, full name, What is the value of x after this code runs? x = 5 , x = x + 3, 15, 3, 8, 5, Which operator is used to compare two values, rather than assign one?, =, ==, <, >, What will this code output? for i in range(3): print("Hello"), Prints “Hello” forever, Prints “Hello” three times, Prints “Hello” twice, Prints “Hello” once, What is the main purpose of an if statement in a program?, As Reusable functions, To repeat a task a fixed number of times, To execute code only when certain conditions are met, To display output to the user, What will this code print? x = 10, if x > 5: print("A"); else: print("B");, A, B, Nothing, Crashout, What is the output of this code? x = 2, y = 3, print(x ** y), 5, 6, 8, 9, What is the output of this code? x = 10, y = 5, print( x // y + x % y ), 2, 4, 10, 11, Which statement correctly defines a function that returns the square of a number?, def square(x): print ( x * x ), def square(x): return x * x, def square(): return x * x, square = lambda: x * x
0%
Programming 101
Baham ko'rish
Baham ko'rish
tomonidan
Sy41
Tarkibini tahrirlash
Saqlash
Yoqadi
Chop etish
qo'shib qo'yish
Ko'proq
Tayinlashlar
Ilg'orlar ro'yxati
Ko'proq ko'rsatish
Kamroq koʻrsatish
Ushbu etakchilar jadvali hozirda xususiy. Uni ommaga etkazish uchun
Ulashish-ni
bosing.
Liderlar ro'yxati resurs egasi tomonidan o'chirib qo'yildi.
Ushbu etakchilar ro'yxati o'chirib qo'yilgan, chunki sizning variantlaringiz resurs egasidan farq qiladi.
Qaytish moslamalari
Viktorina
ochiq-oydin shablon. Etakchilar ro'yxati uchun ballar yaratmaydi.
Tizimga kirish talab qilinadi
Vizual uslub
Shriftlar
Obuna talab etiladi
Moslamalar
Yana shunday
BASIC questions!
tomonidan
Withateacher
Gʻildirakni aylantirish
52
Quiz: Variables
tomonidan
Janimorton
Viktorina
19
BASIC 1 - REVIEW
tomonidan
Julianeezoe1
Oynani ochish
5
Python Quiz - Concepts revisited
tomonidan
Shinuarora28
Viktorina
6
Programming Basics Revision
tomonidan
Qwruenshuwa
Labirent quvish
5
Об'єкти мови програмування Python, 8 клас
tomonidan
Annatselujko
Anagramma
42
Python. Цикл For (Класичні задачі)
tomonidan
Bobkovachernenko
Tenglashtirish
14
Повторення Python
tomonidan
U36144624
Oʻyinni qidirish
10
Namunani almashtirish
Hammasini koʻrsatish
Ochiq natijalar
Bogʻdan nusxa olish
Tez javob kodi
& Olib tashlash
Tahrirlashni davom ettirish:
?