OOP_1

OOP_1

University

10 Qs

quiz-placeholder

Similar activities

Electro 2 PSW 3

Electro 2 PSW 3

University

15 Qs

Electric Drives and Traction Quiz

Electric Drives and Traction Quiz

University

15 Qs

Quiz on Safety and Design

Quiz on Safety and Design

9th Grade - University

15 Qs

CIVILWAR (surveyor)- DAY 29 - (Surveying- INTRODUCTION PART

CIVILWAR (surveyor)- DAY 29 - (Surveying- INTRODUCTION PART

1st Grade - University

10 Qs

ComSoc Ice Breaker

ComSoc Ice Breaker

University

15 Qs

PAVEMENT DESIGN

PAVEMENT DESIGN

University

15 Qs

Rectifiers and AC Controllers

Rectifiers and AC Controllers

University

15 Qs

Blockchain for Accelerated Processing of Supply Chain

Blockchain for Accelerated Processing of Supply Chain

University

10 Qs

OOP_1

OOP_1

Assessment

Quiz

Engineering

University

Practice Problem

Medium

Created by

Arti Sonawane

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will str1==str2 return if both refer to the same string literal?

true

false

compilation error

0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a constructor?

To destroy objects

to call methods

to initialise object

to inherit classes

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is an incorrect array declaration?

int arr[] = new int[5]

int [] arr = new int[5]

int arr[] = new int[5]

int arr[] = int [5] new

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which access modifier makes a member accessible within the same package?

public

private

protected

default(no modifier)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the static keyword mean in a method declaration?

The method belongs to an object

The method can only be called once

The method belongs to the class, not instances

The method cannot be accessed

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is constructor overloading?

Having multiple constructors with different names

Having multiple constructors with different return types

Having multiple constructors with different parameters

Having a constructor inside a method

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these method of String class can be used to test to strings for equality?

isequal()

isequals()

equal()

equals()

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?