1) Operators used to compare values such as: ==, >, <, <=, >=, != a) Relational operator b) Logical operator 2) Operators which result in either true or false such as: or and not a) Relational operator b) Logical operator 3) Combines else and if, allows you to add more than one a) If statement b) Elif statement 4) Selection/decision statement used to choose the code blocks to run a) If-else statement b) If statement 5) A reference to a location in memory for data storage a) Variable b) Data type 6) Can we write if/else into one line in python? a) Yes b) No c) if/else not used in python d) None of the above 7) What is the result of the condition passed in the if block in Python? a) “Boolean Output” b) Numerical Output” c) ”Both based on the scenario” d) ”None of these” 8) What keyword would you use to add an alternative condition to an if statement? a) else if b) elseif c) elif d) None of the above 9) Which one of the following is a invalid Python if statement : a) if a>=2 : b) if (a >= 2): c) if (a => 22): d) none of the above: 10) Does python have switch case statement? a) True b) False c) Python has switch statement but we can not use it. d) None of the above
0%
Python If statements
שתף
שתף
שתף
על ידי
Nn87
עריכת תוכן
הדפסה
הטבעה
עוד
הקצאות
לוח תוצאות מובילות
הצג עוד
הצג פחות
לוח התוצאות הזה הוא כרגע פרטי. לחץ
שתף
כדי להפוך אותו לציבורי.
לוח תוצאות זה הפך ללא זמין על-ידי בעל המשאב.
לוח תוצאות זה אינו זמין מכיוון שהאפשרויות שלך שונות מאשר של בעל המשאב.
אפשרויות חזרה
חידון טלויזיה
היא תבנית פתוחה. זה לא יוצר ציונים עבור לוח התוצאות.
נדרשת כניסה
סגנון חזותי
גופנים
נדרש מנוי
אפשרויות
החלף תבנית
הצג הכל
תבניות נוספות יופיעו במהלך המשחק.
תוצאות פתוחות
העתק קישור
קוד QR
מחיקה
האם לשחזר את הנתונים שנשמרו באופן אוטומטי:
?