CNIT 155 EXAMINATION TEST 2025/2026 QUESTIONS
WITH ANSWERS RATED A+
✔✔A bit is the smallest unit of data in a computer. - ✔✔True
✔✔Python is commonly used to create things like websites, games, and graphic
interfaces. - ✔✔True
✔✔What piece of hardware connects all the components and devices of a computer? -
✔✔Motherboard
✔✔System software is used for ___. - ✔✔Managing a computers resources
✔✔"Hello, World!" is a string - ✔✔True
✔✔Python needs a main function to operate. - ✔✔False
✔✔A string is a numerical type of data. - ✔✔False
✔✔What is the name of the python functions that tells you a class's type? - ✔✔Type
✔✔Values cannot be converted from one type to another. - ✔✔False
✔✔What is the extension of the source file for a python program? - ✔✔.py
✔✔Rules of naming identifiers cannot include: - ✔✔A space
✔✔String values can never be converted to integer values. - ✔✔False
✔✔Boolean only has two possible values. - ✔✔True
✔✔print() is an example of an input. - ✔✔False
✔✔Operations cannot be performed on strings. - ✔✔False
✔✔What is the term for a programming error? - ✔✔Bug
✔✔Evaluate 20 // 3. - ✔✔6
✔✔Which of the following will increment the data variable by 4? - ✔✔data += 4
✔✔7 % 3 is the same as 7 // 3. - ✔✔False
, ✔✔The function sqrt (x) is not a proper mathematical function in the Python math library
- ✔✔False
✔✔Which of the following is NOT a rule for naming an identifier? - ✔✔Starts with a
letter, underscore, or number, followed by a sequence of letters, digits, and
underscores.
✔✔The ^ operator is the same as the ** operator in Python. - ✔✔False
✔✔What is the output of the following code?
Day = 22
Month = 11
Year = 2021
print(Month, Day, Year, sep="/") - ✔✔11/22/2021
✔✔The print function does not return a value. - ✔✔True
✔✔Evaluate 40 / (4 + 6) - 3*2 - ✔✔-2
✔✔Any inputted data is considered string data, regardless of what the user inputted. -
✔✔True
✔✔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). -
✔✔False
✔✔The expression (2 + * 3) results in an integer value. - ✔✔False
✔✔Exponentiation has the highest priority, and is always calculated first. - ✔✔False
✔✔Assume
a=7
b=2
Evaluate a // b. - ✔✔3
✔✔Which is the output of the following code?
x = John
print("Hello ", x) - ✔✔Hello John
✔✔Evaluate 10 % 3. - ✔✔1
✔✔What is the value of the following expression?
9 + 3 x 2 ^ 2 / (18-16) - ✔✔15
WITH ANSWERS RATED A+
✔✔A bit is the smallest unit of data in a computer. - ✔✔True
✔✔Python is commonly used to create things like websites, games, and graphic
interfaces. - ✔✔True
✔✔What piece of hardware connects all the components and devices of a computer? -
✔✔Motherboard
✔✔System software is used for ___. - ✔✔Managing a computers resources
✔✔"Hello, World!" is a string - ✔✔True
✔✔Python needs a main function to operate. - ✔✔False
✔✔A string is a numerical type of data. - ✔✔False
✔✔What is the name of the python functions that tells you a class's type? - ✔✔Type
✔✔Values cannot be converted from one type to another. - ✔✔False
✔✔What is the extension of the source file for a python program? - ✔✔.py
✔✔Rules of naming identifiers cannot include: - ✔✔A space
✔✔String values can never be converted to integer values. - ✔✔False
✔✔Boolean only has two possible values. - ✔✔True
✔✔print() is an example of an input. - ✔✔False
✔✔Operations cannot be performed on strings. - ✔✔False
✔✔What is the term for a programming error? - ✔✔Bug
✔✔Evaluate 20 // 3. - ✔✔6
✔✔Which of the following will increment the data variable by 4? - ✔✔data += 4
✔✔7 % 3 is the same as 7 // 3. - ✔✔False
, ✔✔The function sqrt (x) is not a proper mathematical function in the Python math library
- ✔✔False
✔✔Which of the following is NOT a rule for naming an identifier? - ✔✔Starts with a
letter, underscore, or number, followed by a sequence of letters, digits, and
underscores.
✔✔The ^ operator is the same as the ** operator in Python. - ✔✔False
✔✔What is the output of the following code?
Day = 22
Month = 11
Year = 2021
print(Month, Day, Year, sep="/") - ✔✔11/22/2021
✔✔The print function does not return a value. - ✔✔True
✔✔Evaluate 40 / (4 + 6) - 3*2 - ✔✔-2
✔✔Any inputted data is considered string data, regardless of what the user inputted. -
✔✔True
✔✔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). -
✔✔False
✔✔The expression (2 + * 3) results in an integer value. - ✔✔False
✔✔Exponentiation has the highest priority, and is always calculated first. - ✔✔False
✔✔Assume
a=7
b=2
Evaluate a // b. - ✔✔3
✔✔Which is the output of the following code?
x = John
print("Hello ", x) - ✔✔Hello John
✔✔Evaluate 10 % 3. - ✔✔1
✔✔What is the value of the following expression?
9 + 3 x 2 ^ 2 / (18-16) - ✔✔15