Skip to main content

Introduction to Computing MCQs with Answers

Practice important Introduction to Computing MCQs with answers and explanations.

Multiple Choice Questions

Q1731: Which of the following best describes a structure in programming?
  • A: A collection of elements of the same type
  • B: A collection of elements of different types
  • C: A sequence of instructions
  • D: A block of memory
View Answer
B

Q1732: How would you declare a variable that can store a character string of up to 25 characters in C?
  • A: int Name[25];
  • B: char Name[25];
  • C: float Name[25];
  • D: string Name[25];
View Answer
B

Q1733: Fill in the blank: The structure declaration struct {char Name[25]; int Age; float SkillRating;} Employee; defines a variable that ____.
  • A: stores only integer values
  • B: stores a single character string
  • C: contains fields with different data types
  • D: stores a list of floating-point numbers
View Answer
C

Q1734: What is the conceptual layout of the structure Employee as defined in the content?
  • A: A list of integers
  • B: A table of strings
  • C: A block of data with Name, Age, and SkillRating
  • D: A matrix of floating-point numbers
View Answer
C

Q1735: Which data structure allows elements of different data types to be grouped together?
  • A: Array
  • B: Aggregate type
  • C: One-dimensional list
  • D: Function
View Answer
B

Q1736: What does an assignment statement do in programming?
  • A: Declares a variable
  • B: Executes a function
  • C: Stores a value in a variable
  • D: Initializes a loop
View Answer
C

Q1737: Which symbol is used for assignment in C, C++, C#, and Java?
  • A: :=
  • B: =
  • C: ->
  • D: =:
View Answer
B

Q1738: Fill in the blank: The assignment statement Z = X + Y; in languages like C and Java means that ______.
  • A: Z is initialized to X + Y
  • B: X and Y are initialized to Z
  • C: The sum of X and Y is assigned to Z
  • D: X is assigned to the value of Z
View Answer
C

Q1739: In which programming language would the assignment statement Z := X + Y; be used?
  • A: Python
  • B: C
  • C: Java
  • D: Ada
View Answer
D

Q1740: What is the purpose of the semicolon in an assignment statement in many imperative languages?
  • A: It separates different statements
  • B: It initializes the variable
  • C: It terminates the statement
  • D: It defines the expression
View Answer
C

Test Your Knowledge

Take a timed quiz on Introduction to Computing

🚀 Start Quiz Now