0% found this document useful (0 votes)
12 views4 pages

C Programming Quiz

Uploaded by

msamiaslam660
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views4 pages

C Programming Quiz

Uploaded by

msamiaslam660
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

C Programming & Programming Concepts Quiz

1. What is programming?

A) Playing games on a computer

B) Writing instructions for humans

C) Creating instructions a computer can follow

D) Designing computer hardware

Correct Answer: C

2. Which of the following is a programming language?

A) HTML

B) C

C) Photoshop

D) Wi-Fi

Correct Answer: B

3. Who developed the C programming language?

A) Bjarne Stroustrup

B) James Gosling

C) Dennis Ritchie

D) Guido van Rossum

Correct Answer: C

4. In which decade was the C language developed?

A) 1960s

B) 1970s

C) 1980s

D) 1990s

Correct Answer: B
C Programming & Programming Concepts Quiz

5. What type of programming language is C?

A) High-level

B) Low-level

C) Mid-level

D) Object-oriented only

Correct Answer: C

6. What is the purpose of abstraction in programming?

A) To complicate code

B) To be closer to hardware

C) To make code more understandable for humans

D) To slow down execution

Correct Answer: C

7. Which of the following is a high-level language?

A) Assembly

B) Python

C) Machine Code

D) Binary

Correct Answer: B

8. What is an example of a low-level language?

A) JavaScript

B) C++

C) Assembly

D) Java

Correct Answer: C
C Programming & Programming Concepts Quiz

9. Which is easier to write and maintain?

A) Machine code

B) Assembly language

C) High-level language

D) None of these

Correct Answer: C

10. Which provides more control over hardware?

A) Python

B) Java

C) Assembly language

D) HTML

Correct Answer: C

11. What feature of C makes it low-level?

A) Syntax

B) Object-oriented support

C) Direct memory access using pointers

D) Use of loops

Correct Answer: C

12. Which feature of C is high-level?

A) Binary operation

B) Structured programming support

C) Bitwise shift

D) Register handling

Correct Answer: B
C Programming & Programming Concepts Quiz

13. What is the full form of stdio.h in C?

A) Standard Input and Output Header

B) Simple Input Data Output

C) Standard Internal Output

D) Standard Integer Output

Correct Answer: A

14. Which function is used to print output in C?

A) input()

B) cout

C) printf()

D) print()

Correct Answer: C

15. What is the basic syntax to print 'Hello World' in C?

A) printf("Hello World")

B) print("Hello World");

C) echo("Hello World");

D) printf("Hello World");

Correct Answer: D

You might also like