Exam 3: Control Structures

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Most computer programs use

(Multiple Choice)
4.9/5
(35)

True and False are the two _________ values in Python.

(Short Answer)
4.9/5
(33)

The membership operator in of Python can be used to determine if a given value occurs in a particular tuple, or if a given substring occurs in a given string value.

(True/False)
4.7/5
(33)

What is the term for the order that instructions are executed in a program?

(Short Answer)
4.9/5
(40)

Which of the following is not a fundamental form of control that programming languages provide?

(Multiple Choice)
4.8/5
(38)

Evaluate the following Python expressions for the variable assignments given. Evaluate the following Python expressions for the variable assignments given.    -not flag1 or not flag2 and num2 < num1 -not flag1 or not flag2 and num2 < num1

(True/False)
4.9/5
(34)

An if statement may include the use of both the ________ header and the _________ header.

(Short Answer)
4.8/5
(37)

Write a simple Python program that prompts the user for a given number of pennies, and displays the monetary value of the coins such that "xx cents" is displayed if the total number of pennies is less than 100, "x dollars and xx cents" is displayed if the number of pennies add up to dollars and cents, and "x dollars" is displayed if the pennies add up to whole dollars, with no leftover cents.

(Essay)
4.8/5
(33)

Evaluate the following Python expressions. -14 <= 14

(True/False)
4.9/5
(36)
Showing 121 - 129 of 129
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)