The while loop repeats a set of code while the condition is not met?
Anonymous Quiz
44%
True
56%
False
👍2
What is true about a break?
Anonymous Quiz
30%
Break forces the control out of the loop and starts the execution of next iteration
10%
Break halts the execution of the loop for certain time frame
31%
Break halts the execution and forces the control out of the loop
29%
Break stops the execution of entire program
❤🔥2
What is true about do statement?
Anonymous Quiz
21%
do statement executes the code more than once always
14%
do statement checks the condition at the beginning of the loop
46%
do statement executes the code of a loop at least once
19%
do statement does not get execute if condition is not matched in the first iteration
Which of the following is used with the switch statement?
Anonymous Quiz
7%
do
8%
Exit
15%
Continue
69%
break
👍2
What is the valid data type for variable “a” to print “Hello World”?
switch(a) { System.out.println("Hello World"); }
switch(a) { System.out.println("Hello World"); }
Anonymous Quiz
38%
byte and char
41%
char and long
9%
int and float
12%
byte and short
👍1
Which of the following is not a decision making statement?
Anonymous Quiz
15%
if
10%
if-else
30%
switch
45%
do-while
Which of the following is not OOPS concept in Java?
Anonymous Quiz
55%
Compilation
21%
Polymorphism
10%
Inheritance
13%
Encapsulation
👍1
Which concept of Java is a way of converting real world objects in terms of class?
Anonymous Quiz
28%
Inheritance
23%
Encapsulation
30%
Abstraction
19%
Polymorphism
Which of the following is a valid declaration of an object of class Box?
Anonymous Quiz
11%
new Box obj;
73%
Box obj = new Box();
12%
obj = new Box();
4%
Box obj = new Box;
Which keyword is used by the method to refer to the object that invoked it?
Anonymous Quiz
39%
import
49%
this
9%
abstract
3%
abstract
🤩1
Write a Java program Game.javathat implements the Number Guessing Game.
Your program should use a do..while to display a menu of two options: 1. play game 2. exit game
The menu should continue to appear until the user selects the exit choice
Every time the user plays a new random number in the range 1..10 is generated.
The program asks the player (user) to enter a guess (number). The program should tell the user whether the guess is too high, too low, or correct.
A player has a maximum of three trials. Once the player guesses the number or exceeds three trials, the current round of the game is terminated.
Your program should use a do..while to display a menu of two options: 1. play game 2. exit game
The menu should continue to appear until the user selects the exit choice
Every time the user plays a new random number in the range 1..10 is generated.
The program asks the player (user) to enter a guess (number). The program should tell the user whether the guess is too high, too low, or correct.
A player has a maximum of three trials. Once the player guesses the number or exceeds three trials, the current round of the game is terminated.
جافا Java
Write a Java program Game.javathat implements the Number Guessing Game. Your program should use a do..while to display a menu of two options: 1. play game 2. exit game The menu should continue to appear until the user selects the…
سؤال بسيط ل طلاب برمجه ١ يتضمن تقريبا كل المواضيع حاولو تحلوه
وانا حليته وشرحته في قناتي على اليوتيوب
علشان تتاكدو من الحل
https://youtu.be/u4j9lFJuQ9c
اشتركوا في القناه علشان انزل اسئله ومواضيع بهذا الشكل ونحلها سوى ان شاء الله 🌹
وانا حليته وشرحته في قناتي على اليوتيوب
علشان تتاكدو من الحل
https://youtu.be/u4j9lFJuQ9c
اشتركوا في القناه علشان انزل اسئله ومواضيع بهذا الشكل ونحلها سوى ان شاء الله 🌹
YouTube
Guessing game using java
لعبة تخمين بلغة جافا
👍1🔥1