Test 2

Test 2

University

•

50 Qs

quiz-placeholder

Similar activities

OBJECT ORIENTED ANALYSIS AND DESIGN

OBJECT ORIENTED ANALYSIS AND DESIGN

University

•

46 Qs

prelim_integ

prelim_integ

University

•

50 Qs

PKB - 6

PKB - 6

University

•

55 Qs

Davinci Resolve 17 Fusion 101

Davinci Resolve 17 Fusion 101

11th Grade - Professional Development

•

45 Qs

IT INFRA-MIDTERM EXAM

IT INFRA-MIDTERM EXAM

University

•

50 Qs

2nd C Programming Quiz

2nd C Programming Quiz

University

•

50 Qs

Microsoft Excels: Formulas and Functions

Microsoft Excels: Formulas and Functions

12th Grade - University

•

45 Qs

Tree dan Graph

Tree dan Graph

University

•

50 Qs

Test 2

Test 2

Assessment

Quiz

•

Computers

•

University

•

Practice Problem

•

Hard

Created by

Prof. Wadhwani

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is the correct way to declare an array in Java?

int arr[] = new int[5];
int arr = new int[5];
array arr[5];
int arr() = new int[5];

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of: System.out.println(10 + 20 + "Java");

30Java
Java30
1020Java
Java1020

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which keyword is used to inherit a class in Java?

implements
extends
inherit
super

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which operator is used to compare two values in Java?

equals
double equal
!=
slash

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How to find the length of a string in Java?

str.length
str.len()
str.length()
length(str)

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the default value of an int variable in Java?

0
null
undefined
1

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is NOT a primitive data type in Java?

int
boolean
String
double

Access all questions and much more by creating a free account

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?

Discover more resources for Computers