Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 13 pages
Exam (elaborations)

CNIT 155 EXAM SCRIPT 2026 UPDATED QUESTIONS AND SOLUTIONS RATED

Document preview thumbnail
Preview 2 out of 13 pages

CNIT 155 EXAM SCRIPT 2026 UPDATED QUESTIONS AND SOLUTIONS RATED

Content preview

CNIT 155 EXAM SCRIPT 2026 UPDATED QUESTIONS AND
SOLUTIONS RATED A+
✔✔The ^ operator is the same as the ** operator in Python. T/F - ✔✔False

✔✔What is the output of the following code?

StudentIDJohn = 84219643
StudentIDEmily = 41305431
print(str(StudentIDJohn) + " " + str(StudentIDEmily)) - ✔✔84219643 41305431

✔✔Which of the following will increment the data variable by 4?
A. data %= 4
B. data += 4
C. data = 4
D. data *= 4 - ✔✔B. data += 4

✔✔7%3 is the same as 7//3. T/F - ✔✔False

✔✔Any inputted data is considered string data, regardless of what the user inputted.
T/F - ✔✔True

✔✔Which of the following is a valid identifier in Python?
A. first-name
B. radius 3
C. vel12city
D. 1smith - ✔✔C. vel12ciry

✔✔Which data type is 19.256?
A. integer
B. string
C. float
D. list - ✔✔C. float

✔✔Which of the following is NOT a rule for naming an identifier?
A. The name must not be a reserved/keyword.
B. Starts with a letter, underscore, or number, followed by a sequence of letters, digits,
and underscores.
C. It must not include a space.
D. The name is case sensitive. - ✔✔B. Starts with a letter, underscore, or number,
followed by a sequence of letters, digits, and underscores.

✔✔Evaluate 10 % 3.
A. 1

, B. 3.33
C. 30
D. 3 - ✔✔A. 1

✔✔Which expression is written correctly?
A. 2x
B. 3(2a)
C. 3(4 + 3)
D. 5 * (7 + 4) - ✔✔D. 5 * (7 + 4)

✔✔Which of the following is equal to n = n - 2?
A. n =- 2
B. n -= 2
C. n = -2
D. n = 2 - 2 - ✔✔B. n -= 2

✔✔The expression (2 + * 3) results in an integer value. T/F - ✔✔False

✔✔Evaluate 12 + (3 ** 2) - ✔✔21

✔✔Exponentiation has the highest priority, and is always calculated first. T/F - ✔✔False

✔✔What is the output of the following code?
Day = 22
Month = 11
Year = 2021
print(Month, Day, Year, sep="/") - ✔✔11/22/2021

✔✔Evaluate 20 // 3 - ✔✔6
(// is floor division, rounding down to the nearest whole number)

✔✔Evaluate 40 / (4 + 6) - 3*2 - ✔✔-2

✔✔Syntax Errors occur when a program provides you with actual outputs that are
different from the desired outputs (The program runs but it gives wrong results). T/F -
✔✔False

✔✔Assume a = 7;
b = 2;
Evaluate a // b. - ✔✔3

✔✔Operations cannot be performed on strings. T/F - ✔✔False

✔✔What is the term for a programming error?

Document information

Uploaded on
April 16, 2026
Number of pages
13
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
BOARDWALK
3.5
(40)
Sold
276
Followers
8
Items
32861
Last sold
6 days ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions