1) What is Python? a) A kind of snake b) A video game c) A programming language d) A robot 2) What is an algorithm? a) A secret code b) A sequence of actions to solve a task c) A drawing d) A computer virus 3) What does a program do? a) Makes music b) Draws shapes c) Runs an algorithm written in a programming language d) Builds houses 4) What does print("Hello") do in Python? a) Sends an email b) Prints paper c) Writes “Hello” on the screen d) Draws a picture 5) print(2 + 3 * 4) a) 20 b) 14 c) 24 d) 10 6) print((2 + 3 )* 4) a) 20 b) 14 c) 24 d) 10 7) What is a variable? a) It like an storage box in Python b) A secret number c) A game d) A password 8) Which is a good variable name? a) a b) number_of_students c) 3price d) print 9) What does the input() function do? a) Prints a message b) Gets information from the keyboard c) Calculates math d) Sends an SMS 10) Which functions are used to switch from one data type to another? a) input() b) str() functions are used to switch from one data type to another. c) int() d) print() 11) What is the output of this code? a) 105 b) 500 c) 100 d) 5 12) What does int("42") do? a) Turns the number into a string b) Makes a letter c) Turns the text(string) "42" into the number 42. d) Deletes the number 13) What is the output ? a) 1518 b) 43 c) 33 d) 11111 14) What is the output ? a) 10 b) 54 c) 9 d) 11 15) What is the correct way to convert user input to a number? a) str(input()) b) input() c) int(input()) d) float('input') 16) What happens if you try int('hello') in Python? a) A. It returns 0 b) B. It returns 'hello' c) C. It prints hello d) D. It gives an error 17) 3. What type of value does input() always return? a) 3. What type of value does input() always return? b) A. Integer c) B. Float d) C. String 18) print('12' + '34') a) What is the result of: print('12' + '34')? b) A. 46 c) B. 1234 d) C. 12 + 34 19) What is the result of: print(12 + int('34'))? a) A. 46 b) B. 1234 c) C. Error d) D. 12 + 34 20) Mark the programs without errors. a) b) c) both of them False 21) Choose the actions that this program performs. a) The program works with variables b) The program uses functions to input and output data c) The program prints calculation results d) The program prints text prompts for the user
0%
Introduction to Python Programming
שתף
שתף
שתף
על ידי
Hejaclk
עריכת תוכן
הדפסה
הטבעה
עוד
הקצאות
לוח תוצאות מובילות
הצג עוד
הצג פחות
לוח התוצאות הזה הוא כרגע פרטי. לחץ
שתף
כדי להפוך אותו לציבורי.
לוח תוצאות זה הפך ללא זמין על-ידי בעל המשאב.
לוח תוצאות זה אינו זמין מכיוון שהאפשרויות שלך שונות מאשר של בעל המשאב.
אפשרויות חזרה
חידון
היא תבנית פתוחה. זה לא יוצר ציונים עבור לוח התוצאות.
נדרשת כניסה
סגנון חזותי
גופנים
נדרש מנוי
אפשרויות
החלף תבנית
הצג הכל
תבניות נוספות יופיעו במהלך המשחק.
תוצאות פתוחות
העתק קישור
קוד QR
מחיקה
האם לשחזר את הנתונים שנשמרו באופן אוטומטי:
?