Java Basics

Java Basics

University

10 Qs

quiz-placeholder

Similar activities

ENGINEERING DATA ANALYSIS PRELIM

ENGINEERING DATA ANALYSIS PRELIM

University

15 Qs

Clustering_Pertemuan2_Quiz_Ceria

Clustering_Pertemuan2_Quiz_Ceria

University

10 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

Python List

Python List

4th Grade - University

15 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

Data Security Worksheet

Data Security Worksheet

10th Grade - University

15 Qs

LA5.C5: Branching and Subroutines

LA5.C5: Branching and Subroutines

9th Grade - University

14 Qs

T02: Python - The Basics

T02: Python - The Basics

University

10 Qs

Java Basics

Java Basics

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Areej Althubaity

Used 65+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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 :)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers