C Programming MCQs

10 practice MCQs on this page Page 3 of 3

Tap an option to check your answer — the correct answer and full explanation appear after you choose.

ProgrammingC Programming ETEAID: LTP-5859

In assembly language, the symbols used instead of binary code are called _____?

  1. AVariables
  2. BMnemonics ✓ Correct answer
  3. CFunnomic
  4. DNone of these
ProgrammingC Programming ETEAID: LTP-5860

In Scratch control blocks, the _____ command is used when a block of code needs to run for a fixed number of times.

  1. AWait
  2. BStop
  3. CNone of these
  4. DRepeat ✓ Correct answer
ProgrammingC Programming ETEAID: LTP-5880

The getche() function reads a character from the keyboard and ____ it on the screen.

  1. AHides
  2. BEchoing ✓ Correct answer
  3. CErasers
  4. DNone of these
ProgrammingC Programming ETEAID: LTP-5883

What is the purpose of using a flowchart in analyzing an algorithm?

  1. ATo compile the program
  2. BTo identify logical errors and weakness ✓ Correct answer
  3. CTo create a user interface
  4. DNone of these
ProgrammingC Programming ETEAID: LTP-5885

Loops within loops are called _____ loops.

  1. ARecursive
  2. BConditional
  3. CNested ✓ Correct answer
  4. DNone of these
ProgrammingC Programming ETEAID: LTP-6014

In C++ the body of the function is enclosed which?

  1. A( )
  2. B[ ]
  3. C{ } ✓ Correct answer
  4. D" "
ProgrammingC Programming FPSCID: FPP-11402

In C, the size of an int is typically:

  1. A2 bytes
  2. B1 byte
  3. C4 bytes ✓ Correct answer
  4. D8 bytes
ProgrammingC Programming BPSCID: BPP-3696

The size of an int variable in C on a typical 32-bit system is?

  1. A2 bytes
  2. B4 bytes ✓ Correct answer
  3. C8 bytes
  4. D1 byte
ProgrammingC Programming BPSCID: BPP-3697

Which loop in C checks the condition after executing the body at least once?

  1. Ado-while loop ✓ Correct answer
  2. Bwhile loop
  3. Cfor loop
  4. Dnested for loop
ProgrammingC Programming BPSCID: BPP-3698

In C, the value of the expression 5 % 3 is?

  1. A2 ✓ Correct answer
  2. B1
  3. C0
  4. D3

Practice these MCQs interactively