Introduction to Computing MCQs with Answers
Practice important Introduction to Computing MCQs with answers and explanations.
Multiple Choice Questions
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;
View Answer
A
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';
View Answer
B
Q1713: Which of the following is not a common primitive data type in programming?
- A: integer
- B: float
- C: hypertext
- D: boolean
View Answer
C
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
View Answer
C
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
View Answer
B
Q1716: Which of the following data types can store whole numbers in two's complement notation?
- A: integer
- B: float
- C: character
- D: boolean
View Answer
A
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
View Answer
C
Q1718: What is a potential future common primitive data type mentioned in the content?
- A: GIF
- B: boolean
- C: integer
- D: float
View Answer
A
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
View Answer
B
Q1720: Which data structure is a block of elements of the same type?
- A: Array
- B: Structure
- C: List
- D: Stack
View Answer
A