
C Programming Quiz

Quiz
•
Other
•
University
•
Hard
Anamika Pandey
Used 1+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax to declare a variable in C?
int variable;
int variable:
var int variable;
integer variable;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store a single character in C?
int
float
char
double
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?int x = 5; printf("%d", x++);
4
5
6
Compilation error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? int a = 10, b = 5; printf("%d", a % b);
5
0
2
Compilation error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to access the address of a variable?
*
&
%
$
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid identifier in C?
2ndValue
first_value
float
#define
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which format specifier is used to print a floating-point number?
%d
%c
%f
%s
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Basics of Programming with C

Quiz
•
University
17 questions
C Program Day 2

Quiz
•
University
20 questions
Java Simple - 1

Quiz
•
University
20 questions
Kelas PHP

Quiz
•
University
20 questions
CodeMavarick

Quiz
•
University
18 questions
MIDTERM EXAM

Quiz
•
University
20 questions
Round 3

Quiz
•
University
20 questions
TECHTRIX2025 BUGHUNT SET6

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade