Question Detail

COS 102 lecture 4 Objective Question

Question

According to the document, which of the following is NOT a characteristic of Python as a programming language?
Options
A Scripting programming language
B Powerful and flexible
C Requires explicit variable declaration with a fixed data type
Correct Answer
D Object-oriented
Correct Answer

Option C is the correct answer.

Detailed Explanation

Page 4 and 5 state that Python is a Scripting, powerful, flexible, and object-oriented programming language. Page 27 and 28 explicitly mention that Python 'differs significantly from languages such as Java, C, or C++ when it comes to dealing with variables. Other languages declare and bind a variable to a specific data type.' It also states, 'Python has no command for declaring a variable' and 'Variables do not need to be declared with any particular type and can even change type after they have been set.'

Hint

Think about how Python handles variables compared to strictly typed languages like C++ or Java, as discussed on pages 27-28.

Question Info