C Programming Quiz

C Programming Quiz

112 Qs

quiz-placeholder

Similar activities

Primary One (Contraction, Compound, homophone)

Primary One (Contraction, Compound, homophone)

1st - 5th Grade

115 Qs

grade 5

grade 5

5th Grade

107 Qs

SABER PRO ENGLISH TEST

SABER PRO ENGLISH TEST

11th Grade

109 Qs

FRIENDS PLUS 6 UNIT STARTER

FRIENDS PLUS 6 UNIT STARTER

1st Grade

109 Qs

English Revision, Class-9 Part II

English Revision, Class-9 Part II

9th Grade

107 Qs

Wordlist English Class B1 unit 6

Wordlist English Class B1 unit 6

6th - 8th Grade

108 Qs

Review Units 4 to 6 WL2

Review Units 4 to 6 WL2

University

115 Qs

Unit 4 Grade 3 ( ALL) How old are you?

Unit 4 Grade 3 ( ALL) How old are you?

3rd Grade

107 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

English

Practice Problem

Medium

Created by

Anh Tuan

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

112 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following C code? int x = 10; int y = 3; printf("%d", x / y);

3

3.33

2

1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to declare a pointer to a constant integer in C?

const int *ptr;

int *const ptr;

const *int ptr;

int *ptr const;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the goto statement in C?

To create an infinite loop

To jump to a specific part of the program

To stop the program execution

To define a function

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to include a user-defined header file in C?

#include "filename"

#include

#import "filename"

#import

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about the continue statement in C?

It terminates the current loop and exits from the program.

It skips the remaining part of the current loop iteration and continues with the next iteration.

It jumps to the start of the function.

It pauses the program execution.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to allocate memory for a single integer dynamically in C?

int *ptr = malloc(sizeof(int));

int ptr = malloc(sizeof(int));

int *ptr = malloc(1 * sizeof(int));

Both A and C are correct

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code in C? int x = 5; int y = 3; printf("%d", x > y);

1

0

5

3

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?