
C Programming Quiz

Quiz
•
Engineering
•
University
•
Hard
Gunasree Sidda
Used 1+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of printf("%d", sizeof('A'));?
1
2
4
8
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to prevent modification of a variable?
static
const
volatile
register
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code int a = 5; printf("%d", a++ + ++a);?
11
12
10
Undefined behavior
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator has the highest precedence in C?
*
++
()
[]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to dynamically allocate memory in C?
alloc()
calloc()
malloc()
Both B and C
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code output? int a = 10; int b = a++ + ++a; printf("%d", b);
21
22
23
24
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a storage class in C?
auto
extern
volatile
static
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
ECEP 322 Semi-Final Exam

Quiz
•
University
50 questions
Quiz on c program

Quiz
•
University
50 questions
Wipro Training Exception Handling and JDBC

Quiz
•
University
50 questions
PHP Array and String MCQs

Quiz
•
University
50 questions
Microcontroller Quiz

Quiz
•
University
50 questions
C Programming Quiz

Quiz
•
University
50 questions
Round 1 STARBURST START

Quiz
•
University
50 questions
[Part 4] Midterm Exam in ME 433 (51-100)

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade