Latihan UPS2

Latihan UPS2

5th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Unit 1,2, and 3 Review

Unit 1,2, and 3 Review

9th - 12th Grade

15 Qs

Arrays Unit

Arrays Unit

10th - 12th Grade

15 Qs

Java Arrays Basic

Java Arrays Basic

10th - 12th Grade

15 Qs

Arrays Intro

Arrays Intro

9th - 12th Grade

12 Qs

Computer Application Practice Quiz Class 10

Computer Application Practice Quiz Class 10

10th Grade

20 Qs

Программирование тест №2

Программирование тест №2

10th Grade

10 Qs

STATIC KEYWORD IN JAVA

STATIC KEYWORD IN JAVA

9th - 12th Grade

18 Qs

Lecture 4.4 Part 1

Lecture 4.4 Part 1

12th Grade

10 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?