
C Programming Quiz
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Medium
Riya Samanta
Used 7+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is the correct syntax to print "Hello, World" in C?
echo("Hello, World");
printf("Hello, World");
cout << "Hello, World";
print("Hello, World");
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a correct variable declaration in C?
int 1number;
float value;
char = 'A';
int; x
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code? int a = 5; printf("%d", a++);
6
5
Error
Garbage value
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which keyword is used to define a constant in C?
const
constant
immutable
final
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the size of int on a 32-bit system (typically)?
2 bytes
8 bytes
4 bytes
1 byte
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a correct comment in C?
# This is a comment
// This is a comment
-- This is a comment
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the code below? int x = 10; int y = 3; printf("%d", x / y);
3.33
3
0
Error
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
10 questions
Module 2
Quiz
•
University
10 questions
Materi Berpikir Komputasional
Quiz
•
9th Grade - University
15 questions
Recap Handout 3 & 4
Quiz
•
6th Grade - University
15 questions
Quiz #2
Quiz
•
University
15 questions
Table,Image formatting
Quiz
•
5th Grade - University
12 questions
Network Technology (BSIT 4)
Quiz
•
University
13 questions
2.2 Method of Data Transmission
Quiz
•
University
10 questions
PT101: Quiz No. 1
Quiz
•
University
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 Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
