Computer Knowledge

Programming Fundamentals

2,611 Questions

Programming fundamentals form the core logic of software development and computer science. This includes variable declarations, pointer assignments, loop iterations, and exception handling. These technical topics are regularly tested in computer knowledge and IT officer competitive examinations.

Variables and arraysPointer assignmentsLoop iterationsException handling blocksCompile time errorsFunction references

Programming Fundamentals Questions

Multiple choice

What is the data type of a variable that can store true or false?

  1. Number

  2. String

  3. Boolean

  4. Undefined

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In JavaScript, the Boolean data type is used to store true or false values.