Question Detail

COS 102 lecture 4 Objective Question

Question

Why is the concept of data types important in programming, according to the document?
Options
A It determines the number of lines a program can have.
B It defines the operations possible on data and its storage method.
Correct Answer
C It dictates the naming conventions for variables and functions.
D It ensures that variables are always declared before use.
Correct Answer

Option B is the correct answer.

Detailed Explanation

Page 35 states, "Python has various standard data types that are used to define the operations possible on them and the storage method for each of them."

Hint

Think about what data types tell the computer about the data itself.

Question Info