
OOP_1
Authored by Arti Sonawane
Engineering
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
CYBERSYNAPSE
Quiz
•
University
10 questions
Quiz on IPR
Quiz
•
University
10 questions
Oblique shock and Expansion wave CO3
Quiz
•
University
10 questions
IC QUIZ
Quiz
•
University
10 questions
Metodología de la Programación P1P2
Quiz
•
University
10 questions
Water Resource Management in Selangor
Quiz
•
University
15 questions
Computer Architecture Quiz - 1
Quiz
•
University
10 questions
Recap Sessions 16 & 17
Quiz
•
11th Grade - University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Engineering
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University