Filters
Question type

Study Flashcards

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


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

Correct Answer

verifed

verified

The Python programming language has a small vocabulary of how many keywords?


A) ​18
B) ​7
C) ​33
D) ​42

Correct Answer

verifed

verified

You can define functions in Python using the _______ command.​


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

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

Putting data in a variable is referred to as assigning a ____ to it.​

Correct Answer

verifed

verified

​To instruct the computer to perform a calculation, programmers use an _______ expression, which contains values and arithmetic operators.

Correct Answer

verifed

verified

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

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


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

Correct Answer

verifed

verified

​Which of the following IDEs are available for Python Programming?


A) ​PyDev
B) ​IDLE
C) ​PyCharm
D) ​all of the above

Correct Answer

verifed

verified

You can use the float() command to convert the input data to an integer.​

Correct Answer

verifed

verified

A ____ is a named memory location that holds data specified by a programmer or entered by an end user.​

Correct Answer

verifed

verified

Which of the following is a Python keyword?​


A) ​elif
B) ​else
C) ​def
D) ​all of the above

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

The operator != is a comparison operator.​

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

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

Correct Answer

verifed

verified

An error in a program code is referred to as a tick.​

Correct Answer

verifed

verified

Which of the following is not a Python syntax rule?​


A) ​Comments always start with a # symbol.
B) ​Python is case sensitive.
C) ​Strings are delineated by == symbols.
D) ​Keywords can only be used for their intended purpose.

Correct Answer

verifed

verified

A________ is a computer program that is used to find errors that may exist in a program.​

Correct Answer

verifed

verified

An object is anything that can be ______.​


A) ​seen
B) ​touched
C) ​used
D) ​all of the above

Correct Answer

verifed

verified

Showing 41 - 60 of 90

Related Exams

Show Answer