Programming Fundamentals Quiz
Practice quiz on Programming Fundamentals (Computer Science). 10 exam-style questions with explanations.
About This Quiz
Programming Fundamentals Quiz — Questions with Solutions
All 10 questions from this quiz with the correct answer and explanation. Attempt them yourself first, then open each solution to check your reasoning.
Q1.Which of the following is a high-level programming language?
- A.Assembly language
- B.Python
- C.Machine language
- D.Binary code
Show answer
Answer: B. Python
Python is a high-level language.
Q2.A program that translates the whole source code into machine code at once is a
- A.Linker
- B.Interpreter
- C.Compiler
- D.Assembler
Show answer
Answer: C. Compiler
A compiler translates the whole program together.
Q3.Which loop executes at least once?
- A.do-while
- B.for
- C.while
- D.none of these
Show answer
Answer: A. do-while
A do-while loop checks the condition after the body.
Q4.Which symbol is used for single-line comments in C++?
- A.--
- B.#
- C.$$
- D.//
Show answer
Answer: D. //
// starts a single-line comment in C and C++.
Q5.A variable is
- A.A fixed constant
- B.A loop
- C.A named memory location
- D.A keyword
Show answer
Answer: C. A named memory location
A variable names a memory location that stores data.
Q6.Which data type stores a decimal number in C?
- A.char
- B.bool
- C.float
- D.int
Show answer
Answer: C. float
float stores decimal numbers.
Q7.The process of finding and fixing errors in a program is called
- A.Compiling
- B.Coding
- C.Linking
- D.Debugging
Show answer
Answer: D. Debugging
Debugging removes bugs.
Q8.Which of these is an object-oriented language?
- A.COBOL
- B.C
- C.Assembly
- D.Java
Show answer
Answer: D. Java
Java is object oriented.
Q9.An error in the logic of a program that gives wrong output is a
- A.Link error
- B.Syntax error
- C.Compile error
- D.Logical error
Show answer
Answer: D. Logical error
Logical errors produce wrong results without stopping the program.
Q10.What will be the output of 5 % 2 in most languages?
- A.2.5
- B.1
- C.2
- D.0
Show answer
Answer: B. 1
The remainder of 5 divided by 2 is 1.
Frequently Asked Questions
Is Programming Fundamentals Quiz free to attempt on AajExam?
Yes. Programming Fundamentals Quiz is completely free. You only need a free AajExam account to track your score, view detailed solutions and unlock cross-attempt analytics.
How long does it take to complete Programming Fundamentals Quiz?
Programming Fundamentals Quiz runs on a 10-minute timer in real exam-style conditions. The clock starts the moment you click Start, mirroring the time pressure of the actual exam.
Are detailed solutions provided?
Yes. Every question on Programming Fundamentals Quiz ships with a complete step-by-step solution, the underlying concept, and (where applicable) shortcut tricks. You can also discuss any question with the AajExam community.
Can I attempt Programming Fundamentals Quiz multiple times?
Yes. You can attempt this quiz as many times as you like. Each attempt is recorded separately so you can track improvement in score, accuracy and time-management.
Which government exams does this quiz prepare me for?
Programming Fundamentals questions appear regularly in SSC CGL, CHSL, MTS, GD; IBPS PO, Clerk; SBI PO, Clerk; RRB NTPC, Group D; UPSC prelims and most State PSC exams. The specific weightage varies by exam — check the exam pattern on the corresponding AajExam exam page for details.