Exam 1 - Programming Logic and
Design (CPT 168) Questions and
Answers
Which mathematical operator is used to raise 5 to the second power in Python? -
ANSWER-**
The CPU understands instructions written in a binary machine language. -
ANSWER-True
Computer programs typically perform three steps: input is received, some process is
performed on the input, and output is produced. - ANSWER-True
Which computer language uses short words known as mnemonics for writing
programs? - ANSWER-Assembly
The main reason to use secondary storage is to hold data for long periods of time,
even when the power supply to the computer is turned off. - ANSWER-True
IDLE is an alternative method to using a text editor to write, execute, and test a
Python program. - ANSWER-IDLE
What symbol is used to mark the beginning and end of a string? - ANSWER-a quote
mark ('')
The disk drive is a secondary storage device that stores data by ________ encoding
it onto a spinning circular disk. - ANSWER-magnetically
RAM is a volatile memory used for temporary storage while a program is running. -
ANSWER-True
Python allows programmers to break a statement into multiple lines. - ANSWER-
True
A(n) ________ is a diagram that graphically depicts the steps that take place in a
program? - ANSWER-flowchart
To use Python's turtle graphics, you must include which of the following statements
in your program? - ANSWER-import turtle
A ________ has no moving parts and operates faster than a traditional disk drive. -
ANSWER-SSD (solid state drive)
Design (CPT 168) Questions and
Answers
Which mathematical operator is used to raise 5 to the second power in Python? -
ANSWER-**
The CPU understands instructions written in a binary machine language. -
ANSWER-True
Computer programs typically perform three steps: input is received, some process is
performed on the input, and output is produced. - ANSWER-True
Which computer language uses short words known as mnemonics for writing
programs? - ANSWER-Assembly
The main reason to use secondary storage is to hold data for long periods of time,
even when the power supply to the computer is turned off. - ANSWER-True
IDLE is an alternative method to using a text editor to write, execute, and test a
Python program. - ANSWER-IDLE
What symbol is used to mark the beginning and end of a string? - ANSWER-a quote
mark ('')
The disk drive is a secondary storage device that stores data by ________ encoding
it onto a spinning circular disk. - ANSWER-magnetically
RAM is a volatile memory used for temporary storage while a program is running. -
ANSWER-True
Python allows programmers to break a statement into multiple lines. - ANSWER-
True
A(n) ________ is a diagram that graphically depicts the steps that take place in a
program? - ANSWER-flowchart
To use Python's turtle graphics, you must include which of the following statements
in your program? - ANSWER-import turtle
A ________ has no moving parts and operates faster than a traditional disk drive. -
ANSWER-SSD (solid state drive)