Exam 2: Input, Processing, and Output

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

What is the informal language that programmers use to create models of programs that have no syntax rules and are not meant to be compiled or executed?

Free
(Multiple Choice)
4.9/5
(38)
Correct Answer:
Verified

D

The _____ built-in function is used to read a number that has been typed on the keyboard.

Free
(Multiple Choice)
4.8/5
(29)
Correct Answer:
Verified

A

According to the behavior of integer division, when an integer is divided by an integer, the result will be a float.

Free
(True/False)
5.0/5
(29)
Correct Answer:
Verified

False

Comments in Python begin with the # character.

(True/False)
4.7/5
(33)

When the + operator is used with two strings, it performs string _______________.

(Short Answer)
4.8/5
(35)

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

(Multiple Choice)
4.9/5
(46)

The _____ function reads a piece of data that has been entered at the keyboard and returns that piece of data, as a string, back to the program.

(Multiple Choice)
4.9/5
(43)

The output of the following print statement is: print 'I\'m ready to begin'

(Multiple Choice)
4.7/5
(41)

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

(Short Answer)
4.8/5
(35)

Python uses _______________ to categorize values in memory.

(Short Answer)
4.8/5
(33)

_______________ are notes of explanation that document lines or sections of a program.

(Short Answer)
4.8/5
(32)

In Python, print statements written on separate lines do not necessarily output on separate lines.

(True/False)
5.0/5
(30)

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.9/5
(30)

What type of error produces incorrect results but does not prevent the program from running?

(Multiple Choice)
4.7/5
(33)

Python allows programmers to break a statement into multiple lines.

(True/False)
4.8/5
(31)

A flowchart is a tool that programmers use to design programs.

(True/False)
4.7/5
(44)

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

(True/False)
4.9/5
(37)

The _______________ specifier is a special set of characters that specify how a value should be formatted.

(Short Answer)
4.7/5
(32)

When using the camelCase naming convention, the first word of the variable name is written in lowercase letters and the first character of the second and subsequent words are written in uppercase letters.

(True/False)
4.9/5
(36)

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

(True/False)
4.8/5
(36)
Showing 1 - 20 of 35
close modal

Filters

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