GFG Final Quiz
Quiz
•
Education
•
University
•
Hard
Mokshith Thota
Used 1+ times
FREE Resource
Enhance your content
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code snippet?
def func(a, b=6, c=8):
print(a, b, c)
func(1, 2)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
def f1(a, b, c=0, d=0, e=0):
return a + b + c + d + e
print(f1(1, *(5, 6)))
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
n = int(input())
for row_num in range(0,n+1):
row_output = ""
seq_num = row_num
while seq_num > 0:
row_output = row_output + str(seq_num)
seq_num = seq_num - 1
print(row_output)
identify mistakes in program
The program doesn't have any mistakes
program doesnot have correct logic
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
n = int(input())
for i in range(n):
if i == 0:
space = (n-1) * " "
print(space + "*")
elif i == n - 1:
print(n " ")
else:
left_spaces = (n - i - 1) * " "
stars = "* " * (i + 1)
print(left_spaces+ stars)
guess the output
It will print a triangle of asterisks with n rows
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following C code?
#include <stdio.h>
int main() {
int a = 5;
int b = a = 4;
printf("%d %d\n", a, b);
return 0;
}
5 5
44
45
54
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following C code?
#include <stdio.h>
int main() {
int a = 10, b = 20, c = 30;
printf("%d ", a);
if (a = b < c)
printf("%d ", a);
else
printf("%d ", b);
return 0;
}
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
PENGUJIAN LITAR
Quiz
•
University
10 questions
DL Refresher
Quiz
•
KG - Professional Dev...
10 questions
Avaliação 3 Ano
Quiz
•
University
10 questions
Tes Kemampuan Awal Matakuliah Strategi Pembelajaran Biologi
Quiz
•
University
13 questions
Post Test Industrial Practitioner Lecturer1a
Quiz
•
University
10 questions
QUARK
Quiz
•
University
10 questions
Konsep Promkes Stibeth
Quiz
•
University
12 questions
La virtualidad y el dibujo...
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Education
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
