Search Header Logo

CRYPTEC TECHNICAL QUIZ 3RD SEM 2ND ROUND

Authored by PRAKHYATH KUDVA

Computers

University

CRYPTEC TECHNICAL QUIZ  3RD SEM 2ND ROUND
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

    Which function incorporates a membership 'identity label' in the header?

Member functions

Normal functions

Inline functions

Constant functions

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is the extra feature in classes which was not in the structures?

Member functions

Data members

Public access specifier

Static Data allowed

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Which definition best defines the concept of abstraction?

Hides the important data

Hides the implementation and showing only the features

Hiding the implementation

Showing the important data

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Which among the following is not a member of the class?

Virtual function

Constant function

Static function

Friend function

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is the size of a class?

Sum of the size of all inherited variables along with the variables of the same class

The size of the class is the largest size of the variable of the same class

Classes in the programming languages do not have any size

Sum of the size of all the variables within a class.

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Which of the following variable violates the definition of encapsulation?

Array variables

Local variables

Global variables

Public variables

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Box(double w, double h, double d) {

this.width = w;

this.height = h;

this.depth = d;

}

What is the purpose of “this” keyword in the above code snippet?

this is a reference to the method which was invoked

this can be used inside any method to refer to the current object

this is used to initialize and declare objects

this is used to initialize a method within a class

Access all questions and much more by creating a free account

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?