
III Part 3

Quiz
•
Education
•
University
•
Hard
ARAVINTH B
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code? int main() { int a = 5; printf("%d", a++); return 0; }
5
6
Compiler error
Undefined behavior
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following Python code? a = {1: 'A', 2: 'B'} print(a[1])
B
1
A
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid C storage class?
auto
static
register
mutable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the continue statement do in a loop?
Stops the loop entirely
Skips the current iteration and moves to the next one
Jumps to the end of the loop
Exits the loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used for dynamic memory allocation in C?
malloc()
calloc()
realloc()
All of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following C code? int main() { int a = 10; int *p = &a; printf("%d", *p); return 0; }
10
Address of a
Undefined behavior
Compiler error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to comment multiple lines in C?
//
/* /
/* */
#
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python Variables

Quiz
•
University
12 questions
Week 2 Unit 71 HW Review Questions HP MOD

Quiz
•
University
15 questions
Round 2

Quiz
•
University
10 questions
Python quiz

Quiz
•
KG - Professional Dev...
15 questions
AI and Machine Learning Quiz

Quiz
•
University
13 questions
Python Intermediate Quiz - 1

Quiz
•
8th Grade - Professio...
5 questions
Quiz of c language

Quiz
•
University
10 questions
Pop Quiz #2 Topic 2

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