
coding

Quiz
•
Computers
•
University
•
Medium
samrudhi pawar
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Quiz Bahasa C

Quiz
•
10th Grade - University
25 questions
TECH_IQ_HUNT ROUND

Quiz
•
University
30 questions
Round_1 (B)| Coding Combat 2.0

Quiz
•
University
30 questions
Pengantar Algoritma dan Struktur Data

Quiz
•
University
30 questions
Quiz'O Mania Round 1

Quiz
•
University
25 questions
C -Program Test-VAC-28.10.23

Quiz
•
University
25 questions
EC8393 - Fundamentals of Data Structures in C

Quiz
•
University
25 questions
PSeInt

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University