Java Basics

Quiz
•
Computers
•
University
•
Hard

Areej Althubaity
Used 60+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is a Java valid variable name?
Sum Grades
static
public
FindAverage
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Static methods refer to methds that:
are private and no one can see them
can be only accessed by an object of same class
return data of type static
can be written as ClassName.methodName(arguments)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
we could pass a whole array to a method as a value
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which statement is correct?
int Var
boolean 15;
double var123;
int min=0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int [] array2= array1;
array2 references to array1 and points to array1's elements
array2 will be created and has the same elements as array1
nothing will happen
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The output of the following code is:
int[] array = {2,4,6,8,10};
for (int i=0; i < array.length;i++){
System.out.println(array[2]);
}
2
4
6
8
10
2,4,6,8,10
6
6
6
6
6
Nothing
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
method signature is
method name + parameter list
same as method head
same as method body
a cool signature :)
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Java Programming

Quiz
•
University
14 questions
Array output

Quiz
•
University
15 questions
C programming

Quiz
•
University
12 questions
Numpy Quiz 1

Quiz
•
University
15 questions
ARRAYLIST - JAVA

Quiz
•
University
10 questions
OOPJ- Data Types-Java

Quiz
•
University
10 questions
Quiz1

Quiz
•
University
9 questions
عناوين العمليات بلغة جافا

Quiz
•
10th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade