
Quiz 2
Quiz
•
Other
•
University
•
Practice Problem
•
Hard
Sneha Binu
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a constant in C?
(a) int const a;
(b) constant int a;
(c) #define a
Both (a) and (c)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet? 'printf("%d", 5 == 5);'
5
0
1
True
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of an 'int' data type in C?
2 bytes
Depends on the compiler
4 bytes
1 byte
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If an integer requires two bytes of storage, what is the maximum value of an unsigned integer in C?
215 – 1
216 – 1
215
216
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is typecasting in C?
Assigning a value to a variable
Converting a variable from one data type to another
Defining a new data type
Initializing a variable with a constant value
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
10 5
5 10
0 15
Compilation error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
25
13
11
Compilation error
Access all questions and much more by creating a free account
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
Capital Budgeting and Capital Ratioining Quiz
Quiz
•
University
15 questions
UAS AKUNTANSI MANAJEMEN
Quiz
•
University
10 questions
Dental Amalgam Quiz
Quiz
•
University
10 questions
Study Quest KSU STC initiative
Quiz
•
University
15 questions
LIQUID LIQUID EXTRACTION
Quiz
•
University - Professi...
10 questions
Tổng quan BJT
Quiz
•
University
10 questions
Ley federal del trabajo articulo 153.
Quiz
•
University
15 questions
Història de l'Infermeria
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Other
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University
