Introduction to Computing MCQs with Answers
Practice important Introduction to Computing MCQs with answers and explanations.
Chapter: 116
Q1701:
What does the term "data type" refer to in programming?
A. A variable's memory address
B. A variable's initial value
C. The manner in which data is encoded and operations on it
D. The variable's scope in the program
Correct Answer:
C
Chapter: 116
Q1702:
Which of the following is an example of a primitive data type?
A. Integer
B. String
C. Audio
D. Hypertext
Correct Answer:
A
Chapter: 116
Q1703:
Fill in the blank: The data type _______ refers to numeric data consisting of whole numbers.
A. float
B. integer
C. character
D. boolean
Correct Answer:
B
Chapter: 116
Q1704:
What does the data type "float" refer to in programming?
A. Whole numbers
B. Boolean values
C. Numeric data that might contain decimal points
D. Text strings
Correct Answer:
C
Chapter: 116
Q1705:
Which statement correctly declares a variable of type integer in C++?
A. int WeightLimit = 100;
B. int WeightLimit
C. int = 100;
D. integer WeightLimit = 100;
Correct Answer:
A
Chapter: 116
Q1706:
Fill in the blank: In dynamically typed languages like Python, variables can be assigned _______ declaring their type.
A. before
B. after
C. without
D. by
Correct Answer:
C
Chapter: 116
Q1707:
What is the primary difference between a variable of type "integer" and one of type "float"?
A. Storage location
B. Allowed operations
C. Presence of decimal points
D. Both are the same
Correct Answer:
C
Chapter: 116
Q1708:
Which data type refers to symbols that are probably stored using ASCII or Unicode?
A. integer
B. float
C. character
D. boolean
Correct Answer:
C
Chapter: 116
Q1709:
What operations can be performed on data of type "character"?
A. Arithmetic operations
B. Logical operations
C. Comparison and concatenation
D. Memory allocation
Correct Answer:
C
Chapter: 116
Q1710:
Fill in the blank: A variable declared as type Boolean can take on only _______.
A. integer values
B. true or false values
C. character values
D. numeric values
Correct Answer:
B
Chapter: 116
Q1711:
Which of the following correctly declares a variable of type "character" in Java?
A. char Letter;
B. int Letter;
C. float Letter;
D. bool Letter;
Correct Answer:
A
Chapter: 116
Q1712:
What would be a reasonable statement if the variable LimitExceeded is declared as Boolean?
A. LimitExceeded = 5;
B. if (LimitExceeded) then (...) else (...)
C. LimitExceeded++;
D. LimitExceeded = 'A';
Correct Answer:
B
Chapter: 116
Q1713:
Which of the following is not a common primitive data type in programming?
A. integer
B. float
C. hypertext
D. boolean
Correct Answer:
C
Chapter: 116
Q1714:
Fill in the blank: _______ is an example of a data type that has not yet become a widespread primitive.
A. integer
B. character
C. JPEG
D. boolean
Correct Answer:
C
Chapter: 116
Q1715:
What is the purpose of a declarative statement in programming?
A. To assign values to variables
B. To declare variables and their types
C. To perform operations on variables
D. To compare values
Correct Answer:
B
Chapter: 116
Q1716:
Which of the following data types can store whole numbers in two's complement notation?
A. integer
B. float
C. character
D. boolean
Correct Answer:
A
Chapter: 116
Q1717:
In C, C++, Java, and C#, how are multiple variables of the same type usually declared?
A. In separate statements
B. In a loop
C. In the same declaration statement
D. In different scopes
Correct Answer:
C
Chapter: 116
Q1718:
What is a potential future common primitive data type mentioned in the content?
A. GIF
B. boolean
C. integer
D. float
Correct Answer:
A
Chapter: 117
Q1719:
What is a data structure in programming?
A. The size of a variable
B. The conceptual shape or arrangement of data
C. The type of data
D. The name of a function
Correct Answer:
B
Chapter: 117
Q1720:
Which data structure is a block of elements of the same type?
A. Array
B. Structure
C. List
D. Stack
Correct Answer:
A