
Weekly Assignment APP - Viva

Quiz
•
Information Technology (IT)
•
University
•
Hard
Guruswaminathan J
FREE Resource
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
Similar Resources on Wayground
15 questions
Java Concepts Assessment For J.A

Quiz
•
University
20 questions
Prueba de Conocimientos - POO - Java WEB

Quiz
•
University
20 questions
Diagnostico sobre Programación Orientada a Objetos

Quiz
•
University
25 questions
General quiz

Quiz
•
University
16 questions
Sistematizacija gradiva IX

Quiz
•
9th Grade - University
16 questions
Understanding Assembly Language , Algorithms ,pseudocode

Quiz
•
University
20 questions
RIDDLE_IT_OUT

Quiz
•
University
20 questions
Java MCQs on Syntax and Semantics

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 Information Technology (IT)
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