
C Programming Quiz 2
Authored by Telugu squad
Information Technology (IT)
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which operator is used to access the address of a variable?
*
&
#
@
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output? int a = 10, b = 5, c; c = a > b ? a : b; printf("%d", c);
10
5
0
1
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code? #include int main() { int a[] = {1, 2, 3, 4, 5}; int *p = a; printf("%d", *(p + 2)); return 0; }
1
2
3
Garbage Value
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a valid main function declaration?
void main()
int main()
main()
All of the above
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output? #include void main() { static int i; printf("%d", i); }
Garbage value
0
1
Error
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which function is used to read a string from the standard input?
gets()
scanf()
getchar()
Both a and b
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the role of the stdlib.h header file?
Standard Input/Output
String operations
Memory allocation functions like malloc()
Mathematical functions
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
43 questions
35-77
Quiz
•
University
40 questions
Kuis 03_EA_Bab 5-7
Quiz
•
University
35 questions
UH Materi Ms. Word
Quiz
•
7th Grade - University
35 questions
Algoritma dan Pemecahan Masalah 2
Quiz
•
University
40 questions
UAS SMP Informatika Kelas IX 2024-2025
Quiz
•
9th Grade - University
35 questions
NILAI PRA PAT KELAS 11 B
Quiz
•
11th Grade - University
35 questions
Latihan Soal Informatika Kelas 7
Quiz
•
7th Grade - University
40 questions
CSS 3rd Quarter Examination
Quiz
•
11th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University