C859 Python Syntax Questions With Complete Solutions
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 floa
Written for
- Institution
-
Western Governers University
- Course
-
WGU C859
Document information
- Uploaded on
- July 12, 2023
- Number of pages
- 7
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
c859 python syntax questions with complete solutio
Also available in package deal