Array

Array

University

11 Qs

quiz-placeholder

Similar activities

C++ Array Quiz

C++ Array Quiz

University

10 Qs

quiz pertemuan 2 asik ddp

quiz pertemuan 2 asik ddp

University

15 Qs

QUIZ 1: REVIEW ON C

QUIZ 1: REVIEW ON C

University

15 Qs

FSA,DFA dan NFA

FSA,DFA dan NFA

University

15 Qs

Family Quizz

Family Quizz

5th Grade - Professional Development

15 Qs

Node.js

Node.js

University

10 Qs

Quiz #2 ETEC 486 | Spr. 16

Quiz #2 ETEC 486 | Spr. 16

KG - University

10 Qs

GEMATMW - Cryptography

GEMATMW - Cryptography

University - Professional Development

16 Qs

Array

Array

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

rasyida rahman

Used 2K+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Java code to create a non-element array of student marks with the size of 20.

double mark;

double [20] mark = new double;

double [ ] mark = new mark [20];

double [ ] mark = new double [20];

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Java code to create a non-element array of student name with size 15.

String [ ] name = new String;

String [ ] name = new String [15];

name = new String [15];

String [15] name = new String [ ];

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Java code to create an array of student id with element 115331, 450055, 555641, 875560 and 987555.

int [ ] id = new {115331, 450055, 555641, 875560, 987555};

int [5] id = {115331, 450055, 555641, 875560, 987555};

int [ ] id = {115331, 450055, 555641, 875560, 987555};

int [ ] id = new int [5];

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Java code to create an array of subject code with element S, M, C, P, I and K.

char [ ] code = {'S', 'M', 'C', 'P', 'I' and 'K'};

char [ ] code = {S, M, C, P, I, K};

char [ ] code = {"S", "M", "C", "P", "I", "K"};

char [ ] code = {'S', 'M', 'C', 'P', 'I', 'K'};

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Java code to display the size of an array name studentname[ ].

System.out.println("The size is " + studentname[ index ]);

System.out.println("The size is " + studentname.length);

System.out.println("The size is " + length.length);

System.out.println("The size is " + studentname);

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Java code to display all elements of array studentname[ ].

Media Image
Media Image
Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Java code to read elements into array studentname[ ].

Media Image
Media Image
Media Image
Media Image

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?