1) What type of loop is a while loop? a) Condition controlled b) Count controlled 2) What is the value of x? a) 101 b) 99 c) 100 d) None of the above, it's an infinite loop 3) What is the output of this if statement? a) True b) False 4) In programming, what is iteration? a) The repetition of steps within a program b) A decision point in a program c) The order in which instructions are carried out d) Testing a program to make sure it works 5) Which two statements are used to implement iteration? a) IF and WHILE b) FOR and WHILE c) ELSE and WHILE d) IF and ELSE 6) Which of the following symbols is used in Python to mean "Not equal to"? a) == b) <> c) != d) >< 7) To repeat a fixed number of times use a a) while loop b) for loop 8) To repeat until a particular condition is true use a) while loop b) for loop 9) The character that must be at the end of the line for if, while, for is... a) : b) . c) ; d) , 10) Data type that can only be true or false a) int b) bool c) string d) float
0%
Python Quiz 2
שתף
שתף
שתף
על ידי
Karenahmed81
עריכת תוכן
הדפסה
הטבעה
עוד
הקצאות
לוח תוצאות מובילות
הצג עוד
הצג פחות
לוח התוצאות הזה הוא כרגע פרטי. לחץ
שתף
כדי להפוך אותו לציבורי.
לוח תוצאות זה הפך ללא זמין על-ידי בעל המשאב.
לוח תוצאות זה אינו זמין מכיוון שהאפשרויות שלך שונות מאשר של בעל המשאב.
אפשרויות חזרה
חידון
היא תבנית פתוחה. זה לא יוצר ציונים עבור לוח התוצאות.
נדרשת כניסה
סגנון חזותי
גופנים
נדרש מנוי
אפשרויות
החלף תבנית
הצג הכל
תבניות נוספות יופיעו במהלך המשחק.
תוצאות פתוחות
העתק קישור
קוד QR
מחיקה
האם לשחזר את הנתונים שנשמרו באופן אוטומטי:
?