Demo C programming

Demo C programming

Professional Development

10 Qs

quiz-placeholder

Similar activities

Bài 19. Tạo và làm việc với bảng

Bài 19. Tạo và làm việc với bảng

Professional Development

10 Qs

Mobile Technology

Mobile Technology

Professional Development

10 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

RE-ECHO ON TECHNOLOGY LITERACY AND SKILLS

RE-ECHO ON TECHNOLOGY LITERACY AND SKILLS

Professional Development

10 Qs

ETEC 411 Computer Hardware & Software Quiz

ETEC 411 Computer Hardware & Software Quiz

9th Grade - Professional Development

11 Qs

What is ML

What is ML

Professional Development

13 Qs

LCD vs LED vs OLED

LCD vs LED vs OLED

KG - Professional Development

10 Qs

USE OF ICT IN THE LEARNING PROCESS

USE OF ICT IN THE LEARNING PROCESS

Professional Development

10 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

Access all questions and much more by creating a free account

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?