
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
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
43 questions
35-77
Quiz
•
University
40 questions
Kuis 03_EA_Bab 5-7
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Information Technology (IT)
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University