Exam 2: Input, Processing, and Output

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The line continuation character is a

Free
(Multiple Choice)
4.7/5
(34)
Correct Answer:
Verified

D

The % symbol is the remainder operator,also known as the ___________ operator.

Free
(Short Answer)
4.9/5
(31)
Correct Answer:
Verified

modulus,mod

Python uses __________ to categorize values in memory.

Free
(Short Answer)
4.7/5
(40)
Correct Answer:
Verified

data types

In Python,math expressions are always evaluated from left to right,no matter what the operators are.

(True/False)
4.7/5
(41)

What is the output of the following print statement? Print('The path is D:\\sample\\test.')

(Multiple Choice)
4.8/5
(38)

Computer programs typically perform three steps: input is received,some process is performed on the input,and output is produced.

(True/False)
4.8/5
(35)

Select all that apply. Which of the following are steps in the program development cycle?

(Multiple Choice)
4.8/5
(39)

In a print statement,you can set the __________ argument to a space or empty string to stop the output from advancing to a new line.

(Multiple Choice)
4.8/5
(35)

What is the output of the following command,given that value1 = 2.0 and value2 = 12? Print(value1 * value2)

(Multiple Choice)
4.8/5
(41)

The \t escape character causes the output to skip over to the next horizontal tab.

(True/False)
4.8/5
(43)

After the execution of the following statement,the variable price will reference the value __________. Price = int(68.549)

(Multiple Choice)
4.8/5
(41)

Select all that apply. Assume you are writing a program that calculates a user's total order cost that includes sales tax of 6.5%. Which of the following are advantages of using a named constant to represent the sales tax instead of simply entering 0.065 each time the tax is required in the code?

(Multiple Choice)
4.8/5
(42)

A(n)__________ is a single task that the program must perform in order to satisfy the customer.

(Short Answer)
4.8/5
(37)

Comments in Python begin with the # character.

(True/False)
4.9/5
(43)

In the expression 12.45 + 3.6,the values to the right and left of the + symbol are the __________.

(Short Answer)
4.8/5
(40)

A(n)__________ is a diagram that graphically depicts the steps that take place in a program?

(Multiple Choice)
4.7/5
(41)

A flowchart is a tool used by programmers to design programs.

(True/False)
4.9/5
(34)

Which mathematical operator is used to raise 5 to the second power in Python?

(Multiple Choice)
4.8/5
(37)

Which of the following will display 20%?

(Multiple Choice)
4.7/5
(39)

A(n)__________ is a name that represents a value stored in the computer's memory.

(Short Answer)
4.7/5
(33)
Showing 1 - 20 of 40
close modal

Filters

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