Java Quiz

Java Quiz

11th Grade

34 Qs

quiz-placeholder

Similar activities

CS 211 - Midterm Review

CS 211 - Midterm Review

University

30 Qs

Java Basics

Java Basics

11th - 12th Grade

35 Qs

Arrays and Lists

Arrays and Lists

10th - 12th Grade

29 Qs

Java Arrays and ArrayLists

Java Arrays and ArrayLists

10th - 12th Grade

29 Qs

Computer Programming 2

Computer Programming 2

University

30 Qs

Data Structure PrelimExam

Data Structure PrelimExam

University

35 Qs

AP CSA Review Set #1

AP CSA Review Set #1

9th - 12th Grade

37 Qs

Graded IB Computer Science Units 1 and 2 Overview

Graded IB Computer Science Units 1 and 2 Overview

11th - 12th Grade

33 Qs

Java Quiz

Java Quiz

Assessment

Quiz

Computers

11th Grade

Hard

Created by

Richard McLean

Used 2+ times

FREE Resource

34 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In a method, the return type should be __________ when the method returns no value.
Static
Private
Public
Void

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

A

B

C

D

E

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which one this keywords are used to create a class in java

class

struct

int

none of the avove

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of data is used to enter the value ("Welcome")?
Text
Characters
String
Boolean

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

int len = "jump it!".length();


What is the value of len?

8

7

9

6

This code does not compile.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which statement below is the correct way to retrieve the first element in the nums ArrayList?

nums.get(0)

nums[0]

nums(0)

nums[1]

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Given the ArrayList nums with the values [3, 7, 6, 0], what code below is the proper way to change the 7 to be a 5?

nums.set(1, 5)

nums.set(7, 5)

nums.set(5, 2)

nums[2] = 5

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?