
C Programming Quiz
Quiz
•
English
•
•
Practice Problem
•
Medium
Anh Tuan
Used 4+ times
FREE Resource
Enhance your content in a minute
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
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
111 questions
7. sınıf appearance and personality sports kelimeler
Quiz
•
7th Grade
110 questions
Prepositions of Place
Quiz
•
5th Grade
112 questions
Unit 9. Our Sports Day - Revision
Quiz
•
4th Grade
110 questions
LET Test 1
Quiz
•
University
107 questions
G12 Hello U6
Quiz
•
12th Grade
117 questions
E8- UNIT 4- SBT
Quiz
•
8th Grade
110 questions
Pre A1- Exam
Quiz
•
Professional Development
110 questions
STAAR Review English II
Quiz
•
10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for English
10 questions
Christmas Characters
Quiz
•
KG - 3rd Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
KG - 3rd Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
KG - 3rd Grade
10 questions
Mooseltoe
Quiz
•
KG - 2nd Grade
12 questions
The Lion, the Witch, and the Wardrobe Chapter 15
Quiz
•
KG
15 questions
Amplify Knowledge 5 Farms
Quiz
•
KG
8 questions
Christmas CVC
Quiz
•
KG - 1st Grade
10 questions
The Best Christmas Pageant Ever Chapter 5
Quiz
•
KG - University
