
Weekly Assignment APP - Viva
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Medium
Guruswaminathan J
Used 2+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which package is required to use the Scanner class in Java?
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the difference between nextInt() and nextLine() in the Scanner class?
nextInt() reads a whole line, nextLine() reads only an integer
nextInt() reads an integer, nextLine() reads a full line of text
Both read only numbers
Both read only strings
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which statement about BufferedReader and Scanner is correct?
Scanner is faster than BufferedReader
BufferedReader can directly parse integers and doubles, while Scanner cannot
Scanner is easier to use for parsing primitives, while BufferedReader is faster for reading large inputs
Both are identical in performance and usage
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the key difference between a while loop and a do-while loop in Java?
while loop executes at least once, do-while may not execute
do-while loop executes at least once, while may not execute
Both behave the same
do-while cannot use break or continue
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of this code?
int i = 1;
do {
System.out.print(i + " ");
i++;
} while(i < 1);
No output
1
1 2
Infinite loop
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the main purpose of a constructor in Java?
To create objects
To initialize object values
To destroy objects
To call methods automatically
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is it called when a class has multiple constructors with different parameter lists?
Constructor overriding
Constructor inheritance
Constructor overloading
Constructor chaining
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
Already have an account?
Similar Resources on Wayground
16 questions
Linguagem de Programação II
Quiz
•
University
20 questions
Soal Web Pentest (2)
Quiz
•
University
15 questions
Introducción a los Sistemas BI
Quiz
•
University
20 questions
KUIS HTML
Quiz
•
11th Grade - University
15 questions
Mobile Programming - POCC
Quiz
•
University
15 questions
Adding Interactive Elements in HTML
Quiz
•
12th Grade - University
20 questions
Ujian Tengah Semester Sistem Multimedia
Quiz
•
University
20 questions
HO - 10 Preguntas sobre Desarrollo de Aplicaciones
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
