C859 Python Syntax EXAM 2023/2024
C859 Python Syntax EXAM 2023/2024 var1, var2, var3 = 1, 2, 3 - CORRECT ANSWER multiple variable assignment 12 - CORRECT ANSWER integer 1.2 - CORRECT ANSWER float 'twelve' - CORRECT ANSWER string "twelve" - CORRECT ANSWER string True or False - CORRECT ANSWER Boolean value type() - CORRECT ANSWER determines type of an object (integer, boolean, etc) int() - CORRECT ANSWER converts to integer object float() - CORRECT ANSWER converts to float object str() - CORRECT ANSWER converts to string object print() - CORRECT ANSWER displays a message + - CORRECT ANSWER addition (integer) or concatenation (string) - - CORRECT ANSWER subtraction ** - CORRECT ANSWER power of % - CORRECT ANSWER modulus, remainder / - CORRECT ANSWER division, always results in float // - CORRECT ANSWER division, always results in integer
Document information
- Uploaded on
- October 16, 2023
- Number of pages
- 8
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers