C Programming (Unit- 1) Quiz

C Programming (Unit- 1) Quiz

University

20 Qs

quiz-placeholder

Similar activities

C Programming Unit-1 Test-2

C Programming Unit-1 Test-2

University

20 Qs

Operators in C

Operators in C

University

24 Qs

Operator in C

Operator in C

University

20 Qs

Quiz #1

Quiz #1

University

16 Qs

Programming in C language

Programming in C language

12th Grade - University

18 Qs

C/C++ Programming Chapter 2

C/C++ Programming Chapter 2

University

16 Qs

Programming in C(1)

Programming in C(1)

University

20 Qs

CCE-III Programming in C Language

CCE-III Programming in C Language

University

20 Qs

C Programming (Unit- 1) Quiz

C Programming (Unit- 1) Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Mr undefined

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who developed the C programming language?

Guido van Rossum

James Gosling

Dennis Ritchie

Bjarne Stroustrup

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid preprocessor directive in C?

@include

#inculde

#include

#define PI 3.14

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the return statement in the main function indicate?

Error in execution

End of program

Start of program

Successful execution

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a type of token in C?

Functions

Keywords

Identifiers

Constants

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the #define directive?

To include libraries

To define constants

To create functions

To declare variables

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store decimal numbers in C?

string

float

char

int

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: printf("%d", 5 + 3);?

3

5

8

Error

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?