
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
10 questions
Conceptos C++

Quiz
•
University
14 questions
Preguntas sobre Punteros en C/C++

Quiz
•
University
15 questions
TRICODE CHALLENGE ROUND 1

Quiz
•
University
15 questions
TECH WHIZ

Quiz
•
University
10 questions
Pseudocodigo y PSeInt

Quiz
•
University
15 questions
BugBlitz

Quiz
•
University
13 questions
Mastering OOP Concepts in Java

Quiz
•
University
10 questions
Java Array Mastery

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade