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
10 questions
Round 1

Quiz
•
University
10 questions
Polymorphism in C++ Quiz

Quiz
•
University
10 questions
C Programming - Basics 001

Quiz
•
University
15 questions
C programming

Quiz
•
University
8 questions
C++ pointers

Quiz
•
University
10 questions
IMK 027

Quiz
•
University
10 questions
DEBUG THE CODE

Quiz
•
University
8 questions
FST Class 2023- Quiz 4

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University