C language

C language

University

25 Qs

quiz-placeholder

Similar activities

Pointers in C

Pointers in C

University

24 Qs

C Programing

C Programing

University

25 Qs

2D Array Test

2D Array Test

9th Grade - University

20 Qs

EXCEPTION HANDLING IN PYTHON

EXCEPTION HANDLING IN PYTHON

University

22 Qs

Array Addresses 2024

Array Addresses 2024

University

20 Qs

BS TEST2

BS TEST2

University

20 Qs

Test Final

Test Final

University

20 Qs

Bridge course with C

Bridge course with C

University

20 Qs

C language

C language

Assessment

Quiz

Computers

University

Hard

Created by

Leela vani Mangaturthi

Used 1+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Who is the father of the C language?

A) James Gosling

B) Dennis Ritchie

C) Bjarne Stroustrup

D) Ken Thompson

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. What is the extension of a C program file?

A) .cpp

B) .java

C) .c

D) .py

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. What is the default return type of the main() function in C?

A) int

B) void

C) float

D) char

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. Which of the following is used to print output in C?

A) scanf()

B) printf()

D) echo()

D) void()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5.Which header file is required for using printf() and scanf()?

A) stdio.h

B) conio.h

C) stdlib.h

D) string.h

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. How is a single-line comment written in C?

A) <!-- Comment -->

B) // Comment

C) /* Comment */

D) # Comment

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Which of the following is NOT a valid variable name in C?

A) my_var

B) 2ndVar

C) _value

D) count123

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?