
OOP_1

Quiz
•
Engineering
•
University
•
Medium
Arti Sonawane
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
15 questions
OH_Quiz1

Quiz
•
University
15 questions
Module01_C_M_M&A

Quiz
•
University
10 questions
Input & Output Interfacing Raspberry Pi Pico

Quiz
•
University
10 questions
Semana 9

Quiz
•
University
10 questions
Strings in python

Quiz
•
University
10 questions
java1

Quiz
•
University
15 questions
Variables y constantes

Quiz
•
University
10 questions
Alpro 2 Mg 1 - Understanding C++ Basics

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Engineering
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University