
Programming and Technical - L3
Quiz
•
Education
•
University
•
Hard
CSE CodeClub
Used 4+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output of the following C code?
#include<stdio.h>
main()
{
int n;
n=f1(4);
printf("%d", n);
}
f1(int x)
{
int b;
if(x==1)
{
return 1;
}
else
{
b=x*f1(x-1);
return b;
}
}
24
4
12
10
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output of the following C code?
#include<stdio.h>
void main()
{
int a[5] = {5,1,15,20,25};
int i, j, m;
i = ++a[1];
j = a[1]++;
m = a[i++];
printf("%d, %d, %d", i, j, m);
}
2, 3, 20
3, 2, 15
2, 1, 15
1, 2, 5
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output of the following code snippet?
#include <stdio.h>
void solve() {
int a = 3;
int res = a++ + ++a + a++ + ++a;
printf("%d", res);
}
int main() {
solve();
return 0;
}
12
24
20
18
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
void main()
{
int sum=1, index=9;
do
{
index = index - 1;
sum *= 2;
}while( index > 9);
}
1
2
9
0.5
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
#include<stdio.h>
void main()
{
int i,j;
for(i=0,j=0;i<10,j<20;i++,j++)
{
printf("i=%d %t j=%d", i,j);
}
}
10 10
10 20
20 20
Error
Similar Resources on Wayground
5 questions
Dasar Input Output pada JAVA
Quiz
•
University
10 questions
java
Quiz
•
University - Professi...
5 questions
ROUND 2 MIND MAZE
Quiz
•
University
10 questions
funciones en c++
Quiz
•
University
10 questions
sample quiz
Quiz
•
University
10 questions
WEEK 10 - JAVA
Quiz
•
University
10 questions
TOPIC 1 & 2
Quiz
•
University
10 questions
Praktisi Mengajar - Java Test
Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games
Quiz
•
6th - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition
Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12
Lesson
•
11th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Education
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors
Interactive video
•
4th Grade - University
15 questions
Properties of Equality
Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*
Quiz
•
10th Grade - University
21 questions
Advise vs. Advice
Quiz
•
6th Grade - University
12 questions
Reading a ruler!
Quiz
•
9th Grade - University
