Weekly Contest #8 - TechXNinjas

Weekly Contest #8 - TechXNinjas

University

10 Qs

quiz-placeholder

Similar activities

Tree and Planar Graph

Tree and Planar Graph

University

10 Qs

CodeMonkey for B.Ed IT

CodeMonkey for B.Ed IT

University

10 Qs

Computational Thinking in Python[Quiz 3]

Computational Thinking in Python[Quiz 3]

University

15 Qs

JRB2 Quiz 4

JRB2 Quiz 4

University

10 Qs

TOOLS FOR AD & TECHNOLOGY DEVELOPMENT (W4-W6)

TOOLS FOR AD & TECHNOLOGY DEVELOPMENT (W4-W6)

University

10 Qs

Understanding Email, Contacts and Calendaring

Understanding Email, Contacts and Calendaring

University

10 Qs

ICT 0513 - Chapter 4 : System Unit

ICT 0513 - Chapter 4 : System Unit

University

15 Qs

BB

BB

University

10 Qs

Weekly Contest #8 - TechXNinjas

Weekly Contest #8 - TechXNinjas

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

TechXNinjas undefined

Used 4+ 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

What is the main purpose of a pure virtual function in C++?

To provide a default implementation that can be overridden.

To enforce that derived classes must override the function.

To optimize the execution speed of virtual functions.

To allow multiple inheritance in C++.

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

  1. What is the time complexity of this function for an input n?

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements about default arguments in functions is true?

Default arguments can be placed anywhere in the parameter list of a function.

Default arguments must be provided for all parameters of a function.

Default arguments must be specified from right to left in the parameter list.

Default arguments are mandatory for all overloaded functions.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators cannot be overloaded in C++?

+ (plus)

== (equality)

&& (logical AND)

[ ] (subscript)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Will this code compile?

Yes

No

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is correct about function pointers?

Function pointers can only point to functions that have no parameters.

Function pointers can only point to functions that return void.

Function pointers can point to member functions without any restrictions.

Function pointers can point to any function that matches the signature of the pointer type.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a disadvantage of using inline functions?

They decrease the execution time of the program.

They increase the code size due to code duplication.

They require more memory allocation for variables.

They cannot be used in header files.

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?