Exploring Computer Science

Exploring Computer Science

10th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

Numpy-1

Numpy-1

9th - 12th Grade

10 Qs

LENGUAJE C

LENGUAJE C

11th Grade

13 Qs

Programming Quiz 1

Programming Quiz 1

11th Grade

11 Qs

Quiz 8 (01.09.2021)

Quiz 8 (01.09.2021)

1st - 12th Grade

10 Qs

OCR Internet Technologies

OCR Internet Technologies

10th - 11th Grade

12 Qs

แบบฝึกหัดทบทวนบทเรียน โครงสร้างภาษาซี

แบบฝึกหัดทบทวนบทเรียน โครงสร้างภาษาซี

12th Grade

12 Qs

Administrasi Infrastruktur Jaringan

Administrasi Infrastruktur Jaringan

1st - 10th Grade

10 Qs

1:1 Cart Procedures

1:1 Cart Procedures

KG - 12th Grade

10 Qs

Exploring Computer Science

Exploring Computer Science

Assessment

Quiz

Computers

10th - 12th Grade

Practice Problem

Hard

Created by

Charles Martinez

FREE Resource

AI

Enhance your content in a minute

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

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is FALSE about arrays on Java

A java array is an object

Length of array can be changed after creation of array

Numerical data types of arrays are initialized to 0 to start

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Find the output

class Test {

public static void main(String args[]) {

int arr[2];

System.out.println(arr[0]);

System.out.println(arr[1]);

}

}

Compile error

Exception

Garbage Value

Garbage Value

0

0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Find the output

class Test {

public static void main(String args[]) {

int [ ] arr = new int[2];

System.out.println(arr[0]);

System.out.println(arr[1]);

}

}

Compile error

Exception

Garbage Value

Garbage Value

0

0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the length of the following array: int [] data = { 12, 34, 9, 0, -62, 88 };

1

5

6

12

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Output of following Java program?

class Test{

public static void main (String[] args) {

int [] arr1 = {1, 2, 3};

int [] arr2 = {1, 2, 3};

if (arr1 == arr2)

System.out.println("Same");

else

System.out.println("Not same");

}}

Same

Not same

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_________________ is a collection of elements used to store the same type of data.

Array
Switch
Case
Loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the indexes for the array ar, given the following declaration:

int[] ar = {2, 4, 6, 8 }

 0, 1, 2, 3
 1, 2, 3, 4
2, 4, 6, 8
 0, 2, 4, 6

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

Already have an account?