Java Basics

Java Basics

University

10 Qs

quiz-placeholder

Similar activities

pointers and structures

pointers and structures

University

10 Qs

CPP/C

CPP/C

University

10 Qs

Round 2 for Preplacement Bootcamp

Round 2 for Preplacement Bootcamp

University

15 Qs

Teste python- Unesp-Jaboticabal

Teste python- Unesp-Jaboticabal

University

10 Qs

07 - Map

07 - Map

University

15 Qs

Chapter 5-1: Review Questions & Exercises

Chapter 5-1: Review Questions & Exercises

University

10 Qs

ICF-Mechanical-(Theory Quiz-2)

ICF-Mechanical-(Theory Quiz-2)

University

10 Qs

PSP Week 5

PSP Week 5

University

10 Qs

Java Basics

Java Basics

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Areej Althubaity

Used 63+ 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 :)

Create a free account and access millions of resources

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?