Filters
Question type

 Classes enable programmers to build objects with multiple _______ and define ways for objects to interact with each other.​ 


A)  ​programs 
B)  ​variables 
C)  ​attributes 
D)  ​none of the above

Correct Answer

verifed

verified

 In programming, a sequence of characters is called a ____.​

Correct Answer

verifed

verified

 A ______ is a segment of code that defines an action ​belonging to a class.

Correct Answer

verifed

verified

 A programmer-defined _______ is typically a block of code that is part of a program but is not included in the main execution path.​

Correct Answer

verifed

verified

 A ______ in Python is an ordered group of items that can be numbers or strings that are modifiable.​

Correct Answer

verifed

verified

list​

 The contents within a parentheses that are passed to a function are called ________. 


A)  ​variables 
B)  ​definitions 
C)  ​values 
D)  ​parameters

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

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

Correct Answer

verifed

verified

 ​Which of the following is another term for "subclass"? 


A)  ​derived class 
B)  ​superclass 
C)  ​pet class 
D)  ​none of the above

Correct Answer

verifed

verified

A

 Input can be accepted from a _______ or a _______.​

Correct Answer

verifed

verified

keyboard, ...

View Answer

 ​The if command 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

 The process of tracking down bugs and correcting them is called ______.​

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

A

 Only about 10 keywords are frequently used in Python. 

Correct Answer

verifed

verified

 A ______ control structure allows programmers to write code that can repeatedly execute a statement or a series of statements.​

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

 ​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

 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

 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

 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

Showing 1 - 20 of 90

Related Exams

Show Answer