Test 2

Test 2

University

50 Qs

quiz-placeholder

Similar activities

Kuis Informatika

Kuis Informatika

University

50 Qs

Chapter 3 & 5 (Software Quiz)

Chapter 3 & 5 (Software Quiz)

University

50 Qs

Artificial Intelligence

Artificial Intelligence

University

50 Qs

Speech Recognition: Mid Test Preparation

Speech Recognition: Mid Test Preparation

University

45 Qs

Data Structures

Data Structures

University

50 Qs

3 курс Cybersecurity Compliance Framework & System Administratio

3 курс Cybersecurity Compliance Framework & System Administratio

University

55 Qs

Sec-D  Javascript-1

Sec-D Javascript-1

12th Grade - University

52 Qs

Midterm Examination-Advacomt (I-AINS) Asuncion

Midterm Examination-Advacomt (I-AINS) Asuncion

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?