All Free Computer Science and IT MCQs with Answers

Every Computer Science and IT question in the bank, across all chapters, each with the correct answer and a written explanation. Free and unlimited, with no account needed.

2,221 questions · page 67 of 112

  • A. 0
  • B. 1
  • C. 2
  • D. 4

Explanation: The percent sign (%) in this context refers to the modulo operation. The modulo operation calculates the remainder after a division is…

Correct answer: 0
  • A. long
  • B. char
  • C. float
  • D. int

Explanation: The float data type in C is a single-precision floating-point data type. It is commonly used to represent numbers with decimal points.

Correct answer: float
  • A. define
  • B. loading
  • C. allocating
  • D. initializing

Explanation: Initializing a variable refers to assigning a value to it at the time it is declared.

Correct answer: initializing
  • A. exponentiation
  • B. multiplication
  • C. integer reminder
  • D. division

Explanation: The modulus operator (%) in C programming is used to find the remainder after a division operation.

Correct answer: integer reminder
  • A. zero
  • B. garbage
  • C. 1
  • D. nothing

Explanation: When a variable is declared in C but not explicitly initialized, its memory location is allocated but not assigned a specific value.

Correct answer: garbage
  • A. number
  • B. Lower case character
  • C. Underscore (_)
  • D. Upper case character

Explanation: In most programming languages, variable names cannot start with a number.

Correct answer: number
  • A. * (asterisk)
  • B. = (assignment)
  • C. && (logical AND)
  • D. , (comma)

Explanation: In C programming, the comma (,) operator has the lowest precedence level.

Correct answer: , (comma)
  • A. 2
  • B. 4
  • C. 8
  • D. 16

Explanation: In most modern computer systems, a double data type takes 8 bytes of memory.

Correct answer: 8
  • A. Float
  • B. Long int
  • C. Long double
  • D. Unsigned long int

Explanation: An unsigned long int is similar to a long int but can only store non-negative integer values.

Correct answer: Unsigned long int
  • A. Operators
  • B. Operands
  • C. Comments
  • D. Both (a) & (b)

Explanation: An expression in programming is a combination of values (operands) and instructions on how to manipulate those values (operators).Operands…

Correct answer: Both (a) & (b)
  • A. Variable
  • B. Identifier
  • C. Operator
  • D. Constant

Explanation: A constant is a data item in a program whose value cannot be changed after it is assigned.

Correct answer: Constant
  • A. Constant
  • B. Variable
  • C. Address
  • D. Data type

Explanation: A variable is a named memory location that stores data that can change during program execution.

Correct answer: Variable
  • A. int, float, char
  • B. void, return
  • C. printf, scanf
  • D. #include, #define

Explanation: In C programming, user-defined functions are created using a function header that includes the following elements:1.

Correct answer: int, float, char
  • A. '6'
  • B. "hello"
  • C. 345
  • D. 3.14159

Explanation: A character constant is a single character enclosed in single quotation marks (').

Correct answer: '6'
  • A. Cancellation error
  • B. Arithmetic underflow
  • C. Arithmetic overflow
  • D. Implicit casting

Explanation: Arithmetic underflow occurs when the result of a mathematical operation is too small to be represented accurately in the computer's…

Correct answer: Arithmetic underflow
  • A. Significand
  • B. Mantissa
  • C. Exponent
  • D. Precision

Explanation: In the decimal number system, the number of digits to the right of the decimal point is called precision.

Correct answer: Precision
  • A. int number = 0;
  • B. number int = 0;
  • C. int 0number;
  • D. None of these

Explanation: In C, the correct way to declare a variable involves specifying the data type, followed by the variable name, and optionally an initial…

Correct answer: int number = 0;
  • A. 1 Character
  • B. 2 Character
  • C. 6 Character
  • D. 4 Character

Explanation: In C programming, a character constant is a single character enclosed in single quotation marks (').

Correct answer: 1 Character
  • A. 16
  • B. 31
  • C. 63
  • D. Depends on the compiler

Explanation: According to the ANSI C standard (C89 and later versions), an identifier (variable name) can have a maximum of 31 significant characters.

Correct answer: 31
  • A. Single line comments
  • B. Multiline comments
  • C. Single line sentence
  • D. Multiline commands

Explanation: In C programming, text enclosed between /* and */ represents multiline comments.

Correct answer: Multiline comments