Technical Quiz R1
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Arun Kathir
Used 5+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is virtual inheritance in C++?
C++ technique to enhance multiple inheritance
C++ technique to ensure that a private member of the base class can be accessed somehow
C++ technique to avoid multiple inheritances of classes
C++ technique to avoid multiple copies of the base class
into children/derived class
Answer explanation
Virtual inheritance in C++ is a technique used to prevent multiple copies of a base class when using multiple inheritance. This ensures that derived classes share a single instance of the base class, avoiding ambiguity and redundancy.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm is the most efficient for large datasets?
Bubble Sort
Insertion Sort
Quick Sort
Selection Sort
Answer explanation
Quick Sort is the most efficient for large datasets due to its average time complexity of O(n log n), making it faster than Bubble Sort, Insertion Sort, and Selection Sort, which have worse average performance.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between delete and delete[] in C++
delete is syntactically correct but delete[] is wrong and hence will give an error if used in any case
delete is used to delete normal objects whereas delete[]
delete is a keyword whereas delete[] is an identifier
delete is used to delete single object whereas delete[] is used to multiple(array/pointer of) objects
Answer explanation
The correct choice states that 'delete' is used for a single object, while 'delete[]' is for multiple objects (arrays). Using 'delete[]' on a single object or 'delete' on an array can lead to undefined behavior, making this distinction crucial.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a relational database, which key uniquely identifies a record in a table?
Foreign Key
Candidate Key
Primary Key
Composite Key
Answer explanation
The Primary Key uniquely identifies each record in a table, ensuring that no two records have the same key value. Other keys like Foreign Key and Composite Key serve different purposes in relational databases.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these statements is incorrect about Thread?
start() method is used to begin execution of the thread
run() method is used to begin execution of a thread before start() method in special cases
A thread can be formed by implementing Runnable interface only
A thread can be formed by a class that extends Thread class
Answer explanation
The statement about the run() method is incorrect because the run() method does not start a thread; it is executed when the thread is started using the start() method. The start() method is essential for thread execution.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is Truncation in Java?
Floating-point value assigned to a Floating type
Floating-point value assigned to an integer type
Integer value assigned to floating type
Integer value assigned to floating type
Answer explanation
Truncation in Java occurs when a floating-point value is assigned to an integer type, resulting in the loss of the decimal part. This is why the correct answer is 'Floating-point value assigned to an integer type'.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is not a correct statement?
Every class containing abstract method must be declared abstract
Abstract class defines only the structure of the class not its implementation
Abstract class can be initiated by new operator
Abstract class can be inherited
Answer explanation
The statement 'Abstract class can be initiated by new operator' is incorrect. Abstract classes cannot be instantiated directly; they must be subclassed and the subclass can be instantiated.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
16 questions
E-Commerce
Quiz
•
University - Professi...
15 questions
8051-MCQ
Quiz
•
University
20 questions
Name The Disney Animation Films
Quiz
•
KG - University
19 questions
DBMS - Fundamentals
Quiz
•
University
20 questions
Latihan PSAS Kelas 9
Quiz
•
9th Grade - University
15 questions
PICMAKER
Quiz
•
University
15 questions
Vistacreate
Quiz
•
University
18 questions
12AIT - All About W3C <3
Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th 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
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
