1) What is a function in Python? a) A block of code that performs a specific task e.g. print, input etc. b) A block of code that makes decisions. c) A piece of code used for repitition. d) Code that calculates values. 2) What function is used in Python to get the user to enter information? a) print b) int c) input d) call 3) What function is used in Python to output information? a) print b) int c) input d) call 4) what is meant by the term 'casting'? a) Naming a variable. b) To calculate values. c) Giving a value to a variable. d) To change the data type of a variable. 5) What function is used to change the data type of a variable to a whole number? a) str b) int c) boo d) float 6) What is a variable? a) A data type b) A storage location c) A function d) A loop 7) Which is a data type? a) Integer b) Variable c) Loop d) Function 8) What is a string? a) A number b) Text data c) A loop d) A function 9) What is 'int' used for? a) Text data b) Whole numbers c) Decimals d) Booleans 10) Which is a boolean value? a) True b) String c) Integer d) Float 11) What does 'print()' do? a) Stores data b) Displays output c) Defines a loop d) Ends a function
0%
8.5.2 Programming with Python KR
שתף
שתף
שתף
על ידי
Mmt4
KS3
Computing
עריכת תוכן
הדפסה
הטבעה
עוד
הקצאות
לוח תוצאות מובילות
הצג עוד
הצג פחות
לוח התוצאות הזה הוא כרגע פרטי. לחץ
שתף
כדי להפוך אותו לציבורי.
לוח תוצאות זה הפך ללא זמין על-ידי בעל המשאב.
לוח תוצאות זה אינו זמין מכיוון שהאפשרויות שלך שונות מאשר של בעל המשאב.
אפשרויות חזרה
מרדף במבוך
היא תבנית פתוחה. זה לא יוצר ציונים עבור לוח התוצאות.
נדרשת כניסה
סגנון חזותי
גופנים
נדרש מנוי
אפשרויות
החלף תבנית
הצג הכל
תבניות נוספות יופיעו במהלך המשחק.
תוצאות פתוחות
העתק קישור
קוד QR
מחיקה
האם לשחזר את הנתונים שנשמרו באופן אוטומטי:
?