CS 1101 UNIT 2: Variables, Expressions, and Statements 100% Solved
CS 1101 UNIT 2: Variables, Expressions, and Statements 100% Solved What output will the following python command produce: >>> print (1,000,000) Select one: a. 1,000 b. 1,000,000 c. 1 0 0 d. Error invalid type The correct answer is: 1 0 0 What output will the following python commands produce: >>> n = 17 >>> print (n) Select one: a. (n) b. 17.0 c. n d. 17 The correct answer is: 17 What output will the following python command produce: >>> percentage = ( 60 * 100) // 55 >>> print (percentage) Select one: a. percentage b. 109 c. 109. d. 109.0 The correct answer is: 109 What output will the following python commands produce: >>> print (2 * (3-1)) Select one: a. 6 b. 5 c. 4 d. 3 The correct answer is: 4 What output will the following python commands produce: >>> print ((1+1)**(5-2)) Select one: a. 16 b. 8 c. 4 d. 2 The correct answer is: 8 What output will the following python commands produce: >>> print (2*3-1) Select one:
Written for
- Institution
- CS 1101 UNIT 2:
- Course
- CS 1101 UNIT 2:
Document information
- Uploaded on
- May 18, 2024
- Number of pages
- 9
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
cs 1101 unit 2 variables expressions and state
Document also available in package deal