CS8202 -Principles of Computer Engineering Exam
Computer programs are referred to as ___. - (ANSWER)Software
A ___ is any person who runs a program. - (ANSWER)User
A sequence of instructions is called a(n) ___. - (ANSWER)Program
#$%^&*()_)
The mechanical and electrical devices of a computer are referred to as ___. - (*&^
(ANSWER)Hardware
The remainder of an integer division is accomplished using the ____________ operator. -
(ANSWER)%
In Python, variable names may consist of ____________. - (ANSWER)All of the above
(Underscores, digits, letters)
Grammatical and punctuation errors are called ____________. - (ANSWER)syntax errors
Integer division is accomplished using the ____________ operator. - (ANSWER)//
Evaluate the following statements:
num = 4
num **=2 - (ANSWER)16
If the value of n is 3.14159, the function round(n) will return ____________. - (ANSWER)3
, CS8202 -Principles of Computer Engineering Exam
Which function returns the single-character string of the character with ASCII value n for
nonnegative numbers? - (ANSWER)chr(n)
When an if-elif-else statement is evaluated, which block of statements is evaluated? -
(ANSWER)the first condition satisfied
When an if-else statement contains other if-else statements, it is said to be ____________. -
#$%^&*()_)
(ANSWER)nested (*&^
When comparing two lists of different lengths, if all items pairs match up to the end of the
shorter sequence, which sequence is said to be the lesser of the two? - (ANSWER)the
shorter sequence
An if-elif-else statement can contain ____________ clauses. - (ANSWER)any number of
When an if-else statement needs to allow for more than two possible alternatives, you use
a(n) ____________ clause. - (ANSWER)elif
What Python loop repeatedly executes a block of statements as long as a certain condition
is met? - (ANSWER)While
The parentheses of the range function can contain ____________ values. - (ANSWER)all of
the above
(one, two, or three)
Each execution of the body of a loop is called a(n) ____________. - (ANSWER)pass
The ____________ statement causes an exit from anywhere in the body of a loop. -
(ANSWER)break
Computer programs are referred to as ___. - (ANSWER)Software
A ___ is any person who runs a program. - (ANSWER)User
A sequence of instructions is called a(n) ___. - (ANSWER)Program
#$%^&*()_)
The mechanical and electrical devices of a computer are referred to as ___. - (*&^
(ANSWER)Hardware
The remainder of an integer division is accomplished using the ____________ operator. -
(ANSWER)%
In Python, variable names may consist of ____________. - (ANSWER)All of the above
(Underscores, digits, letters)
Grammatical and punctuation errors are called ____________. - (ANSWER)syntax errors
Integer division is accomplished using the ____________ operator. - (ANSWER)//
Evaluate the following statements:
num = 4
num **=2 - (ANSWER)16
If the value of n is 3.14159, the function round(n) will return ____________. - (ANSWER)3
, CS8202 -Principles of Computer Engineering Exam
Which function returns the single-character string of the character with ASCII value n for
nonnegative numbers? - (ANSWER)chr(n)
When an if-elif-else statement is evaluated, which block of statements is evaluated? -
(ANSWER)the first condition satisfied
When an if-else statement contains other if-else statements, it is said to be ____________. -
#$%^&*()_)
(ANSWER)nested (*&^
When comparing two lists of different lengths, if all items pairs match up to the end of the
shorter sequence, which sequence is said to be the lesser of the two? - (ANSWER)the
shorter sequence
An if-elif-else statement can contain ____________ clauses. - (ANSWER)any number of
When an if-else statement needs to allow for more than two possible alternatives, you use
a(n) ____________ clause. - (ANSWER)elif
What Python loop repeatedly executes a block of statements as long as a certain condition
is met? - (ANSWER)While
The parentheses of the range function can contain ____________ values. - (ANSWER)all of
the above
(one, two, or three)
Each execution of the body of a loop is called a(n) ____________. - (ANSWER)pass
The ____________ statement causes an exit from anywhere in the body of a loop. -
(ANSWER)break