Search Header Logo

Aptitude and OOP Concepts Assessment

Authored by Atharva Kulthe

Engineering

University

Used 1+ times

Aptitude and OOP Concepts Assessment
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the next number in the series: 2, 4, 8, 16, ?

32

64

24

40

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If A is taller than B and B is taller than C, who is the shortest?

B

D

C

A

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a certain code language, if 'CAT' is coded as '3120', how is 'DOG' coded?

2145

3056

4157

4178

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid pointer declaration in C?

float *ptr;

int ptr;

char ptr;

int *ptr;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is polymorphism in OOP?

Polymorphism is the ability to create multiple instances of a class.

Polymorphism refers to the process of combining multiple classes into one.

Polymorphism is the ability of a class to inherit properties from multiple classes.

Polymorphism is the ability of different classes to be treated as instances of the same class through a common interface.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the value pointed to by a pointer in C?

Use the dereference operator '*' to access the value pointed to by a pointer.

Use the increment operator '++' to retrieve the value from the pointer.

Access the value directly using the pointer variable without any operator.

Use the address operator '&' to access the value pointed to by a pointer.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: int a = 5; int *p = &a; printf('%d', *p);?

6

10

4

5

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?