Latihan UPS2

Latihan UPS2

5th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

JAVA string

JAVA string

12th Grade

20 Qs

Arrays in Java

Arrays in Java

9th - 12th Grade

20 Qs

Quiz 15 - Array Basics

Quiz 15 - Array Basics

11th Grade

10 Qs

Java Arrays Basic

Java Arrays Basic

10th - 12th Grade

15 Qs

Arrays

Arrays

10th - 12th Grade

10 Qs

Arrays Intro

Arrays Intro

9th - 12th Grade

12 Qs

2D Arrays

2D Arrays

9th - 12th Grade

15 Qs

Latihan UPS2

Latihan UPS2

Assessment

Quiz

Computers

5th - 12th Grade

Medium

Created by

JULAILEE BM

Used 10+ times

FREE Resource

15 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

This is an example of not valid variable declaration.

string name,

Rewrite a valid java variable declaration.

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

All the primitive data types are

String

int

double

char

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Data type to represents integer

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

An array consists of

Data type

Size

Index location

Value

Name

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following statement is TRUE. Declare a name array and makes it refer to an array of three elements

String [ ] name = {" Adam", " Kevin" , "Aminah" };

String [ ] name = {Adam, Kevin , Aminah };

String [3 ] name = {" Adam", " Kevin" , "Aminah" };

string [ ] name = {" Adam", " Kevin" , "Aminah" };

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Declare an array variable

int [ ] counts;

int [5 ] counts;

int [ ] counts [ ] ;

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Create array

counts = new int [5];

counts [ ] = new int [5];

marks = new int [50];

marks = new int [-85];

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?