Demo C programming

Demo C programming

Professional Development

10 Qs

quiz-placeholder

Similar activities

X-Quiz #4

X-Quiz #4

Professional Development

10 Qs

Practice Test Operator and Control Flow Statement 01

Practice Test Operator and Control Flow Statement 01

Professional Development

15 Qs

Mech 3

Mech 3

Professional Development

10 Qs

MindSpace Computers C Test-3 2023

MindSpace Computers C Test-3 2023

Professional Development

15 Qs

C Code Master lvl 2 A

C Code Master lvl 2 A

Professional Development

10 Qs

Code X Trade

Code X Trade

Professional Development

15 Qs

C CODE MASTER B

C CODE MASTER B

Professional Development

15 Qs

Functions on C

Functions on C

Professional Development

15 Qs

Demo C programming

Demo C programming

Assessment

Quiz

Computers

Professional Development

Easy

Created by

Hemant Kumar

Used 7+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

What will the following code snippet display?

int x = 10;

printf("%d", x);

10.0

"10"

10

Error

2.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

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

char

double

int

float

3.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

What is the purpose of the printf function in C?

To read user input

To print text on the screen

To declare variables

To create loops

4.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

What is the main advantage of using functions in C?

Increased code readability
Simpler syntax
Code reusability and modularity
Improved performance

5.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

What is the purpose of the return statement in a function in C?

To pause the execution of the function and resume it later.
To skip the execution of the function and move to the next line of code.
To print a message to the console and continue executing the function.
To terminate the execution of the function and return a value to the calling function.

6.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

Which of the following is not a valid C keyword?

print
for
output
int

7.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

Which header file should you include in a C program to use the printf and scanf functions?

string.h

conio.h

math.h

stdio.h

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?