
Latihan UPS2
Authored by JULAILEE BM
Computers
5th - 12th Grade
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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.
(a)
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
(a)
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];
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?