
Mcqs on Java - Activity hour

Quiz
•
Computers
•
University
•
Hard
Renugadevi AS
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
_____ is used to find and fix bugs in the Java programs
JVM
JRE
JDK
JDB
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which of the following is a valid declaration of a char?
char ch = '\utea';
char ca = 'tea';
char cr = \u0223;
char cc = '\itea';
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What does the expression float a = 35 / 0 return?
0
Not a number
Infinity
Run time exception
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Evaluate the following Java expression, if x=3, y=5, and z=10:
++z + y - y + z + x++
24
23
20
25
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What will be the output of the following program?
public class Test { public static void main(String[] args) { int count = 1; while (count <= 15) { System.out.println(count % 2 == 1 ? "***" : "+++++"); ++count; } // end while } // end main }
15 times ***
15 times +++++
8 times *** and 7 times +++++
Both will print only once
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which of the following for loop declaration is not valid?
for ( int i = 99; i >= 0; i / 9 )
for ( int i = 7; i <= 77; i += 7 )
for ( int i = 20; i >= 2; - -i )
for ( int i = 2; i <= 20; i = 2* i )
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which one of the following is correct?
Java applets can not be written in any programming language
An applet is not a small program
An applet can be run on its own
Applets are embedded in another applications
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Weekly Contest #3 - TechXNinjas

Quiz
•
University
10 questions
G12_Week7

Quiz
•
12th Grade - University
15 questions
CODE ZENITH

Quiz
•
University
10 questions
C++ Variables, Literals, and Constants Quiz

Quiz
•
University
10 questions
1. hét

Quiz
•
University
7 questions
Union in c 10

Quiz
•
University
15 questions
Soal Java

Quiz
•
11th Grade - University
15 questions
Coding club Summit Online Quiz

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 Computers
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