Latihan UPS2

Latihan UPS2

5th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Python Programming

Python Programming

11th Grade

17 Qs

Java - arrays and String methods

Java - arrays and String methods

9th - 12th Grade

12 Qs

C# lesson10

C# lesson10

1st - 10th Grade

10 Qs

Microbit (python)

Microbit (python)

8th - 10th Grade

15 Qs

Arrays and Algorithms

Arrays and Algorithms

10th - 12th Grade

15 Qs

C++ Arrays

C++ Arrays

8th - 12th Grade

12 Qs

APCSA Arrays

APCSA Arrays

9th - 12th Grade

20 Qs

Array

Array

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