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 8 pages
Exam (elaborations)

CNIT 155 CORE EXAM TEST 2026 QUESTIONS AND SOLUTIONS RATED

Document preview thumbnail
Preview 2 out of 8 pages

CNIT 155 CORE EXAM TEST 2026 QUESTIONS AND SOLUTIONS RATED

Content preview

CNIT 155 CORE EXAM TEST 2026 QUESTIONS AND
SOLUTIONS RATED A+
✔✔Which of the following is true about an integer? - ✔✔An integer can be stored as a
variable

✔✔T or F: Boolean only has two possible values. - ✔✔True

✔✔Which of the following is an example of a boolean value? - ✔✔True

✔✔T or F: "Hello, World!" is a string - ✔✔True

✔✔Which of the following displays a proper string literal? - ✔✔ProgrammingDialogue =
'Coding in python is fun!'

✔✔Which of the following is an example of a comment in python? - ✔✔# This is a
comment in python

✔✔What is the name of the python function that tells you a class? - ✔✔Type

✔✔T or F: A string is a numerical type of data. - ✔✔False

✔✔What is the extension of the source file for a python program? - ✔✔.py

✔✔Which of the following is a legal variable name? - ✔✔studentname1

✔✔Rules of naming identifiers include the following, except: - ✔✔Can include a space

✔✔T or F: Values cannot be converted from one type to another. - ✔✔False

✔✔What is Semantics? - ✔✔Rules that say what the program means

✔✔What is Machine Code? - ✔✔Numbers treated as instructions by the CPU. EX: 05
01 23

✔✔What is Assembly Code? - ✔✔Humanly readable way of writing machine code.
EX:
add EAX, 1
mov [ESP+4], EAX

✔✔When is Assembly code used? - ✔✔In small devices where the size of code is
important, in hardware specific code like device drivers, where performance is critical

, ✔✔T or F: High-level language can be translated into many different machine code
languages for different processors. - ✔✔True

✔✔What is a Source Program? - ✔✔A program written in a high-level language

✔✔What is Interpreter? - ✔✔Translates the statements and executes the statements in
order

✔✔What is Compiler? - ✔✔Translates statements in a language into machine code

✔✔What is IDE? - ✔✔Integrated development environment that combines several
programming tools together into one cohesive program

✔✔What is the structure of a Python Program? - ✔✔def main ():
Indentation
and
blocks
main ();

✔✔T or F: Comments should say why you are doing something. - ✔✔True

✔✔What is a String Literal? - ✔✔A stream of characters enclosed in double quotes

✔✔What does \n do? - ✔✔Inserts a new line in the output

✔✔What does \t do? - ✔✔Inserts a tab

✔✔What does \\ do? - ✔✔Displays \

✔✔What does \" do? - ✔✔Displays "

✔✔What are the three phases of solving any problem? - ✔✔Inputs, then Processing,
then Outputs

✔✔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

Document information

Uploaded on
April 16, 2026
Number of pages
8
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$11.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