DSA Quiz (A)

DSA Quiz (A)

University

80 Qs

quiz-placeholder

Similar activities

BOS  End of Level State Exam Prep

BOS End of Level State Exam Prep

9th Grade - University

83 Qs

6. sınıf code.org

6. sınıf code.org

6th Grade - University

77 Qs

ITF+ pt2

ITF+ pt2

9th Grade - Professional Development

85 Qs

Mock Test 4

Mock Test 4

University

75 Qs

Activity 3.1 - Data Structures and Algorithms

Activity 3.1 - Data Structures and Algorithms

University

85 Qs

CPET 13 Pre-Midterm Exam

CPET 13 Pre-Midterm Exam

University

75 Qs

CC 111 Midterm Examination

CC 111 Midterm Examination

University

76 Qs

BDA Test - 1

BDA Test - 1

University

80 Qs

DSA Quiz (A)

DSA Quiz (A)

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Om Jaiswal

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

80 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In OOP, a friend function of a class has exclusive access to which members of that class?

Private & protected members
Public & protected members
Private & public members
Private members
Protected members

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In OOP, which of the following is used to achieve runtime polymorphism?

A friend function
A virtual function
Operator overloading
Function overloading

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In OOP, which of the following concepts allows a class object to be used inside another class?

Encapsulation
Abstraction
Composition
Inheritance

4.

MULTIPLE SELECT QUESTION

1 min • 1 pt

What is the postfix expression for the following prefix expression:

pq + rs-*
pqrs +-*
pq + rs *-
pq+-rs*

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How many nodes does a complete binary tree with N leaves contain?

2N
N
2N-1
N-1
2(N-1)

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these is an expression for runtime in T(n) for the following recurrence: T(n)=4T (n/ 2) + n²

O(n²)
O(nlogn)
O(n²logn)
O(nIog²n)

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In C, which of the following bitwise operators is used to turn off a specific bit in a number?

&&
&
||
!

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?