Filters
Question type

A place to enter source code for a computer program is called a(n) _______.


A) interpreter
B) code editor
C) debugger
D) compiler

Correct Answer

verifed

verified

The control statement for a for-loop begins with what command word?


A) print
B) else
C) for
D) if

Correct Answer

verifed

verified

In mathematics, the order of _______ is a collection of rules that dictate which procedures to perform first when calculating an arithmetic expression.​

Correct Answer

verifed

verified

The section of code that repeats is referred to as a _____ or an iteration.

Correct Answer

verifed

verified

Adding comments generally makes the code ________.


A) ​easier to understand
B) ​harder to read
C) ​harder to maintain
D) ​none of the above

Correct Answer

verifed

verified

A function terminates with the last indented line of code.​

Correct Answer

verifed

verified

Which of the following words is a logical operator in Python?​


A) ​NOT
B) ​OR
C) ​AND
D) ​All of the above

Correct Answer

verifed

verified

An if statement is an example of a selection control structure.​

Correct Answer

verifed

verified

An if statement requires which of the following as punctuation?


A) A colon
B) A period
C) A dash
D) None of the above

Correct Answer

verifed

verified

​Programmers think of variables as empty boxes where data can be stored.

Correct Answer

verifed

verified

A program containing a(n) _____ error will run without displaying an error message, but it will not produce the expected result.​

Correct Answer

verifed

verified

A(n) _______ control structure tells a computer what to do based on whether a condition is true or false.​

Correct Answer

verifed

verified

String variables cannot be concatenated directly with integer variables.​

Correct Answer

verifed

verified

When you do not know in advance the number of times you want to execute a statement, use a ______-loop.


A) ​for
B) ​while
C) ​if
D) none of the above

Correct Answer

verifed

verified

Only about ten keywords are frequently used in Python.

Correct Answer

verifed

verified

The code block within every function starts with a semicolon (;).​

Correct Answer

verifed

verified

The Python programming language was named after the TV show Monty Python's Flying Circus.

Correct Answer

verifed

verified

​There is no limit on the number of elif statements that can follow an if statement.

Correct Answer

verifed

verified

A good name for a variable that will contain a first name would be "person's_name."

Correct Answer

verifed

verified

___________, sometimes called overloading, is the ability to redefine a method in a subclass.​

Correct Answer

verifed

verified

Showing 41 - 60 of 89

Related Exams

Show Answer