
3_sem
Authored by AKSV AKSV
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
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this code? #include <stdio.h> int main() { int i = 5; printf("%d %d %d", i, i++, ++i); return 0; }
Answer explanation
Undefined order of evaluation leads to undefined behavior.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of sizeof('A') in a 64-bit GCC compiler?
Answer explanation
Character constants are of type int, hence 4 bytes.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare a variable that retains its value across function calls?
Answer explanation
static retains value across function calls.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is returned by fopen() if it fails to open a file?
Answer explanation
fopen returns NULL if it fails.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print? #include <stdio.h> int main() { char *p = "Hello"; *p = 'M'; printf("%s", p); }
Answer explanation
Modifying string literal is undefined behavior.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid storage class in C?
Answer explanation
dynamic is not a C storage class.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of: printf("%d", printf("Hi"));
Answer explanation
printf prints 'Hi' and returns 2, so output is 'Hi2'.
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
25 questions
Introduction to Internet and WWW
Quiz
•
University
25 questions
UTS Struktur dan Organisasi Data
Quiz
•
University
25 questions
Software Testing in Java
Quiz
•
1st Grade - University
26 questions
The Cloud
Quiz
•
University
28 questions
Security Engineer Intern
Quiz
•
University
30 questions
Empowerment Technologies Long Quiz
Quiz
•
12th Grade - University
25 questions
3- класс повторение
Quiz
•
3rd Grade - University
25 questions
Java Quiz in tamil theme by jamal
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University