Free Programming Basics MCQs with Answers

183 Programming Basics MCQs from Computer Science and IT, each with the correct answer and a written explanation of why it is correct. Free and unlimited, with no account needed.

Programming basics covers algorithms, flowcharts, pseudocode, variables, constants, data types, operators, input and output, conditional statements and loops. It also introduces functions, arrays, strings, debugging and common programming errors, with attention to the difference between syntax errors, runtime errors and logical errors in a program.

Last updated

183 questions · page 10 of 10

  • A. 0
  • B. 6
  • C. -6
  • D. Compile time error

Explanation: The code performs the following steps:Include Header:#include <stdio.h>: This line includes the standard input/output library, which…

Correct answer: -6
  • A. "T"
  • B. 5
  • C. Character
  • D. 'tc'

Explanation: The correct answer is: (c) c.Character constant is a single character enclosed in single quotation marks (').

Correct answer: Character
  • A. 44
  • B. 2
  • C. 6
  • D. Both (a) and (c)

Explanation: A character constant in most programming languages is a single character enclosed within single quotes.

Correct answer: 2