Skip to main content

Introduction to Computing MCQs with Answers

Practice important Introduction to Computing MCQs with answers and explanations.

Multiple Choice Questions

Q1721: How would you declare a two-dimensional array with two rows and nine columns in C?
  • A: int Scores[2][9];
  • B: int Scores(2,9);
  • C: INTEGER Scores(2,9);
  • D: int Scores[2x9];
View Answer
A

Q1722: What does the declaration statement struct {char Name[25]; int Age; float SkillRating;} Employee; do?
  • A: Declares a list of integers
  • B: Declares an array of characters
  • C: Declares a structure with different data types
  • D: Declares a function
View Answer
C

Q1723: In FORTRAN, what would be the index of the second row and fourth column in the array Scores(2,9)?
  • A: Scores(1,3)
  • B: Scores[1][3]
  • C: Scores(2,4)
  • D: Scores[0][0]
View Answer
C

Q1724: What term is also used to describe an aggregate type in programming?
  • A: Array
  • B: Variable
  • C: Structure
  • D: Function
View Answer
C

Q1725: Which of the following best describes a one-dimensional list in programming?
  • A: A table with rows and columns
  • B: A sequence of elements in a single line
  • C: A block of heterogeneous data
  • D: A loop
View Answer
B

Q1726: Fill in the blank: A block of data in which different elements can have different types is called a(n) _______.
  • A: array
  • B: aggregate type
  • C: homogeneous array
  • D: string
View Answer
B

Q1727: What is the correct way to reference the "Age" field within the "Employee" structure in C?
  • A: Employee(Age)
  • B: Employee[Age]
  • C: Employee.Age
  • D: Employee
View Answer
C

Q1728: How would you declare an array of 10 integers in C?
  • A: int Numbers(10);
  • B: int Numbers[10];
  • C: int Numbers{10};
  • D: int Numbers-10;
View Answer
B

Q1729: In programming, which data structure would you use to represent a rectangular table of numeric values?
  • A: Array
  • B: List
  • C: Structure
  • D: String
View Answer
A

Q1730: What is the significance of specifying the length of each dimension when declaring an array?
  • A: It determines the number of elements
  • B: It initializes the array with values
  • C: It defines the data type of the elements
  • D: It allocates memory for the array
View Answer
A

Test Your Knowledge

Take a timed quiz on Introduction to Computing

🚀 Start Quiz Now