NEW
Font size
WorksheetsTechnical Quiz R1
Total questions: 20
Worksheet time: 10mins
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
Which sorting algorithm is the most efficient for large datasets?
Bubble Sort
Insertion Sort
Quick Sort
Selection Sort
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
In a relational database, which key uniquely identifies a record in a table?
Foreign Key
Candidate Key
Primary Key
Composite Key
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
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
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
In E-R model, Y is the dominant entity and X is subordinate entity
If X is deleted, then Y is also deleted
If Y is deleted, then X is also deleted
If Y is deleted, then X is not deleted
None of the above
The relation schemas R1 and R2 form a Lossless join decomposition of R if and only if: (a) R1 0 R2 (R1-R2)
(a) and (b) happens
(a) and (d) happens
(a) and (c) happens
(b) and (c) happens
Which of the following statements is FALSE about weak entity set?
Weak entities can be deleted automatically when their stro ng entity is deleted.
Weak entity set avoids the data duplication and consequen t possible inconsistencies caused by duplicating the key of the strong entity.
A weak entity set has no primary keys unless attributes of t he strong entity set on which it depends are included
Tuples in a weak entity set are not partitioned according to their relationship with tuples in a strong entity set.
What will be the output of the following C code?
#include <stdio.h>
int main(){
int y = 10000; int y = 34;
printf("Hello World! %d\n", y);
return 0;}
Compile time error
Hello World! 34
Hello World! 1000
Hello World! followed by a junk value
Which of the following is not possible statically in C?
Jagged Array
Rectangular Array
Cuboidal Array
Multidimensional Array
Which of the following is the use of id() function in python?
Every object doesn't have a unique id
Id returns the identity of the object
All of the mentioned
None of the mentioned
The following python program can work with
parameters.
def f(x):
def f1(*args, **kwargs):
print("Sanfoundry")
return x(*args, **kwargs)
return f1
any number of
0
1
2
The process of pickling in Python includes
conversion of a Python object hierarchy into byte stream
conversion of a datatable into a list
conversion of a byte stream into Python object hierarchy
conversion of a list into a datatable
In which year was the Python language developed?
1995
1972
1981
1989
What does the SQL LIKE operator do?
Compares two values for equality
Finds rows that match a specified pattern
Calculates the sum of values
Sorts result in ascending or descending order
Which of the following statements is correct regarding the object-oriented programming concept in Python?
Classes are real-world entities while objects are not real
Objects are real-world entities while classes are not real
Both objects and classes are real-world entities
All of the above
What is the order of precedence in Python?
Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
Exponential, Parentheses, Division, Multiplication, Addition, Subtraction
Parentheses, Exponential, Multiplication, Division, Subtraction, Addition
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
What is the default port number for HTTP?
80
21
443
25
