Lets explore Java

Quiz
•
Computers
•
University
•
Hard
Mrs. Faiza Hashim
Used 4+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the below is valid way to instantiate an array in java?
int myArray [] = {1, 3, 5};
int [] myArray = {“1”, “2”, “3”};
int myArray [] [] = {1,2,3,4};
int [] myArray = (5, 4, 3);
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the below are reserved keyword in Java?
Array
goto
null
None of the above
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What are the valid statements for static keyword in Java?
We can have static block in a class.
The static block in a class is executed every time an object of class is created.
We can have static method implementations in interface.
We can define static block inside a method.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is correct syntax for main method of a java class?
public static int main(String[] args)
public int main(String[] args)
public static void main(String[] args)
None of the above.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a Java features?
Dynamic
Architecture Neutral
Use of pointers
Object-oriented
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way of writing println() function in Java?
System.out.println("Message = " + variable);
System.println("Message = " + variable);
System.output.println("Message = " + variable);
System.println.out("Message = " + variable);
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct difference between print() and println()?
print() prints the output and move to new line, println() prints the output and stays on same line
print() prints the output and stays on same line, println() prints the output and move to new line
None of the given
Both of the given
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Cuestionario de Programación Avanzada

Quiz
•
University
15 questions
Java Programming

Quiz
•
University
19 questions
Data Types Java Concepts

Quiz
•
University
15 questions
Java Bootcamp Day 4

Quiz
•
University
15 questions
Milking Minds 2 17-01-24

Quiz
•
University
15 questions
ARRAYLIST - JAVA

Quiz
•
University
10 questions
DEBUG THE CODE

Quiz
•
University
15 questions
C# Cơ bản

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