Weekly Contest #8 - TechXNinjas

Quiz
•
Computers
•
University
•
Hard
TechXNinjas undefined
Used 4+ times
FREE Resource
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
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
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
Similar Resources on Wayground
15 questions
Introduction to Django Framework Quiz

Quiz
•
University
10 questions
Website Design

Quiz
•
KG - University
7 questions
Unit 5: call by value

Quiz
•
University
12 questions
Chapter 2-1: Array Part 1

Quiz
•
University
10 questions
H466 - Global and Local Variables

Quiz
•
12th Grade - University
10 questions
Python - Functions

Quiz
•
University
12 questions
C++ Basics (1)

Quiz
•
University
15 questions
C Programming Array Concepts

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University