CNIT 155 MAIN EXAMINATION 2026 SET QUESTIONS AND
SOLUTIONS RATED A+
✔✔What is the data in a program? - ✔✔Data value, data types, data name, data
conversion
✔✔What is Data Value? - ✔✔A value is one of the fundamental things, like a word or a
number, that a program manipulates
✔✔What is Data Type? - ✔✔Data values can be classified into different classes
✔✔These are examples of numerical data types - ✔✔Integers, Floating point numbers,
complex numbers
✔✔These are examples of textual data types - ✔✔String
✔✔These are examples of boolean data types - ✔✔Bool (True/False)
✔✔What is a Variable? - ✔✔A place holder in computer's RAM
✔✔T or F: Any inputted data is going to be considered as a String data (Regardless of
what the user inputted). - ✔✔True
✔✔What is a Statement? - ✔✔An instruction that the Python interpreter can execute
✔✔What is a Expression? - ✔✔A combination of values, variables, operators, and calls
to functions
✔✔What is Operators? - ✔✔Special tokens that represent computations like addition,
multiplication, and division
✔✔What is Operands? - ✔✔The values the operator works on
✔✔Addition operator - ✔✔+ (2 + 5 = 7)
✔✔Subtraction operator - ✔✔- (2 - 5 = -3)
✔✔Multiplication operator - ✔✔* (2 * 5 = 10)
✔✔Division operator - ✔✔/ ( = 0.4)
✔✔Modulus operator - ✔✔% (2 % 5 = 2)
, ✔✔Exponent operator - ✔✔** (2 ** 4 = 16)
✔✔Floor Division operator - ✔✔// (9 // 2 = 4)
✔✔T or F: Arithmetic operators are binary operators. - ✔✔True
✔✔In the expression (17 * 9), the operator is: - ✔✔*
✔✔In the expression (17 * 9), the operant is: - ✔✔17 and 9
✔✔T or F: The Precedence Rules state that anything inside the ( ) gets evaluated first. -
✔✔True
✔✔What is Built-in functions? - ✔✔They are part of Python language, and there is no
need for the programmer to import any library to use them
✔✔What is Library functions? - ✔✔These are inside a special library, such as the Math
library, Random library, graphics library, etc
✔✔What is User-defined functions? - ✔✔Functions created and defined by the user
✔✔You can use the math library by typing: - ✔✔import math
✔✔What are Bugs? - ✔✔Programming errors
✔✔What is Debugging? - ✔✔The process of tracking down bugs and correcting them
✔✔What is Syntax Errors? - ✔✔Result from errors in code construction, such as
mistyping a keyword, omitting a necessary colon, or using a wrong indentation.
The program does not run. You have to fix this before rerunning the program.
✔✔What is Logical 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.
✔✔What is Run-Time Errors? - ✔✔Occur while an application is running where Python
interpreter detects an operation that is impossible to complete.
The program runs, but it does not complete. The program crashes in the middle of
running.
✔✔Who is the inventor of Boolean Algebra? - ✔✔George Boole
SOLUTIONS RATED A+
✔✔What is the data in a program? - ✔✔Data value, data types, data name, data
conversion
✔✔What is Data Value? - ✔✔A value is one of the fundamental things, like a word or a
number, that a program manipulates
✔✔What is Data Type? - ✔✔Data values can be classified into different classes
✔✔These are examples of numerical data types - ✔✔Integers, Floating point numbers,
complex numbers
✔✔These are examples of textual data types - ✔✔String
✔✔These are examples of boolean data types - ✔✔Bool (True/False)
✔✔What is a Variable? - ✔✔A place holder in computer's RAM
✔✔T or F: Any inputted data is going to be considered as a String data (Regardless of
what the user inputted). - ✔✔True
✔✔What is a Statement? - ✔✔An instruction that the Python interpreter can execute
✔✔What is a Expression? - ✔✔A combination of values, variables, operators, and calls
to functions
✔✔What is Operators? - ✔✔Special tokens that represent computations like addition,
multiplication, and division
✔✔What is Operands? - ✔✔The values the operator works on
✔✔Addition operator - ✔✔+ (2 + 5 = 7)
✔✔Subtraction operator - ✔✔- (2 - 5 = -3)
✔✔Multiplication operator - ✔✔* (2 * 5 = 10)
✔✔Division operator - ✔✔/ ( = 0.4)
✔✔Modulus operator - ✔✔% (2 % 5 = 2)
, ✔✔Exponent operator - ✔✔** (2 ** 4 = 16)
✔✔Floor Division operator - ✔✔// (9 // 2 = 4)
✔✔T or F: Arithmetic operators are binary operators. - ✔✔True
✔✔In the expression (17 * 9), the operator is: - ✔✔*
✔✔In the expression (17 * 9), the operant is: - ✔✔17 and 9
✔✔T or F: The Precedence Rules state that anything inside the ( ) gets evaluated first. -
✔✔True
✔✔What is Built-in functions? - ✔✔They are part of Python language, and there is no
need for the programmer to import any library to use them
✔✔What is Library functions? - ✔✔These are inside a special library, such as the Math
library, Random library, graphics library, etc
✔✔What is User-defined functions? - ✔✔Functions created and defined by the user
✔✔You can use the math library by typing: - ✔✔import math
✔✔What are Bugs? - ✔✔Programming errors
✔✔What is Debugging? - ✔✔The process of tracking down bugs and correcting them
✔✔What is Syntax Errors? - ✔✔Result from errors in code construction, such as
mistyping a keyword, omitting a necessary colon, or using a wrong indentation.
The program does not run. You have to fix this before rerunning the program.
✔✔What is Logical 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.
✔✔What is Run-Time Errors? - ✔✔Occur while an application is running where Python
interpreter detects an operation that is impossible to complete.
The program runs, but it does not complete. The program crashes in the middle of
running.
✔✔Who is the inventor of Boolean Algebra? - ✔✔George Boole