Latihan UPS2

Latihan UPS2

5th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

String pada Java

String pada Java

12th Grade

15 Qs

Lesson 1 | Introduction to Python

Lesson 1 | Introduction to Python

9th Grade

15 Qs

Java Arithmetic Operations

Java Arithmetic Operations

11th Grade

10 Qs

Jenis Data

Jenis Data

7th - 12th Grade

10 Qs

CodeHS Unit 2

CodeHS Unit 2

11th - 12th Grade

13 Qs

J277 - 10QQ - Basic Python 1

J277 - 10QQ - Basic Python 1

8th - 10th Grade

10 Qs

Arrays

Arrays

10th - 12th Grade

10 Qs

JAVA string

JAVA string

12th Grade

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