
Quiz 2

Quiz
•
Other
•
University
•
Hard
Sneha Binu
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python Review Module 14 - Recursion

Quiz
•
University
10 questions
LITIGACION PENAL EN TRIBUNALES INTERNACIONALES

Quiz
•
University
15 questions
Quiz Planet (Round-1)

Quiz
•
University
12 questions
Ch 2 - Accessing Data - Part 1

Quiz
•
University
12 questions
C++ Programming Language

Quiz
•
University
15 questions
Research Methodology

Quiz
•
University
10 questions
SOCW 238 Chapter 4

Quiz
•
University
10 questions
Errores de paletización

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University