Program_3

Program_3

Professional Development

10 Qs

quiz-placeholder

Similar activities

Day 47-Nov 7PWD-Tall building,slip form,precast,failure,CM intro

Day 47-Nov 7PWD-Tall building,slip form,precast,failure,CM intro

Professional Development

15 Qs

Day 67-Dec 1-worksheet-Diploma-Contouring

Day 67-Dec 1-worksheet-Diploma-Contouring

Professional Development

15 Qs

Day 67-Dec 1-Btech-worksheet-Water demand

Day 67-Dec 1-Btech-worksheet-Water demand

Professional Development

15 Qs

Day 62-Nov 25-worksheet-Diploma-Compass surveying part 1

Day 62-Nov 25-worksheet-Diploma-Compass surveying part 1

Professional Development

15 Qs

Line Of Fire

Line Of Fire

Professional Development

8 Qs

Security Fundamentals and Windows OS Security

Security Fundamentals and Windows OS Security

Professional Development

10 Qs

IoT Quiz

IoT Quiz

Professional Development

10 Qs

QUIZZIS PARQUES FOTOVOLTAICOS

QUIZZIS PARQUES FOTOVOLTAICOS

Professional Development

10 Qs

Program_3

Program_3

Assessment

Quiz

Engineering

Professional Development

Practice Problem

Medium

Created by

Ms C

Used 2+ 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

1. What is the purpose of the raiseSalary() method in the Employee class?

a) To set a new salary directly

b) To increase the salary by a given percentage

c) To print the salary details

d) To decrease the salary

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the access modifier for the instance variables id, name, and salary?

a) public

b) private

c) protected

d) default

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to create an object of the Employee class?

a) this

b) new

c) super

d) create

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which concept of OOP is shown by using private variables and public getter methods?

a) Inheritance

b) Encapsulation

c) Polymorphism

d) Abstraction

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the this keyword refer to inside the constructor?

a) The parent class

b) The current object of the class

c) The static variable

d) The superclass

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method automatically executes when an object is printed?

a) print()

b) display()

c) toString()

d) show()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which part of the program demonstrates data hiding?

a) Private variables with public getters

b) Printing salary

c) Using toString()

d) Using new keyword

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

Already have an account?