which of the following will assign a random integer in the range of 1 through 50 to the
variable number
Give this one a try later!
number = random.randint(1, 50)
What is the output of the following code?
val = 123.456789
print(f'{val:.3f}')
a. 123
b. 123.457
c. 123.456
d. 123.456789
,Give this one a try later!
b. 123.457
Which logical operators perform short circuit evaluation?
a. or, not
b. not, and
c. or, and
d. and, or, not
Give this one a try later!
c. or, and
When using the ________ logical operator, one or both of the subexpressions must be true
for the compound expression to be true.
a. or
b. and
c. not
d. maybe
Give this one a try later!
a. or
When using the ______________ logical operator, both subexpressions must be true for the
compound expression to be true
, Give this one a try later!
and
The line continuation character is a
a. #
b. %
c. &
d. \
Give this one a try later!
d. \
What is the informal language, used by programmers use to create models of programs,
that has no syntax rules and is not meant to be compiled or executed?
a. flowchart
b. algorithm
c. source code
d. pseudocode
Give this one a try later!
d. pseudocode
variable number
Give this one a try later!
number = random.randint(1, 50)
What is the output of the following code?
val = 123.456789
print(f'{val:.3f}')
a. 123
b. 123.457
c. 123.456
d. 123.456789
,Give this one a try later!
b. 123.457
Which logical operators perform short circuit evaluation?
a. or, not
b. not, and
c. or, and
d. and, or, not
Give this one a try later!
c. or, and
When using the ________ logical operator, one or both of the subexpressions must be true
for the compound expression to be true.
a. or
b. and
c. not
d. maybe
Give this one a try later!
a. or
When using the ______________ logical operator, both subexpressions must be true for the
compound expression to be true
, Give this one a try later!
and
The line continuation character is a
a. #
b. %
c. &
d. \
Give this one a try later!
d. \
What is the informal language, used by programmers use to create models of programs,
that has no syntax rules and is not meant to be compiled or executed?
a. flowchart
b. algorithm
c. source code
d. pseudocode
Give this one a try later!
d. pseudocode