Program_3

Program_3

Professional Development

10 Qs

quiz-placeholder

Similar activities

Dimensionamiento y Tolerancias en Dibujos Técnicos

Dimensionamiento y Tolerancias en Dibujos Técnicos

Professional Development

10 Qs

ST1802

ST1802

Professional Development

10 Qs

JOBSHEETQUIZ

JOBSHEETQUIZ

Professional Development

11 Qs

Solar Energy Quiz

Solar Energy Quiz

Professional Development

15 Qs

VEDA DIPLOMA/BTECH WEEKLY EXAM (16/06/2025)

VEDA DIPLOMA/BTECH WEEKLY EXAM (16/06/2025)

Professional Development

15 Qs

Day 46-Nov 6-worksheet-Diploma-Hydrological cycle

Day 46-Nov 6-worksheet-Diploma-Hydrological cycle

Professional Development

15 Qs

2. Basic Definitions, Designs and Drawings

2. Basic Definitions, Designs and Drawings

Professional Development

15 Qs

Midterm Formative Assessment No. 2

Midterm Formative Assessment No. 2

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?