wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Technical Quiz R1

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is virtual inheritance in C++?

a)

C++ technique to enhance multiple inheritance

b)

C++ technique to ensure that a private member of the base class can be accessed somehow

c)

C++ technique to avoid multiple inheritances of classes

d)

C++ technique to avoid multiple copies of the base class

into children/derived class

2.

Which sorting algorithm is the most efficient for large datasets?

a)

Bubble Sort

b)

Insertion Sort

c)

Quick Sort

d)

Selection Sort

3.

What is the difference between delete and delete[] in C++

a)

delete is syntactically correct but delete[] is wrong and hence will give an error if used in any case

b)

delete is used to delete normal objects whereas delete[]

c)

delete is a keyword whereas delete[] is an identifier

d)

delete is used to delete single object whereas delete[] is used to multiple(array/pointer of) objects

4.

In a relational database, which key uniquely identifies a record in a table?

a)

Foreign Key

b)

Candidate Key

c)

Primary Key

d)

Composite Key

5.

Which of these statements is incorrect about Thread?

a)

start() method is used to begin execution of the thread

b)

run() method is used to begin execution of a thread before start() method in special cases

c)

A thread can be formed by implementing Runnable interface only

d)

A thread can be formed by a class that extends Thread class

6.

What is Truncation in Java?

a)

Floating-point value assigned to a Floating type

b)

Floating-point value assigned to an integer type

c)

Integer value assigned to floating type

d)

Integer value assigned to floating type

7.

Which of these is not a correct statement?

a)

Every class containing abstract method must be declared abstract

b)

Abstract class defines only the structure of the class not its implementation

c)

Abstract class can be initiated by new operator

d)

Abstract class can be inherited

8.

In E-R model, Y is the dominant entity and X is subordinate entity

a)

If X is deleted, then Y is also deleted

b)

If Y is deleted, then X is also deleted

c)

If Y is deleted, then X is not deleted

d)

None of the above

9.

The relation schemas R1 and R2 form a Lossless join decomposition of R if and only if: (a) R1 0 R2 (R1-R2)

a)

(a) and (b) happens

b)

(a) and (d) happens

c)

(a) and (c) happens

d)

(b) and (c) happens

10.

Which of the following statements is FALSE about weak entity set?

a)

Weak entities can be deleted automatically when their stro ng entity is deleted.

b)

Weak entity set avoids the data duplication and consequen t possible inconsistencies caused by duplicating the key of the strong entity.

c)

A weak entity set has no primary keys unless attributes of t he strong entity set on which it depends are included

d)

Tuples in a weak entity set are not partitioned according to their relationship with tuples in a strong entity set.

11.

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;}

a)

Compile time error

b)

Hello World! 34

c)

Hello World! 1000

d)

Hello World! followed by a junk value

12.

Which of the following is not possible statically in C?

a)

Jagged Array

b)

Rectangular Array

c)

Cuboidal Array

d)

Multidimensional Array

13.

Which of the following is the use of id() function in python?

a)

Every object doesn't have a unique id

b)

Id returns the identity of the object

c)

All of the mentioned

d)

None of the mentioned

14.

The following python program can work with

parameters.

def f(x):

def f1(*args, **kwargs):

print("Sanfoundry")

return x(*args, **kwargs)

return f1

a)

any number of

b)

0

c)

1

d)

2

15.

The process of pickling in Python includes

a)

conversion of a Python object hierarchy into byte stream

b)

conversion of a datatable into a list

c)

conversion of a byte stream into Python object hierarchy

d)

conversion of a list into a datatable

16.

In which year was the Python language developed?

a)

1995

b)

1972

c)

1981

d)

1989

17.

What does the SQL LIKE operator do?

a)

Compares two values for equality

b)

Finds rows that match a specified pattern

c)

Calculates the sum of values

d)

Sorts result in ascending or descending order

18.

Which of the following statements is correct regarding the object-oriented programming concept in Python?

a)

Classes are real-world entities while objects are not real

b)

Objects are real-world entities while classes are not real

c)

Both objects and classes are real-world entities

d)

All of the above

19.

What is the order of precedence in Python?

a)

Exponential, Parentheses, Multiplication, Division, Addition, Subtraction

b)

Exponential, Parentheses, Division, Multiplication, Addition, Subtraction

c)

Parentheses, Exponential, Multiplication, Division, Subtraction, Addition

d)

Parentheses, Exponential, Multiplication, Division, Addition, Subtraction

20.

What is the default port number for HTTP?

a)

80

b)

21

c)

443

d)

25