
coding
Authored by samrudhi pawar
Computers
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
#include <stdio.h>
int main() {
int a = 5;
printf("%d", a++ + ++a);
return 0;
}
11
12
10
Undefined behavior
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
int main() {
printf("%c", 'A' + 3);
return 0;
}
A
B
C
D
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
int main() {
int a=10, b=30;
// swapping
// a = (initial_a - initial_b)
a = a - b;
// b = (initial_a - initial_b) + initial_b = initial_a
b = a + b;
// a = initial_a - (initial_a - initial_b) = initial_b
a = b - a;
// %.2lf displays numbers up to 2 decimal places
printf("After swapping, a = %d", a);
printf("After swapping, b = %d", b);
return 0;
}
a=30 ,b=10
After swapping, a = 30
after swapping, b=10
After swapping, a = 30After swapping, b = 10
swapping a=10,b=20
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
int main() {
char str[] = "CSE";
printf("%s", str+2);
return 0;
}
CSE
SE
E
CS
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
int main() {
printf("%d", sizeof('A'));
}
1
2
4
Compiler dependent
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
int main() {
int x = 0;
if(x = 5)
printf("Hello");
else
printf("Bye");
}
Hello
Bye
Compiler error
Nothing
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
int main() {
for(int i=0; i<5; i++);
printf("Done");
}
Done 5 times
Done once
Compile error
Done 4 times
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
30 questions
C-Language Q1
Quiz
•
University
25 questions
Angular 4
Quiz
•
University
25 questions
Basics of Web Technology
Quiz
•
University
25 questions
MAD Test3 Android Studio
Quiz
•
University
25 questions
Repaso de errores comunes en funciones
Quiz
•
University
25 questions
Introduction to Java
Quiz
•
University
25 questions
PAS TIK SMP
Quiz
•
University
31 questions
Year 7 Computer Science Baseline
Quiz
•
KG - Professional Dev...
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade