0% found this document useful (0 votes)
26 views40 pages

Merge Docs

The document contains a series of questions and answers related to various topics, including data structures, logic puzzles, historical events, and programming concepts. It discusses efficient storage of sparse matrices, characteristics of 2-3 trees, ingredient selection in cooking, and the implications of the second industrial revolution. Additionally, it addresses the end of the French monarchy and the purpose of the Address Resolution Protocol in networking.
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
0% found this document useful (0 votes)
26 views40 pages

Merge Docs

The document contains a series of questions and answers related to various topics, including data structures, logic puzzles, historical events, and programming concepts. It discusses efficient storage of sparse matrices, characteristics of 2-3 trees, ingredient selection in cooking, and the implications of the second industrial revolution. Additionally, it addresses the end of the French monarchy and the purpose of the Address Resolution Protocol in networking.
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/ 40

20. In what way the Symmetry Sparse Matrix can be stored efficiently?

In what way the Symmetry Sparse Matrix can be stored efficiently?

Pick ONE option

Heap

• Binary tree

Hash table

• Adjacency List ++++++++++++++++++++++++++++++++++++++++

21. Which of the following is false?

Which of the following is false?

Pick ONE option

2-3 tree requires less storage than the BST++++++++++++++++++++++++++++++++++

lookup in 2-3 tree is more efficient than in BST

• 2-3 tree is shallower than BST

• 2-3 tree is a balanced tree

w am={

22. Chef's Puzzle 1

Out of the nine ingredients, a chef wants to use exactly five. Given the following statements, how many
of the 5 ingredients are kno

The ingredients are apricots, bacon, cake, donuts, eggs, figs, grapes, hazelnuts, and ice cream.

1. If bacon is not used, then grapes, hazelnuts, and ice cream are not used.

2. If apricots are used then bacon and cake are used.

3. If donuts are not used, apricots are not used.

4. Apricots and eggs are used.

Pick ONE option

•2

3
4

• 5++++++++++++++++++++++++++++++++++++++

There is a network of eight cities (represented by vertices) connected by roads. A traveler must drive on
each road segment once bu

starting and ending points do not have to match. New roads are constructed between C and G, and
between H and F. If the journey

answer : After these additions, the vertices with odd degrees are BBB, CCC, DDD, and HHH (still four
vertices with odd degrees).

Conclusion:

Since there are more than two vertices with odd degrees, the graph does not have an Eulerian path or
circuit. Therefore, the journey to drive on each road segment exactly once is not possible, even after
constructing the new roads.

A cube is painted green on all surfaces and is cut into 1000 identical cubes. How many of the smaller
cubes have three faces painte

Pick ONE option

• 8++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

• 10.

• 100

• 64.

25. Favorite Color

There are five people: Jack, Matthew, Albert, Peter, and Sebastian.

Each plays one sport out of football, cricket, volleyball, badminton, and squash.

They are from South Korea, the UK, India, China, and Russia, though not necessarily in that order.

Their favorite colors are brown, green, red, black, and yellow, again not necessarily in that order.
The following information is known-

1. Jack's favorite color is red. He is not from India or China.

2. Albert plays football. His favorite color is not yellow, and he is not from the UK.

3. Peter and Sebastian have yellow and green as their favorite colors, not necessarily in that order.

4. Matthew plays badminton. He is from Russia.

5. Peter and Sebastian are from China and UK, not necessarily in that order.

6. Brown is the favorite color of the person from India.

7. Green is the favorite color of the person from China.

8. The person from South Korea plays squash an(§the person from the UK plays volleyball. One of them
has yellow as his favorite co

Whose favorite color is black?

Pick ONE option

Matthew++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

• Albert|

Peter

Cahactian.

There are five people - Peter, Tyson, Richard, Steve and Quinn - standing in a row. Given the following
statements, who is in the mid

1. Peter is next to Quinn and Steve is next to Richard.

2. Steve is not next to Tyson.

3. Tyson is on leftmost position.

4. Richard is on the second position from the right.

5. Peter stands somewhere to the right of both Quinn and Tyson.

6. Peter and Richard are next to each other.

----------->Steve is on the rightmost position.------------------->Richard is standing on the second position


from the left.----->midddle person is peter------>Steve is in the fifth position
28. In the following question, choose the correct option which can be substituted for the given sentence.
A self-governing country or

region Pick ONE option

Autonomy++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Autocracy

Anarchy

Ethnclogy

30. I've been studying for this exam for months, so I'm hoping to

„&nbsp:

Too boon studying far this exam far menchs, sa te hoping to

PIck ONE opcion

3 Hit the pound runing&ntsp:++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Have a fcid dayanbsp:

Be a dark horseßntsp:

) Have a lot on my plate&nbap:

Clear Scluction

31. Reading Comprehension - The Second Industrial Revolution in America V

Read tha passage and antwer me questiona that follows.

While the first industrial revolution, which spanned the years from roughly 1760 to about 1820-1840,
laid the groundwork, the second industrial revolution brought about changes

truly desired by both the masses and high-profile citizens. The second industrial revolution, as defined by
historians, took place between 1870 and 1914. At the time, there wes an

abrupt rise in urbanization and the development of acditional land. This created the need for
technological breakthroughs to make llving, simpler.

The steel industry boomed while iron became almost absolete. Stoel's lower cost and higher strength-to-
weight ratio made it simpier and more practical for building projects,
Industrial machinery, railroads, ships, and many other things. As a result, building bigger structures,
creating more mechanical commodities, and traveling and transporting goods

Tarther distances became common..

The development of electricity into wide use was even more significant. Before the arrival of public
electricity, candles and gas lamps were used to light houses and factories. Electric

lighting altered how people worked and lived, as working hours were no longer restricted to daytime.
Beyond a source of illumination, public electricity spawned numerous other

eline the as Fee 87 eithe gene out ne an a report of a adi are burst in ested see yes it could

attempts by numerous Inventors.

The first electric railroad debuted in Berlin, Germany, in 1879. Likewise, electric streetcars began to
replace horse drawn carriages in major European cities as early as 1880.

The crown of the second industrial revolution was the internal combustion engine. It was first presented
in 1878. The gas and the air-driven vehicle were unsuitable for the general

public due to safety issues. With the advent of more stable liquid fuels such as petroleum, initial
problems were quickly overcorne.

Automobiles and airplanes were developed as a result of this engine. None of the following innovations
would have been conceivable without it, implying that the modern means of

transportation would be only a dream.

The German Inventor Karl Benz Leade the first self-propelled car in 1806. It was made avallable to the
public in 1888, In the same year, Gottleb Daimler developed a lighter-weight

engine, and in 1896, Henry Ford fully commercialized the use of automoblies.

Years later, the Wright brothers invented the first practical aircraft, overcoming the difficult technical
issues that had impeded mechanical flight for centuries. Before their

invention, steerable or dirigible hydrogen-powered balloons were the only method of air travel available
to man.

Since then, the world has experienced several industrial revolutions that have paved the way for the
development of electronics, telecommunications, and computers and opened

the door for space exploration, research, and biocechnology. Still, the second revolution is still
remembered as the era of iconic inventions that spawned technology use today.

The word "spawned" in the passage is farthest in meaning from Pik ONE options

• fostered

© begal

• generates
O squelched++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

32. Reading Comprehension - The End of the French Monarchy V

Read the passago and anteer the questions thac folloes

As the 18th century came to a close, France and Britain were in e dravn out war to edvance their
empires. Due mainly to the cost of war, France wes on the verge of bankruptcy.

Meanwhile, French King Louis XVI and his queen, Mary Antoinette, lived an extravagent lifestyle.

Despite the fact that he ruled France during the height of the Enlightenment Era, Louis XVI was unable to
establish himself as an enlightened absolutist. His efforts to allow citizens

more opportunities along with some proposed societal ideals led to increased bureaucracies and even
more expenditures. The royal treasury was almost empry, necessitating

additional taxes.

At the same time, there were years of poor harvests due to drought. Spiking bread prices led to unrest
among the non-aristocrat classes. This, coupled with increased taxes, caused

resentment among the lover classes. Even some in the noble classes became disenchanted with the
monarchy as their own access to a lavish lifestyle was curtailed.

As the war continued, citizens became agitated and begon to speek out against the weakened monarchy.
The excesses of the monarchy showed citizens that any spoils of war were

not likely to be shared with them. Quickly, their unrest changed from passive to active, and common
people began plans to depose the monarchy.

The nation was overtaken by a wave of mass panic and revolutionary passion. Peasants rebbed and set
fire to the homes of tax collectors, landlords, and members of the aristocratic

class. Out of concern for his family's safety and disgust with the ongoing revolution in the country, in
june 1792, the king fied Parts for the Austrian frontier. During the journey, he

was recognized, captured, and returned to Paris. An irdue public demanded his imprisonment in August
1792, and the monarchy was overthrown in September.

Soon after, evidence of the king's counter revolutionary plots with other countries wes discovered, and
he was charged with treason. He was found guilty in jenuary 1793, and given

the death penalty. He stubbornly approached the guillotine on january 21 and was put to death. Nine
months later, queen Marie Antoinette was executed for the same reason.

Ultimately, the monarchy's end resulted from the royals penchant for abusing power. Decades of waste
and obscene indulgences ended in a brutal, extreme manner by a people no
longer willing to be yoked. Perhaps the monarchy would still exist if they had paid more attention to the
concerns of the populace.

According to the passage, which of the following statements is incorrect? ©

Al the noties were hapoy with the way King Louls XVI governed the
country.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

• The underdass plundered and pillaged the nom$for nobles during, the height of the unrest.

C King Louis XVI's wife, queen Mary Antoinette, was also canvicled of reason.

Part of the reason behind the increase in ta was to tund the wear with Britain.

34.postfix expression for the corresponding infix expression? a+b*c+(d*e)

answer--->a b c *+ d e * +

4.in a company, 100 employees are randomly selected. 50 like watching football 40 like watching hockey
and the rest like both. Find out the number of employees wino like to watch at least one game-----
>80+++++++++++++++++++++++++++++++++++++++++++++++++++++++

16. What does idempotency mean in REST API design?

What does idempotency mean in REST API design?

Pick ONE option

• The ability of an API to handle multiple requests in parallel®

• The property that a method can be called multiple times without different
outcomes+++++++++++++++++++++++++++++++++++++++++++++++

• The capability of an API to update data

• The feature of an API that allows it to delete resources

7. Consider the below java method. What's the output of this method? public static void function 1(int I
data, int low, int high) <
if (low < high) {int temp = data[lbw]: data[low] = data[high): data[high] = temp; function_1(data, low +1,
high -1%. VY

Consider the below java method. What's the output of this method?

public static void function_1(int [] data, int low, int high) €

if (low < high) t

int temp = data[low];

data[low] = data(high];

data(high] = temp;

function_1(data, low +1, high -1); Pick ONE option

The sum of all the elements of the array

The product of all the elements in the array.

The last element of the array.-------------------------------------->NOne Of the method is correct

(((((The correct answer is that the method reverses the elements of the array between the indices low
and high. However, since none of the provided options directly describe this behavior, the closest
interpretation is:)))))))

Read the passage and answer the questions that follow.

While the first industrial revolution, which spanned the years from roughly 1760 to about 1820-1840,
laid the groundwork, the second industrial rev

changes truly desired by both the masses and high-profile citizens. The second industrial revolution, as
defined by historians, took place between 1870 and 1914, At tha

time, there was an abrupt rise in urbanization and the development of additional land. This created the
need for technological brea

nớis to mute Wring simpler

nore practical far wunding

transporting goods farther distances became common.

adities, and traveling and

The development of electricity into wide use was even more significant. Before the arrival of public
electricity, candles and gas lamps were used to light houses and

factories. Electric lighting altered how people worked and lived, as working hours were no longer
restricted to daytime. Beyond a source of illumination, public electricity
spawned numerous other inventions. Alexander Graham Bell invented the telephone in 1876. This
inspired Guglielmo Marconi to Invent the practical radio wave-based

wireless telegraph system that could send signals over the Atlantic Ocean in 1901. Thomas Edison
perfected the light bulb in 1879, which was reported to last 13 and a ha

hours in the wake of several unsatisfactory attempts by numerous inventors.

The first electric railroad debuted in Berlin, Germany, in 1879. Likewise, electric streetcars began to
replace horse-drawn carriages in major European cities as early as

1880.

The crown of the second industrial revolution was the internal combustion engine. It was first presented
in 1878. The gas and the air driven vehicle were unsuitable !

general public due to safety issues. With the advent of more stable liquid fuels such as petroleum, initial
problems were quickly overcome.

Automobiles and airplanes were developed as a result of this engine. None of the following innovations
would have been conceivable without it, implying that the 1

means of transportation would be only a dream.

The German inventor Karl Benz made the first self-propelled car in 1886. It was made available to the
public in 1888. In the same year, Gottlieb Daimier developed

weight engine, and in 1896, Henry Ford fully commercialized the use of automobiles.

Years later, the Wright brothers invented the first practical aircraft, overcoming the difficult technical
issues that had impeded mechanical flight for centuries. !

Invention, steerable or dirigible hydrogen-powered balloons were the only method of air travel available
to man.

Since then, the world has experienced several industrial revolutions that have paved the way for the
development of electronics, telecommunications, and cor

opened the door for space exploration, research, and biotechnology. Still, the second revolution is still
remembered as the era of iconic inventions that spawn

technology use today.

The word "spawned" in the passage is farthest in meaning from

chatgpt------>In the passage, the word "spawned" means to cause or bring about something. It implies
that the use of public electricity led to the creation of new inventions.

The word "spawned" is farthest in meaning from:"Prevented" (which means to stop something from
happening)In context, "spawned" means to generate or produce, which is quite different from
"prevented.
gemini------->The word "spawned" in the passage is farthest in meaning from suppressed.Spawned:
means to produce or generate something, especially in large numbers or over a short
period.Suppressed: means to put down or stop something by force.Therefore, "suppressed" is the
opposite of "spawned" and is the farthest in meaning from it.

chegg----->The word "spawned" in the passage is farthest in meaning from "destroyed."

answr------------------------------------>The traveler can start from any city withan even degree in the graph.
The specificcities depend on the graph'sconfiguration, which is not provided.

19. What is the purpose of ARP (Address Resolution Protocol) in computer networing

What is the purpose of ARP (Address Resolution Protocol) in computer networking

Pick ONE option

• To convert IP addresses to MAC addresses+++++++++++++++++++++++++++

To convert domain names to IP addresses

) To establish a secure connection between client and server

• To route packets between networks

Answer-------------->The traveler can start from any of the 8 cities (A, B, C, D, E, F, G, or H) to achieve the
goal, as the starting and ending points can differ, and the traveler can visit a city multiple times by
following the roads (edges) connecting the cities.

14. What is the use of /etc/hosts file in Linux?

What is the use of /etc/hosts file in Linux ?

Pick ONE option


It contains the list of all users.

It contains a list of all files in the system

It contains the time and date information.

It contains the FQDN to IP address


mappings.+++++++++++++++++++++++++++++++++++++++++++++++++++++

4. Why is a virtual memory address called 'virtual'?

Why is a virtual memory address called virtual?

Pick ONE option

• This memory address does not map to actual memory cell that corresponds to address
number.++++++++++++++++++++++++++

• This memory is the same as physical memory.

• This memory cannot be accessed by applications at fun time.

This memory address is always present even after a system is restarted.

29. I don't think we should hire him. He seems like

I don't think we should hire him. He seems like

Pick ONE option

A fish out of water&nbsp;

A wolf in sheep's clothing&nbsp;+++++++++++++++++++++++++++++++++++++++++++++++++

35. Interpret Charts

The following graph shows the number of people (in millions) using Hington and Euphore brand phones
in France from august to october 2012

in the market.

Number of customers (in millions) using each brand


• Hington • Euphore

47.21

48.91

49,27

46.18

47.34

40.32

Aug-12

Sep-12

Who, was the total numter of people using either of the to brand: in July 20122

Pick ONE apcion

0 91.21 milion

• 8.87 milion

O 98.23 milion

© None or these+++++++++++++++++++++++++++++++++++++++++++++++++++++++++=

13. Which of the following design criteria are not valid/suitable for Non-Relational Databases

Which of the following design criteria are not valid/suitable for Non-Relational Databases?

Pick ONE option

Your application required super-low latency

Your data are unstructured without any relation between them

) You only need to serialize & deserialize data (JSON, XML, YAML)

You need to store a very small amount of


data++++++++++++++++++++++++++++++++++++++++++++++++++++++

which clause restricts the group of rows returnded to those group for specified condition is true Pick
ONE option
Pick ONE option

Where clause

Having Clause+++++++++++++++++++++++++

Distinct

Exists

consider a database table "orders" with columns: order jd (Primary Key), customer M, wim Sat, mea

of the following SQL statements would correctly create a partitioned table based on the order sure co

range?

Consider a database table "orders" with columns: order _id (Primary Key), customer jd, order date, and
tota goue. se

partitioned table based on the order _date column, partitioned by range?

Pick ONE option

partition p2 values less than (2024-01-01') tablespace ts2):

create table orders partition by range columns (order _date) (partition p1 values less than (2023-01-017)
tatino 15)

create table orders partition by range (order _date) (partition p1 values less than (2023-01-01)
tablespace st, para

p2 values less than ('2024-01-01') tablespace ts2) primary key (order _id):

create table orders partition by range (order _date) (partition p1 valugs less than (2023-01-01)
tablespace ist, partion

p2 values less than ('2024-01-01') tablespace


ts2);+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

create table orders partition by range (order _date) (partition p1 values less than (2023-01-01)
tablespace 1s%, pantsen

p2 values less than ('2024-01-01') tablespace ts2) partition by range (order _id);

#include <iostream>
#define MAX(a, b) ((a) > (b) ? (a) : (b))

int main() {

int x = 5, y = 10;

std::cout << " " << MAX(x++, y++) << " " << x << " " << y << std::endl;

return 0;

}------------------------>>>>>>>>>>>>>>>>>>>>>>>>11 6 12
.......................................+++++++++++++++++++++++

18. In a ring topology network, If one device fails, how does it affect the networe!

In a ring topology network, if one device fails, how does it affect the networta

Pick ONE option

Only the failed device is affected

• All devices in the network are


affected++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

• Only the devices between which the failed device exists are affected

• The network continues to function normally

17. Which is the HTTP request method used to retrieve the metadata associated with the restory state ?

Which is the HTTP request method used to retrieve the metadata associated with the resourots suts?

Pick ONE option

GET

PUT

HEAD+++++++++++++++++++++++++++++++++++++++++++++++++++=

• POST
23. Paths in a Graph 2

There is a network of eight cities (represented by vertices) connected by roads. A traveler must drive on
each road segment once but can visit city multiple times ci

if neccessary furthermore, the starting and ending points do not have to match. New roads are
constructed between C and G, and between H and F if the journey begins at "X",where it will end ---------
-->>>>>>>>>>>>>>>>>>>>>>>>If you start at F or G (odd-degree vertices), the journey will end at
another odd-degree vertex: C, G, F, or H.

12. What does CAP theorem describe with respect to System Design?

What does CAP theorem describe with respect to

System Design ?

Pick ONE option

•The relationship between CPU and memory usage

• The trade-offs between consistency, availability, and partition


tolerance+++++++++++++++++++++++++++++++++++++=

) The process of data encryption

The principles of object-oriented programming

13. Truncate table is classified as:

Truncate table is classified as:

Pick ONE option

Data Definition Language

Data Manipulation
Language+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Data Control Language

Transaction Control Language


. A certain program must store the names of all the people who finish the City Marathon. The names are

entered by an official at the finish line as the competitors finish. After the race is over the program must

print a list only containing the names of competitors who placed 1 to 10 and then 100, 200, 300 and so
on

as these competitors will receive a special medallion. Which data structure would be the best choice to

this program? PiCK ONE option

A vector or resizable array++++++++++++++++++++++++++++++++++++++++++++++++

A map (implemented as a binary tree of key/value pairs)

A singly linked list

A hash set (implemented as a hash table of keys)

Pick ONE option

The Board of Directors will hold its next mingting in july.+++++++++++++++++++++++++++++++++=

The Board of Directors will hold it's next meeting in July.

The Board of Directors shall hold the next meeting in july.

The Board of Directors shall hold it's next meeting in july

2. #include <stdio.h>

using namespace std;

int main(){

char arr[] = "abcd";

char *p = arr;

printf("*c\t", ++*p) ;

printf("%c\t", *p++);

printf("%c\t", (*p) ++);

printf("%c\n", *p) ;

return 0;

}----------------------------------------------->>>>>>>>>>>>>>>>>>>> b b b c------------------------------------------------
------------
24. Find out which underlined part of the sentence below has an error and mark

I wasn't aware that you have lost your job

when you visited me last week.

Pick ONE option

I wasn't aware

Have lost your+++++++++++++++++++++++++++++++++++++++++++

When you visited me

None of the options

There is a building of 100 floors

-If an egg drops fron the Nth floor or above it will break

-It it's dropped fron any floor below, it will not be break

You're given 2 eggS.How many drops you need. to eake?----------------------------------------------------------------


------------------------------->14 h ans

There are 9 coins. Out of which one is odd one le weicht is less. How many coin required to find odd
coin-------------------------->>>>>>>>2 weighing coin

29. What is the remainder when 20001000 divided by 13?-----------------------------------------


>>>>>>>>>>>>>>>>>>>3

32. Day of Week Last Year 1


December 8, 2007 was a Saturday. What day of the week was December 8, 2006)-------------------------------
----->friday

A number sequence has 100 elements. Any of its elements (except for the first and last element) is equal
to the product of its neighbours. The product of the first 50 elements, just as the product of all the
elements is 27. What is the sum of the first and the second element?-------------------------------------------
>12

33. Reading Comprehension - The Role of Twitter in Politica

Read the passage and answer the questions that follow.

"Just putting up my twitr," the first tweet ever made by Twitter co-founder Jack Der

social communication and to compete with sites like Facebook and My Space.

Depending on who you ask, Twitter's enormous rise in accessibility to poltical processes n

denying that it has taken on a more significant role in the operations of such a vial aspel

According to the passage, Twitter coly allows for coly 140 characters per trot. What edge do y

more use of characters?

Pick ONE option

Correction can be easily made to tweets before uploading them.

it ensures that users cog share their thoughts in little time even when busy,

More people will get to consume information far more


quickly:+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

No other app can boast of having such a unique design.

4. Reading Comprehension - The Economic Impact of Covid-19 on

lead the passage and answer the questions that folow.

The Covid pandemic was first noted in Wuhan Wueti, Chiss, in the lutter part el 2019. Several caly indund
Wholesale Market. The following year, i spread around the world infecting mutions of peogle and touring

Pick ONE option

Some seal pups are taken off their mothers teats alter only tivo
weeks.++++++++++++++++++++++++++++++++++++++++++++++++++++

I'm trying to encourage people to eat fruits and vegetabies.

The medication helos dissuade patients from taking alcohol by simulating)

want to curtail my kids interest in T.V. and video games

There are 729 farmers in a state each having 6 animals each. The animals are either cows or hens.
Previous year, the state faced a flood and the probability of survival of a hen was 1/3 and that of cow is
2/3. Find the number of families having 2 hens and 4 cows.---------------------------------------------->240

21. What mechanism does TCP use to ensure the data sent from one host to another is received
correctly

and in order?

What mechanism does TCP use to ensure the data sent from one host to another is received correctly
and in order?

Pick ONE option

Tunneling

Handshaking

Sequence numbers and acknowledgements++++++++++++++++++++++++++

Packet sniffing

Consider the two functions incr and decr shown below.

incr(){

decr()(

wait(s); ANSWER=========VI = 10, V2 = 10.


wait(s);

X=X+1;

X=X-1;

Tignal(s);

signal(s);

There are 5 threads each invoking incr once, and 3 threads each invoking decr once, on the same shared
variable X. The initial value of sha

10

Suppose there are two implementations of the semaphore 5 as follows:

1-1: S is a binary semaphore initialized to 1.

1-2: S is a counting semaphore initialized to 2.

Let VI and V2 be the values of X at the end of execution of all the threads with implementations 1-1 and
12 respectively.

Which one of the following choices corresponds to the minimum possible values of VI and V2
respectively?

9. Which of the following is an example of Cloud Database service?

Which of the following is an example of Cloud Database service?

Pick ONE option

Oracle database service

AWS RDS

) Azure SQL Database

All of the above++++++++++++++

Consider the given below scenarios

1) A program accesses a page that is not currently in memory+++++++++++++++++++++++++++++

11) Error in the specific page


111) Reference to a page that belongs to another prosimi

Which of the scenario(s) will lead to a page fault?

----------------------->"Multiple instructions are chosen for simultaneous execution from one instruction
stream."

------------------------>"Multiple instructions are chosen for simultaneous execution from one instruction
stream."

6. In the context of Dynamic Programming, what is "memoization"?

In the context of Dynamic Programming, what is "memoization"?

Pick ONE option

Writing an algorithm in a memo to remember it

Recomputing solutions to subproblems multiple times for accuracy

Storing solutions to subproblems to avoid recomputation++++++++++++++++++++++

• Optimizing a problem by breaking it into subproblems and solving iteratively

10. What is the latest long-term release of Oracle Database?

What is the latest long-term release of Oracle Database?

Pick ONE option

23ai+++++++++++++++++++++++++

22ai

24ai

19ai

14. How will you distribute incoming traffic to a set of Web Servers?
How will you distribute incoming traffic to a set of Web Servers?

Pick ONE option

By deploying a Firewall before the servers

By deploying a router before the servers.

By deploying a load balancer before the servers.++++++++++++++++++++++++++

By deploying a switch before the servers.

17. Which HTTP method is suitable for resource creation?

Which HTTP method is suitable for resource creation?

Pick ONE option

PUT

PATCH

POST+++++++++++++++++++++++++++++++++++++++++++

CREATE

16. What is a Zombie process in Linux ?

What is a Zombie process in Linux?

Pick ONE option

A process which is running in the background.

A process which is running for a long time.

A process whose execution has completed but it still has an entry in the process
table.++++++++++++++++++++

A process which has crashed due to memory corruption.

19. Which URL Pattern should you follow for accessing a subresource attached to a specific resource?

Which URL Pattern should you follow for accessing a subresource attached to a specific resource?
Pick ONE option

/company/{companyid)/employees/(employeeld)++++++++++++++++++++++++++

/companies/employees/{companyld/{employeeld)

/companies/{companyld)/employee/{employeeldy

/companies/{companyid)/employees/{employeeld}

18. Which response status code category represents server error in REST paradigm?

Which response status code category represents server error in REST paradigm ?

Pick ONE option

1 xX

2xx

4XX

5xX+++++++++++++++++++++++++++++++++++++++++++++++

20. What does the acronym BGP stand for in networking, and what layer of the OSt model does it
operate at?

What does the acronym BGP stand for in networking, and what layer of the OSI model does it operate
at?

Pick ONE option

Best Gateway Protocol, Network layer++++++++++++++++++++++++++++++++++++++++

Border Gateway Protocol, Application layer

Border Gateway Protocol, Network layer

Backbone Gateway Protocol, Data Link layer

21. What mechanism does TCP use to ensure the data sent from one host to another is received
correctly and in order?
What mechanism does TCP use to ensure the data sent from one host to another is received correctly
and in order?

Pick ONE option

Tunneling

Handshaking

Sequence numbers and acknowledgements+++++++++++++++++++++++++++++++++++++++++

36. Pollution Chart

The graph shows the pollution index of 7 cities- A, B, C, D. E. F, and G from 2006 to 2010. If for each year
the cities are ranked in term of ascending order of pollution indices the city

stands firstl then how many cities do not change their ranking more than once from 2006 to 2008.

ANSWER------------------------>>>>>>>>>>>>>>>>>>>>>1 citiy(F)

26. A regular clock has an hour and minute hand. At 12 midnight the hands are exactly aligned. How
many times a day will they or

A regular clock has an hour and minute hand. At 12 midnight the hands are exactly aligned. How many
times a day will they overlap?

Pick ONE option

24

23

22++++++++++++++++++++++++++++++++++++++++++++++=

21

22. Improve the Sentence: My father is suffering from diabetes for the past three years.------------>HAS
BEEN
20. In what way the Symmetry Sparse Matrix can be stored efficiently?

In what way the Symmetry Sparse Matrix can be stored efficiently?

Pick ONE option

Heap

• Binary tree

Hash table

• Adjacency List ++++++++++++++++++++++++++++++++++++++++

21. Which of the following is false?

Which of the following is false?

Pick ONE option

2-3 tree requires less storage than the BST++++++++++++++++++++++++++++++++++

lookup in 2-3 tree is more efficient than in BST

• 2-3 tree is shallower than BST

• 2-3 tree is a balanced tree

22. Chef's Puzzle 1

Out of the nine ingredients, a chef wants to use exactly five. Given the following statements, how many
of the 5 ingredients are kno

The ingredients are apricots, bacon, cake, donuts, eggs, figs, grapes, hazelnuts, and ice cream.

1. If bacon is not used, then grapes, hazelnuts, and ice cream are not used.

2. If apricots are used then bacon and cake are used.

3. If donuts are not used, apricots are not used.


4. Apricots and eggs are used.

Pick ONE option

•2

• 5++++++++++++++++++++++++++++++++++++++

There is a network of eight cities (represented by vertices) connected by roads. A traveler must drive on
each road segment once bu

starting and ending points do not have to match. New roads are constructed between C and G, and
between H and F. If the journey

answer : After these additions, the vertices with odd degrees are BBB, CCC, DDD, and HHH (still four
vertices with odd degrees).

Conclusion:

Since there are more than two vertices with odd degrees, the graph does not have an Eulerian path or
circuit. Therefore, the journey to drive on each road segment exactly once is not possible, even after
constructing the new roads.

A cube is painted green on all surfaces and is cut into 1000 identical cubes. How many of the smaller
cubes have three faces painte

Pick ONE option

• 8++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

• 10.

• 100

• 64.

25. Favorite Color


There are five people: Jack, Matthew, Albert, Peter, and Sebastian.

Each plays one sport out of football, cricket, volleyball, badminton, and squash.

They are from South Korea, the UK, India, China, and Russia, though not necessarily in that order.

Their favorite colors are brown, green, red, black, and yellow, again not necessarily in that order.

The following information is known-

1. Jack's favorite color is red. He is not from India or China.

2. Albert plays football. His favorite color is not yellow, and he is not from the UK.

3. Peter and Sebastian have yellow and green as their favorite colors, not necessarily in that order.

4. Matthew plays badminton. He is from Russia.

5. Peter and Sebastian are from China and UK, not necessarily in that order.

6. Brown is the favorite color of the person from India.

7. Green is the favorite color of the person from China.

8. The person from South Korea plays squash an(§the person from the UK plays volleyball. One of them
has yellow as his favorite co

Whose favorite color is black?

Pick ONE option

Matthew++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

• Albert|

Peter

Cahactian.

There are five people - Peter, Tyson, Richard, Steve and Quinn - standing in a row. Given the following
statements, who is in the mid

1. Peter is next to Quinn and Steve is next to Richard.

2. Steve is not next to Tyson.

3. Tyson is on leftmost position.

4. Richard is on the second position from the right.

5. Peter stands somewhere to the right of both Quinn and Tyson.


6. Peter and Richard are next to each other.

----------->Steve is on the rightmost position.------------------->Richard is standing on the second position


from the left.----->midddle person is peter------>Steve is in the fifth position

28. In the following question, choose the correct option which can be substituted for the given sentence.
A self-governing country or

region Pick ONE option

Autonomy++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Autocracy

Anarchy

Ethnclogy

30. I've been studying for this exam for months, so I'm hoping to

„&nbsp:

Too boon studying far this exam far menchs, sa te hoping to

PIck ONE opcion

3 Hit the pound runing&ntsp:++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Have a fcid dayanbsp:

Be a dark horseßntsp:

) Have a lot on my plate&nbap:

Clear Scluction

31. Reading Comprehension - The Second Industrial Revolution in America V

Read tha passage and antwer me questiona that follows.

While the first industrial revolution, which spanned the years from roughly 1760 to about 1820-1840,
laid the groundwork, the second industrial revolution brought about changes
truly desired by both the masses and high-profile citizens. The second industrial revolution, as defined by
historians, took place between 1870 and 1914. At the time, there wes an

abrupt rise in urbanization and the development of acditional land. This created the need for
technological breakthroughs to make llving, simpler.

The steel industry boomed while iron became almost absolete. Stoel's lower cost and higher strength-to-
weight ratio made it simpier and more practical for building projects,

Industrial machinery, railroads, ships, and many other things. As a result, building bigger structures,
creating more mechanical commodities, and traveling and transporting goods

Tarther distances became common..

The development of electricity into wide use was even more significant. Before the arrival of public
electricity, candles and gas lamps were used to light houses and factories. Electric

lighting altered how people worked and lived, as working hours were no longer restricted to daytime.
Beyond a source of illumination, public electricity spawned numerous other

eline the as Fee 87 eithe gene out ne an a report of a adi are burst in ested see yes it could

attempts by numerous Inventors.

The first electric railroad debuted in Berlin, Germany, in 1879. Likewise, electric streetcars began to
replace horse drawn carriages in major European cities as early as 1880.

The crown of the second industrial revolution was the internal combustion engine. It was first presented
in 1878. The gas and the air-driven vehicle were unsuitable for the general

public due to safety issues. With the advent of more stable liquid fuels such as petroleum, initial
problems were quickly overcorne.

Automobiles and airplanes were developed as a result of this engine. None of the following innovations
would have been conceivable without it, implying that the modern means of

transportation would be only a dream.

The German Inventor Karl Benz Leade the first self-propelled car in 1806. It was made avallable to the
public in 1888, In the same year, Gottleb Daimler developed a lighter-weight

engine, and in 1896, Henry Ford fully commercialized the use of automoblies.

Years later, the Wright brothers invented the first practical aircraft, overcoming the difficult technical
issues that had impeded mechanical flight for centuries. Before their

invention, steerable or dirigible hydrogen-powered balloons were the only method of air travel available
to man.

Since then, the world has experienced several industrial revolutions that have paved the way for the
development of electronics, telecommunications, and computers and opened
the door for space exploration, research, and biocechnology. Still, the second revolution is still
remembered as the era of iconic inventions that spawned technology use today.

The word "spawned" in the passage is farthest in meaning from Pik ONE options

• fostered

© begal

• generates

O squelched++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

32. Reading Comprehension - The End of the French Monarchy V

Read the passago and anteer the questions thac folloes

As the 18th century came to a close, France and Britain were in e dravn out war to edvance their
empires. Due mainly to the cost of war, France wes on the verge of bankruptcy.

Meanwhile, French King Louis XVI and his queen, Mary Antoinette, lived an extravagent lifestyle.

Despite the fact that he ruled France during the height of the Enlightenment Era, Louis XVI was unable to
establish himself as an enlightened absolutist. His efforts to allow citizens

more opportunities along with some proposed societal ideals led to increased bureaucracies and even
more expenditures. The royal treasury was almost empry, necessitating

additional taxes.

At the same time, there were years of poor harvests due to drought. Spiking bread prices led to unrest
among the non-aristocrat classes. This, coupled with increased taxes, caused

resentment among the lover classes. Even some in the noble classes became disenchanted with the
monarchy as their own access to a lavish lifestyle was curtailed.

As the war continued, citizens became agitated and begon to speek out against the weakened monarchy.
The excesses of the monarchy showed citizens that any spoils of war were

not likely to be shared with them. Quickly, their unrest changed from passive to active, and common
people began plans to depose the monarchy.

The nation was overtaken by a wave of mass panic and revolutionary passion. Peasants rebbed and set
fire to the homes of tax collectors, landlords, and members of the aristocratic

class. Out of concern for his family's safety and disgust with the ongoing revolution in the country, in
june 1792, the king fied Parts for the Austrian frontier. During the journey, he

was recognized, captured, and returned to Paris. An irdue public demanded his imprisonment in August
1792, and the monarchy was overthrown in September.
Soon after, evidence of the king's counter revolutionary plots with other countries wes discovered, and
he was charged with treason. He was found guilty in jenuary 1793, and given

the death penalty. He stubbornly approached the guillotine on january 21 and was put to death. Nine
months later, queen Marie Antoinette was executed for the same reason.

Ultimately, the monarchy's end resulted from the royals penchant for abusing power. Decades of waste
and obscene indulgences ended in a brutal, extreme manner by a people no

longer willing to be yoked. Perhaps the monarchy would still exist if they had paid more attention to the
concerns of the populace.

According to the passage, which of the following statements is incorrect? ©

Al the noties were hapoy with the way King Louls XVI governed the
country.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

• The underdass plundered and pillaged the nom$for nobles during, the height of the unrest.

C King Louis XVI's wife, queen Mary Antoinette, was also canvicled of reason.

Part of the reason behind the increase in ta was to tund the wear with Britain.

34.postfix expression for the corresponding infix expression? a+b*c+(d*e)

answer--->a b c *+ d e * +

4.in a company, 100 employees are randomly selected. 50 like watching football 40 like watching hockey
and the rest like both. Find out the number of employees wino like to watch at least one game-----
>80+++++++++++++++++++++++++++++++++++++++++++++++++++++++

16. What does idempotency mean in REST API design?

What does idempotency mean in REST API design?

Pick ONE option

• The ability of an API to handle multiple requests in parallel®

• The property that a method can be called multiple times without different
outcomes+++++++++++++++++++++++++++++++++++++++++++++++

• The capability of an API to update data


• The feature of an API that allows it to delete resources

7. Consider the below java method. What's the output of this method? public static void function 1(int I
data, int low, int high) <

if (low < high) {int temp = data[lbw]: data[low] = data[high): data[high] = temp; function_1(data, low +1,
high -1%. VY

Consider the below java method. What's the output of this method?

public static void function_1(int [] data, int low, int high) €

if (low < high) t

int temp = data[low];

data[low] = data(high];

data(high] = temp;

function_1(data, low +1, high -1); Pick ONE option

The sum of all the elements of the array

The product of all the elements in the array.

The last element of the array.-------------------------------------->NOne Of the method is correct

(((((The correct answer is that the method reverses the elements of the array between the indices low
and high. However, since none of the provided options directly describe this behavior, the closest
interpretation is:)))))))

Read the passage and answer the questions that follow.

While the first industrial revolution, which spanned the years from roughly 1760 to about 1820-1840,
laid the groundwork, the second industrial rev

changes truly desired by both the masses and high-profile citizens. The second industrial revolution, as
defined by historians, took place between 1870 and 1914, At tha

time, there was an abrupt rise in urbanization and the development of additional land. This created the
need for technological brea

nớis to mute Wring simpler

nore practical far wunding


transporting goods farther distances became common.

adities, and traveling and

The development of electricity into wide use was even more significant. Before the arrival of public
electricity, candles and gas lamps were used to light houses and

factories. Electric lighting altered how people worked and lived, as working hours were no longer
restricted to daytime. Beyond a source of illumination, public electricity

spawned numerous other inventions. Alexander Graham Bell invented the telephone in 1876. This
inspired Guglielmo Marconi to Invent the practical radio wave-based

wireless telegraph system that could send signals over the Atlantic Ocean in 1901. Thomas Edison
perfected the light bulb in 1879, which was reported to last 13 and a ha

hours in the wake of several unsatisfactory attempts by numerous inventors.

The first electric railroad debuted in Berlin, Germany, in 1879. Likewise, electric streetcars began to
replace horse-drawn carriages in major European cities as early as

1880.

The crown of the second industrial revolution was the internal combustion engine. It was first presented
in 1878. The gas and the air driven vehicle were unsuitable !

general public due to safety issues. With the advent of more stable liquid fuels such as petroleum, initial
problems were quickly overcome.

Automobiles and airplanes were developed as a result of this engine. None of the following innovations
would have been conceivable without it, implying that the 1

means of transportation would be only a dream.

The German inventor Karl Benz made the first self-propelled car in 1886. It was made available to the
public in 1888. In the same year, Gottlieb Daimier developed

weight engine, and in 1896, Henry Ford fully commercialized the use of automobiles.

Years later, the Wright brothers invented the first practical aircraft, overcoming the difficult technical
issues that had impeded mechanical flight for centuries. !

Invention, steerable or dirigible hydrogen-powered balloons were the only method of air travel available
to man.

Since then, the world has experienced several industrial revolutions that have paved the way for the
development of electronics, telecommunications, and cor

opened the door for space exploration, research, and biotechnology. Still, the second revolution is still
remembered as the era of iconic inventions that spawn

technology use today.


The word "spawned" in the passage is farthest in meaning from

chatgpt------>In the passage, the word "spawned" means to cause or bring about something. It implies
that the use of public electricity led to the creation of new inventions.

The word "spawned" is farthest in meaning from:"Prevented" (which means to stop something from
happening)In context, "spawned" means to generate or produce, which is quite different from
"prevented.

gemini------->The word "spawned" in the passage is farthest in meaning from suppressed.Spawned:


means to produce or generate something, especially in large numbers or over a short
period.Suppressed: means to put down or stop something by force.Therefore, "suppressed" is the
opposite of "spawned" and is the farthest in meaning from it.

chegg----->The word "spawned" in the passage is farthest in meaning from "destroyed."

answr------------------------------------>The traveler can start from any city withan even degree in the graph.
The specificcities depend on the graph'sconfiguration, which is not provided.

19. What is the purpose of ARP (Address Resolution Protocol) in computer networing

What is the purpose of ARP (Address Resolution Protocol) in computer networking

Pick ONE option

• To convert IP addresses to MAC addresses+++++++++++++++++++++++++++

To convert domain names to IP addresses

) To establish a secure connection between client and server

• To route packets between networks

Answer-------------->The traveler can start from any of the 8 cities (A, B, C, D, E, F, G, or H) to achieve the
goal, as the starting and ending points can differ, and the traveler can visit a city multiple times by
following the roads (edges) connecting the cities.
14. What is the use of /etc/hosts file in Linux?

What is the use of /etc/hosts file in Linux ?

Pick ONE option

It contains the list of all users.

It contains a list of all files in the system

It contains the time and date information.

It contains the FQDN to IP address


mappings.+++++++++++++++++++++++++++++++++++++++++++++++++++++

4. Why is a virtual memory address called 'virtual'?

Why is a virtual memory address called virtual?

Pick ONE option

• This memory address does not map to actual memory cell that corresponds to address
number.++++++++++++++++++++++++++

• This memory is the same as physical memory.

• This memory cannot be accessed by applications at fun time.

This memory address is always present even after a system is restarted.

29. I don't think we should hire him. He seems like

I don't think we should hire him. He seems like

Pick ONE option

A fish out of water&nbsp;

A wolf in sheep's clothing&nbsp;+++++++++++++++++++++++++++++++++++++++++++++++++


35. Interpret Charts

The following graph shows the number of people (in millions) using Hington and Euphore brand phones
in France from august to october 2012

in the market.

Number of customers (in millions) using each brand

• Hington • Euphore

47.21

48.91

49,27

46.18

47.34

40.32

Aug-12

Sep-12

Who, was the total numter of people using either of the to brand: in July 20122

Pick ONE apcion

0 91.21 milion

• 8.87 milion

O 98.23 milion

© None or these+++++++++++++++++++++++++++++++++++++++++++++++++++++++++=

13. Which of the following design criteria are not valid/suitable for Non-Relational Databases

Which of the following design criteria are not valid/suitable for Non-Relational Databases?

Pick ONE option

Your application required super-low latency

Your data are unstructured without any relation between them

) You only need to serialize & deserialize data (JSON, XML, YAML)
You need to store a very small amount of
data++++++++++++++++++++++++++++++++++++++++++++++++++++++

which clause restricts the group of rows returnded to those group for specified condition is true Pick
ONE option

Pick ONE option

Where clause

Having Clause+++++++++++++++++++++++++

Distinct

Exists

consider a database table "orders" with columns: order jd (Primary Key), customer M, wim Sat, mea

of the following SQL statements would correctly create a partitioned table based on the order sure co

range?

Consider a database table "orders" with columns: order _id (Primary Key), customer jd, order date, and
tota goue. se

partitioned table based on the order _date column, partitioned by range?

Pick ONE option

partition p2 values less than (2024-01-01') tablespace ts2):

create table orders partition by range columns (order _date) (partition p1 values less than (2023-01-017)
tatino 15)

create table orders partition by range (order _date) (partition p1 values less than (2023-01-01)
tablespace st, para

p2 values less than ('2024-01-01') tablespace ts2) primary key (order _id):

create table orders partition by range (order _date) (partition p1 valugs less than (2023-01-01)
tablespace ist, partion

p2 values less than ('2024-01-01') tablespace


ts2);+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

create table orders partition by range (order _date) (partition p1 values less than (2023-01-01)
tablespace 1s%, pantsen
p2 values less than ('2024-01-01') tablespace ts2) partition by range (order _id);

#include <iostream>

#define MAX(a, b) ((a) > (b) ? (a) : (b))

int main() {

int x = 5, y = 10;

std::cout << " " << MAX(x++, y++) << " " << x << " " << y << std::endl;

return 0;

}------------------------>>>>>>>>>>>>>>>>>>>>>>>>11 6 12
.......................................+++++++++++++++++++++++

18. In a ring topology network, If one device fails, how does it affect the networe!

In a ring topology network, if one device fails, how does it affect the networta

Pick ONE option

Only the failed device is affected

• All devices in the network are


affected++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

• Only the devices between which the failed device exists are affected

• The network continues to function normally

17. Which is the HTTP request method used to retrieve the metadata associated with the restory state ?

Which is the HTTP request method used to retrieve the metadata associated with the resourots suts?

Pick ONE option

GET
PUT

HEAD+++++++++++++++++++++++++++++++++++++++++++++++++++=

• POST

23. Paths in a Graph 2

There is a network of eight cities (represented by vertices) connected by roads. A traveler must drive on
each road segment once but can visit city multiple times ci

if neccessary furthermore, the starting and ending points do not have to match. New roads are
constructed between C and G, and between H and F if the journey begins at "X",where it will end ---------
-->>>>>>>>>>>>>>>>>>>>>>>>If you start at F or G (odd-degree vertices), the journey will end at
another odd-degree vertex: C, G, F, or H.

12. What does CAP theorem describe with respect to System Design?

What does CAP theorem describe with respect to

System Design ?

Pick ONE option

•The relationship between CPU and memory usage

• The trade-offs between consistency, availability, and partition


tolerance+++++++++++++++++++++++++++++++++++++=

) The process of data encryption

The principles of object-oriented programming

13. Truncate table is classified as:

Truncate table is classified as:

Pick ONE option

Data Definition Language


Data Manipulation
Language+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Data Control Language

Transaction Control Language

. A certain program must store the names of all the people who finish the City Marathon. The names are

entered by an official at the finish line as the competitors finish. After the race is over the program must

print a list only containing the names of competitors who placed 1 to 10 and then 100, 200, 300 and so
on

as these competitors will receive a special medallion. Which data structure would be the best choice to

this program? PiCK ONE option

A vector or resizable array++++++++++++++++++++++++++++++++++++++++++++++++

A map (implemented as a binary tree of key/value pairs)

A singly linked list

A hash set (implemented as a hash table of keys)

You might also like