Filters
Question type

Logical operators are also known as Boolean operators.​

Correct Answer

verifed

verified

​To instruct the computer to perform a calculation, programmers use a(n) _______ expression, which contains values and operators, such as + and -.

Correct Answer

verifed

verified

To ______ a variable means to add an amount to its current value.​

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

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

Correct Answer

verifed

verified

A string can contain which of the following?​


A) ​Numerals
B) ​Words
C) ​Letters
D) ​All of the above

Correct Answer

verifed

verified

Which of the following is a valid variable name in Python​?


A) ​first_name
B) 76trombones
C) ​class
D) ​more$

Correct Answer

verifed

verified

Statements that tell a computer what to do are referred to as code.​

Correct Answer

verifed

verified

The most famous program in the world is a single line of code that prints "Hello Earth!" on the screen.​

Correct Answer

verifed

verified

A class attribute defines the characteristics of a set of _______.


A) methods
B) classes
C) instances
D) objects

Correct Answer

verifed

verified

The process of creating a variable is sometimes referred to as _____ a variable.​

Correct Answer

verifed

verified

A sequence of steps for solving a problem or performing a task is called a code editor.​

Correct Answer

verifed

verified

​When programmers want one thing to happen when a condition is true and something else to happen when it is false they use the ______ statement.


A) ​elif
B) ​if...else
C) ​if
D) ​none of the above

Correct Answer

verifed

verified

The object-oriented ________ is based on objects and classes that can be defined and manipulated by program code.​

Correct Answer

verifed

verified

A ______ is a numeric variable used for counting something, such as the number of times to execute a loop.​

Correct Answer

verifed

verified

An instance of a class is said to be __________ (created) from the class.​

Correct Answer

verifed

verified

To include more than one line of comments in Python code, you must start each line with which of the following symbols?


A) ​#
B) ​*
C) ​+
D) ​==

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

When storing data in a variable, programmers use which symbol to indicate the assignment operator?​


A) ​*
B) ​>
C) ​+
D) ​=

Correct Answer

verifed

verified

In object-oriented jargon, ______ refers to passing certain characteristics from one class to other classes.​

Correct Answer

verifed

verified

Showing 61 - 80 of 89

Related Exams

Show Answer