[go: up one dir, main page]

100% found this document useful (11 votes)
23K views12 pages

Deltax Niraj

The document contains a 50 question technical MCQs assessment covering topics related to computer programming and software engineering. The questions test knowledge of concepts like data structures, algorithms, operating systems, databases, computer networks and more. Candidates have 45 minutes to complete the assessment which consists of multiple choice and code snippet questions to assess understanding of programming fundamentals.

Uploaded by

hjindal2be19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (11 votes)
23K views12 pages

Deltax Niraj

The document contains a 50 question technical MCQs assessment covering topics related to computer programming and software engineering. The questions test knowledge of concepts like data structures, algorithms, operating systems, databases, computer networks and more. Candidates have 45 minutes to complete the assessment which consists of multiple choice and code snippet questions to assess understanding of programming fundamentals.

Uploaded by

hjindal2be19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Candidate Details

DeltaX Technical MCQs

50 Questions - 45 minutes

1.What is the output of the code given below?

1 point

233

123

222

112

2.Address stored in the pointer variable is of type __________.

1 point

Integer

Floating

Array

Character

3.What happens when you execute the below code?

1 point

Hello is printed 5 times

Compilation Error

Hello is printed 2 times

Hello is printed 3 times


4.Race Condition is caused due to

1 point

Multi-Processing OS

Multi-Programming OS

Both of the above

None of the above

5.Convert the following infix expression to postfix expression - A / B ^ C + D * E - A * C

1 point

ABC/^DE*+AC*-

ABC^/D*E+AC*-

ABC^/DE*+A*C-

ABC^/DE*+AC*-

6.The average depth of a binary search tree is:

1 point

O(n^0.5)

O(n)

O(log n)

O(n log n)

7.A web cookie is a small piece of data

1 point

sent from user and stored in the server while a user is browsing a website

sent from a sever and stored in user’s machine

sent from root server to all servers

None of the above

8.Which one of these is not a Database System Type?

1 point

Relational

Hierarchical

Network

MySql

9.Like constructors, can there be more than one destructors in a class?


1 point

True

False

10.Are logical operators in the C language evaluated with the short circuit?

1 point

True

False

Depends on the compiler

Depends on the standard

11.In a full binary tree if number of internal nodes is I, then number of leaves L are?

1 point

L = 2I

L=I+1

L=l-1

L = 2I – 1

12.Web search engines stores information about many web pages by a ______.

1 point

Web Indexer

Web Crawler

Web Organizer

Web Router

13.What are the worst case and average case complexities of a binary search tree?

1 point

O(n), O(n)

O(logn), O(logn)

O(logn), O(n)

O(n), O(logn)

14.What is the output of the code given below?

1 point

Captionless Image

x is 97
x is 98

x is 99

Run time error

15.What is the output of the code given below? Assume that main function returns 0.

1 point

Captionless Image

True

False

Garbage value

Compile time error

16.Which of the following can be used to get the remainder when an integer a is divided by integer
b?

1 point

a/b

b/a

a%b

b%a

17.Which of the following is not a type of inheritance?

1 point

Multiple

Multilevel

Distributive

Hierarchical

18.The following function reverse() is supposed to reverse a singly linked list. There is one line
missing at the end of the function.

1 point

Captionless Image

*head_ref = prev;

*head_ref = current;

*head_ref = next;

*head_ref = NULL;
19.A doubly linked list is declared as given below. Where Fwd and Bwd represent forward and
backward link to the adjacent elements of the list. Which of the following segments of code
deletes the node pointed to by X from the doubly linked list, if it is assumed that X points to
neither the first nor the last node of the list?

1 point

Captionless Image

X->Bwd->Fwd = X->Fwd; X->Fwd->Bwd = X->Bwd ;

X->Bwd.Fwd = X->Fwd ; X.Fwd->Bwd = X->Bwd ;

X.Bwd->Fwd = X.Bwd ; X->Fwd.Bwd = X.Bwd ;

X->Bwd->Fwd = X->Bwd ; X->Fwd->Bwd = X->Fwd;

20.What will be the output of the code given below?

1 point

Captionless Image

10

Compilation Error

Undefined

21.Which of the following true about FILE *fp

1 point

FILE is a keyword in C for representing files and fp is a variable of FILE type.

FILE is a structure and fp is a pointer to the structure of FILE type

FILE is a stream

FILE is a buffered stream

22.With SQL, how can you insert a new record into the "Persons" table?

1 point

INSERT VALUES ('Jimmy', 'Jackson') INTO Persons

INSERT INTO Persons VALUES ('Jimmy', 'Jackson')

INSERT ('Jimmy', 'Jackson') INTO Persons

23.A complex problem which can be broken down into repeating sub-problems can be solved by a
method known as:

1 point

Recursion
Multithreaded Programming

Dynamic Programming

Functional Composition

24.Communication offered by TCP is

1 point

Full-duplex

Half-duplex

Semi-duplex

Byte by byte

25.The sizeof(void) in a 32-bit C compiler is_____

1 point

26. In below program, what would you put in place of “?” to print “tax”?

1 point

Captionless Image

arr

(arr+3)

(arr+4)

Not possible

27.The number of ways in which the numbers 1, 2, 3, 4, 5, 6, 7 can be inserted in an empty binary
search tree, such that the resulting tree has height 6, is _____________ Note: The height of a tree
with a single node is 0.

1 point

32

64

28.What will be the output of the following program ?

1 point
Captionless Image

10 20 10 20

10 20 10 garbage

Run Time Error

Compile time error

29.What type of value does sizeof return?

1 point

char

short

unsigned int

long

30.Guess the output of the code below

1 point

Captionless Image

x and y are equal

x and y are not equal

Compile time error

Run time error

31.Choose the best design

1 point

Captionless Image

i, iv, vi, viii

i, iv, vii

i, iii, v, vi, viii

ii, v, viii

32.The following C function takes a simply-linked list as input argument. It modifies the list by
moving the last element to the front of the list and returns the modified list. Some part of the code
is left blank. Choose the correct alternative to be added after the while loop.

1 point

Captionless Image

q = NULL; p->next = head; head = p;

q->next = NULL; head = p; p->next = head;


head = p; p->next = q; q->next = NULL;

q->next = NULL; p->next = head; head = p;

33.If a relation is in BCNF, it is also in:

1 point

1NF

2NF

3NF

All of the above

34.A person wants to visit some places. He starts from a vertex and then wants to visit every
vertex till it finishes from one vertex, backtracks and then explore other vertex from same vertex.
What algorithm he should use?

1 point

Depth First Search

Breadth First Search

Trim’s algorithm

None of the mentioned

35.The time required to examine the packet’s header and determine where to direct the packet is
part of

1 point

Processing delay

Queuing delay

Transmission delay

All of the mentioned

36.What is the time complexity of the following function?

1 point

Captionless Image

O(n^2)

O(n*log(n))

O(log(n))

O(1)

O(n)

37.DNS stands for?


1 point

Domain Name System

Direct Name System

Direct Network System

Domain Network System

38.How many copies of a static member of the class are created?

1 point

One per object

Zero

One

None of the above

39.With SQL, how do you select all the records from a table named "Persons" where the
"LastName" is alphabetically between (and including) "Hansen" and "Pettersen"?

1 point

SELECT LastName>'Hansen' AND LastName<'Pettersen' FROM Persons

SELECT * FROM Persons WHERE LastName BETWEEN 'Hansen' AND 'Pettersen'

SELECT * FROM Persons WHERE LastName>'Hansen' AND LastName<'Pettersen'

40.Following is C like pseudo code of a function that takes a number as an argument, and uses a
stack S to do processing. What does the below function do in general?

1 point

Prints the value of Logn

Prints the value of Logn in reverse order

Prints binary representation of n

Prints binary representation of n in reverse order

41.Set of consecutive memory locations is called as ________.

1 point
Function

Loop

Array

Pointer

42.How many abstract methods should an abstract class have?

1 point

Zero

One

Two

Three

43.The following numbers are inserted into an empty binary search tree in the given order: 10, 1, 3,
5, 15, 12, 16 What is the height of the binary search tree ?

1 point

44.How many distinct binary search trees can be created out of 4 distinct keys?

1 point

14

24

42

45.What is the job of Assembler in C programming?

1 point

It converts source code into assembly code

It converts a assembly language program into machine language

It convert code generated by Preprocessor to assembly code

None of the above

46.What is the function of the union operation?

1 point
It combines the results of any two different queries

It combines the results of two different queries which have the same set of attributes in the select
clause

It combines the results of two different queries which have the same condition in the where clause

It gives the Cartesian product of the results of any 2 queries

47.Transmission delay does depend on

1 point

Packet length

Distance between the routers

Both of the above

None of the mentioned

48.Which of the following is the fastest storage unit?

1 point

Hard Disk Drive

Solid State Drive

CPU registers

Random Access Memory

49.Consider a set of 5 processes whose arrival time, CPU time needed and priority(smaller the
number, higher the priority) are given below. If the CPU scheduling FCFS, the average waiting time
will be:

1 point

12.8 ms

8 ms

6 ms

None of the above


50.Exception handling is targeted at

1 point

Run-time error

Compile time error

Logical error

All of the above

Page 2 of 2

Never submit passwords through Google Forms.

GoogleForms

This form was created inside of DeltaX.

You might also like