1) If the user enters “8”… what will happen? The menu will be run again a) True b) False 2) If you want to write a list instead of range… which one is correct a) 1,2,3,4,5,6,7 b) 1, 7, 1 c) 1,2,3,4,5,6 3) --How many time you will get “you need more times” a) -6 times b) -7 times c) -None 4) How to rewrite the above list using (range) a) range(1,8,2) b) range (1,7,1) c) range(1,8,1) d) range (1,2,7) 5) Look at Line 25. If the moon sightings determined Ramadan to be 29 days, the range parameters would need changed to be: a) 1,29,1 b) 29,0,1 c) 30,1,29 d) 1,30,1 6) for days in range(1,31,1): could also be written as: for days in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30): a) True b) False 7) When running the code, if the user instead enters "5" in their menu choice, what will happen? a) The program will run the code to re-display the menu b) The program will crash, with an unexpected error c) The program will exit the while loop d) The program will never exit the while loo 8) Look at Line 9. If the variable was changed to be 3 ( choice = "3" ), the code inside the while loop would still be run. a) True b) False 9) When running the code, if option 2 is chosen, how many times is the message "No - Not long enough!" printed a) 1 b) 19 c) 20 d) 0 10) When running the code, if option 2 is chosen, how many times is the message "No - Not long enough!" printed a) 1 b) 19 c) 20 d) 0
0%
Python - Gr 9Gen Adv
שתף
שתף
שתף
על ידי
Wardaalhitta
עריכת תוכן
הדפסה
הטבעה
עוד
הקצאות
לוח תוצאות מובילות
הצג עוד
הצג פחות
לוח התוצאות הזה הוא כרגע פרטי. לחץ
שתף
כדי להפוך אותו לציבורי.
לוח תוצאות זה הפך ללא זמין על-ידי בעל המשאב.
לוח תוצאות זה אינו זמין מכיוון שהאפשרויות שלך שונות מאשר של בעל המשאב.
אפשרויות חזרה
פתח את התיבה
היא תבנית פתוחה. זה לא יוצר ציונים עבור לוח התוצאות.
נדרשת כניסה
סגנון חזותי
גופנים
נדרש מנוי
אפשרויות
החלף תבנית
הצג הכל
תבניות נוספות יופיעו במהלך המשחק.
תוצאות פתוחות
העתק קישור
קוד QR
מחיקה
האם לשחזר את הנתונים שנשמרו באופן אוטומטי:
?