Lab12_Quiz_section1

Lab12_Quiz_section1

University

10 Qs

quiz-placeholder

Similar activities

Quiz #2 (Refer to Javatpoint in answering these question)

Quiz #2 (Refer to Javatpoint in answering these question)

University

13 Qs

Functions C

Functions C

University

10 Qs

C++ Functions

C++ Functions

University

10 Qs

AWD - Midterm Quiz

AWD - Midterm Quiz

University

15 Qs

Java Interfaces

Java Interfaces

University

10 Qs

PHP QUIZ

PHP QUIZ

University

14 Qs

Basic Java

Basic Java

University

15 Qs

Python Functions and Docstrings Quiz

Python Functions and Docstrings Quiz

University

12 Qs

Lab12_Quiz_section1

Lab12_Quiz_section1

Assessment

Quiz

Computers

University

Medium

Created by

bme programming

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the fundamental unit of Object-Oriented Programming?

Variable

Function

Class

Method

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does encapsulation achieve in OOP?

Hides implementation details

Allows global access to variables

Increases code redundancy

Makes methods static

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a class in C#?

class

struct

object

namespace

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default access modifier for class members in C#?

public

private

protected

internal

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following defines a method inside a class?

public void Show() { }

method Show() { }

def Show():

func Show() { }

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the this keyword refer to in a C# class?

The parent class

The current instance of the class

The static members of the class

The global namespace

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is this commonly used for in constructors?

To define a new class

To refer to another class

To distinguish instance variables from parameters

To create static variables

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?