OOP_1

OOP_1

University

10 Qs

quiz-placeholder

Similar activities

Quiz on IPR

Quiz on IPR

University

10 Qs

Metodología de la Programación P1P2

Metodología de la Programación P1P2

University

10 Qs

Lesson 6 System Terminology and Concepts

Lesson 6 System Terminology and Concepts

12th Grade - University

15 Qs

Quiz on Divide and Conquer Approach

Quiz on Divide and Conquer Approach

University

10 Qs

CYBERSYNAPSE

CYBERSYNAPSE

University

15 Qs

scrum

scrum

University

10 Qs

Chapter 4 - OSH Management System UiTM

Chapter 4 - OSH Management System UiTM

University

15 Qs

Battle of the Bridges

Battle of the Bridges

10th Grade - University

15 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?