Demo C programming

Demo C programming

Professional Development

10 Qs

quiz-placeholder

Similar activities

Jarkom

Jarkom

1st Grade - Professional Development

11 Qs

M365 Security Pillar 1 (Identity & Access Management)

M365 Security Pillar 1 (Identity & Access Management)

Professional Development

10 Qs

Cloud computing

Cloud computing

Professional Development

10 Qs

aXQtMjktMTEtMjAyMg==

aXQtMjktMTEtMjAyMg==

Professional Development

10 Qs

CHFI-Post-Assessment

CHFI-Post-Assessment

Professional Development

10 Qs

Family Quizz

Family Quizz

5th Grade - Professional Development

15 Qs

Úng dụng công nghệ thông tin

Úng dụng công nghệ thông tin

Professional Development

10 Qs

Cycle 4: Session 8 Review.

Cycle 4: Session 8 Review.

Professional Development

12 Qs

Demo C programming

Demo C programming

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

Hemant Kumar

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?