Question stringlengths 39 1.33k | Tag stringlengths 3 46 | label int64 0 206 |
|---|---|---|
Consider the relations r1 P Q R and r2 R S T with primary keys P and R respectively The relation r1 contains 2000 tuples and r2 contains 2500 tuples The maximum size of the join r1 u22c8 r2 is 2000 2500 4500 5000 | Joins | 88 |
Consider the following relation schemas b Schema b name b city assets a Schema a num b name bal d Schema c name a number Let branch account and depositor be respectively instances of the above schemas Assume that account and depositor relations are much bigger than the branch relation Consider the following query u041f... | Joins | 88 |
Consider the following relation schema pertaining to a students database Students rollno name address Enroll rollno courseno coursename where the primary keys are shown underlined The number of tuples in the student and Enroll tables are 120 and 8 respectively What are the maximum and minimum number of tuples that can ... | Joins | 88 |
Consider a join relation algebra between relations r R and s S using the nested loop method There are 3 buffers each of size equal to disk block size out of which one buffer is reserved for intermediate results Assuming size r R lt size s S the join will have fewer number of disk block accesses if relation r R is in th... | Joins | 88 |
A database table T_1 has 2000 records and occupies 80 disk blocks Another table T_2 has 400 records and occupies 20 disk blocks These two tables have to be joined as per a specified join condition that needs to be evaluated for every pair of records from these two tables The memory buffer space available can hold exact... | Joins | 88 |
A database table T_1 has 2000 records and occupies 80 disk blocks Another table T_2 has 400 records and occupies 20 disk blocks These two tables have to be joined as per a specified join condition that needs to be evaluated for every pair of records from these two tables The memory buffer space available can hold exact... | Joins | 88 |
Consider the following relations A B and C A Id Name Age 12 Arun 60 15 Shreya 24 99 Rohit 11 B Id Name Age 15 Shreya 24 25 Hari 40 98 Rohit 20 99 Rohit 11 C Id Phone Area 10 2200 02 99 2100 01 How many tuples does the result of the following relational algebra expression contain Assume that the schema of A cup B ... | Joins | 88 |
Which functions does NOT implement the Karnaugh map given below w x y xy yw w x bar w y bar x y None of the above | K Map | 89 |
What is the minimal form of the Karnaugh map shown below Assume that X denotes a don u2019t care term A bar b bar d B bar b bar d bar b bar c C bar b bar d a bar b bar c d D bar b bar d bar b bar c bar c bar d | K Map | 89 |
What is the equivalent Boolean expression in product of sums form for the Karnaugh map given in Fig B overline D overline B D B overline C D overline B C overline D B D overline B overline D B overline D overline B D | K Map | 89 |
The literal count of a Boolean expression is the sum of the number of times each literal appears in the expression For example the literal count of left xy xz right is 4 What are the minimum possible literal counts of the product of sum and sum of product representations respectively of the function given by the follow... | K Map | 89 |
The function represented by the Karnaugh map is given below is A B AB BC CA overline B oplus C A BC | K Map | 89 |
The Boolean function in sum of products form where K map is given below figure is _______ | K Map | 89 |
The boolean function for a combinational circuit with four inputs is represented by the following Karnaugh map Which of the product terms given below is an essential prime implicant of the function QRS PQS PQ S Q S | K Map | 89 |
Minimum sum of product expression for f w x y z shown in Karnaugh map below xz y z xz zx x y zx None of the above | K Map | 89 |
In the Karnaugh map shown below X denotes a don u2019t care term What is the minimal form of the function represented by the Karnaugh map bar b bar d bar a bar d bar a bar b bar b bar d bar a b bar d bar b bar d bar a b bar d bar a bar b bar b bar d bar a bar d | K Map | 89 |
Given the following karnaugh map which one of the following represents the minimal Sum Of Products of the map XY Y Z WX Y XY XZ W X Y Z XY XZ Y | K Map | 89 |
Consider the Karnaugh map given below where X represents don t care and blank represents 0 Assume for all inputs left a b c d right the respective complements left bar a bar b bar c bar d right are also available The above logic is implemented using 2 input NOR gates only The minimum number of gates required is _____... | K Map | 89 |
Consider the following expression a bar d bar a bar c b bar cd Which of the following Karnaugh Maps correctly represents the expression c d c d cd cd a b X X a b X X ab X X X ab X X c d c d cd cd a b X X a b X ab X X X ab X X X c d c d cd cd a b X X a b X X X ab X X X ab X X c d c d cd cd a b X ... | K Map | 89 |
Consider the following expression a bar d bar a bar c b bar cd Which of the following expressions does not correspond to the Karnaugh Map obtained for the given expression bar c bar d a bar d ab bar c bar a bar cd bar a bar c bar c bar d a bar d ab bar cd bar a bar c a bar d ab bar c bar cd bar b bar c bar d ac bar d b... | K Map | 89 |
A Boolean function f is to be realized only by NOR gates Its K map is given below The realization is | K Map | 89 |
The following is the Hasse diagram of the poset a b c d e u227a The poset is not a lattice a lattice but not a distributive lattice a distributive lattice but not a Boolean algebra a Boolean algebra | Lattice | 90 |
In the lattice defined by the Hasse diagram given in following figure how many complements does the element u2018e u2019 have 2 3 0 1 | Lattice | 90 |
Consider the set X a b c d e under partial ordering R a a a b a c a d a e b b b c b e c c c e d d d e e e The Hasse diagram of the partial order X R is shown below The minimum number of ordered pairs that need to be added to R to make X R a lattice is ______ | Lattice | 90 |
Consider the following Hasse diagrams Which all of the above represent a lattice i and iv only ii and iii only iii only i ii and iv only | Lattice | 90 |
Suppose L left p q r s t right is a lattice represented by the following Hasse diagram For any x y isin L not necessarily distinct x or y and x and y are join and meet of x y respectively Let L 3 left left x y z right x y z isin L right be the set of all ordered triplets of the elements of L Let p_ r be the proba... | Lattice | 90 |
S 1 2 2 1 is binary relation on set A 1 2 3 Is it irreflexive Add the minimum number of ordered pairs to S to make it an equivalence relation Give the modified S Let S a b and let square S be the powerset of S Consider the binary relation subseteq set inclusion on square S Draw the Hasse diagram corresponding to the l... | Lattice | 90 |
Let wedge vee denote the meet and join operations of lattice A lattice is called distributive if for all x y z x wedge left y vee z right left x wedge y right vee left x wedge z right It is called complete if meet and join exist for every subset It is called modular if for all x y z z leq x Rightarrow x wedge left y... | Lattice | 90 |
What is the value of lim_ n o infty left 1 frac 1 n right 2n 0 e 2 e 1 2 1 | Limits | 91 |
The value of lim_ x rightarrow infty 1 x 2 e x is u00a0 0 frac 1 2 1 infty | Limits | 91 |
The value of lim_ x rightarrow 1 frac x 7 2x 5 1 x 3 3x 2 2 is 0 is 1 is 1 does not exist | Limits | 91 |
lim_ x rightarrow infty x frac 1 x is infty 0 1 Not defined | Limits | 91 |
lim_ x o infty frac x sin x x cos x equals 1 1 infty infty | Limits | 91 |
lim _ x rightarrow 4 frac sin x 4 x 4 ____ | Limits | 91 |
The line graph L G of a simple graph G is defined as follows There is exactly one vertex v e in L G for each edge e in G For any two edges e and e in G L G has an edge between v e and v e if and only if e and e are incident with the same vertex in G Which of the following statements is are TRUE P The line graph of a cy... | Line Graph | 92 |
The following C function takes a singly linked list of integers as a parameter and rearranges the elements of the list The list is represented as pointer to a structure The function is called with the list containing the integers 1 2 3 4 5 6 7 in the given order What will be the contents of the list after the function ... | Linked Lists | 93 |
The following C function takes a singly 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 ypedef struct node int value struct node next node Node move_to front Node head Node p q if head NULL head gt n... | Linked Lists | 93 |
The following C function takes a single linked list of integers as a parameter and rearranges the elements of the list The function is called with the list containing the integers 1 2 3 4 5 6 7 in the given order What will be the contents of the list after function completes execution struct node int value struct node ... | Linked Lists | 93 |
The concatenation of two lists is to be performed on O 1 time Which of the following implementations of a list should be used Singly linked list Doubly linked list Circular doubly linked list Array implementation of list | Linked Lists | 93 |
Suppose each set is represented as a linked list with elements in arbitrary order Which of the operations among ext union intersection membership cardinality will be the slowest ext union only ext intersection membership ext membership cardinality ext union intersection | Linked Lists | 93 |
Linked lists are not suitable data structures for which one of the following problems Insertion sort Binary search Radix sort Polynomial manipulation | Linked Lists | 93 |
Let P be a singly linked list Let Q be the pointer to an intermediate node x in the list What is the worst case time complexity of the best known algorithm to delete the node x from the list O n O log 2 n O log n O 1 | Linked Lists | 93 |
In the worst case the number of comparisons needed to search a single linked list of length n for a given element is log n frac n 2 log_2 n 1 n | Linked Lists | 93 |
In a circular linked list oraganisation insertion of a record involves modification of One pointer Two pointers Multiple pointers No pointer | Linked Lists | 93 |
Consider the function f defined below struct item int data struct item next int f struct item p return p NULL p gt next NULL p gt data lt p gt next gt data amp amp f p gt next For a given linked list p the function f returns 1 if and only if the list is empty or has exactly one element the elements in the list are sort... | Linked Lists | 93 |
Consider the following piece of C code fragment that removes duplicates from an ordered list of integers Node remove duplicates Node head int j Node t1 t2 j 0 t1 head if t1 NULL t2 t1 gt next else return head j 1 if t2 NULL return head while t2 NULL if t1 val t2 val gt S1 j t1 gt next t2 t1 t2 gt S2 t2 t2 gt next t1 g... | Linked Lists | 93 |
A circularly linked list is used to represent a Queue A single variable p is used to access the Queue To which node should p point such that both the operations ext enQueue and ext deQueue can be performed in constant time rear node front node not possible with a single pointer node next to front | Linked Lists | 93 |
Let p be a pointer as shown in the figure in a single linked list What do the following assignment statements achieve q p gt next p gt next q gt next q gt next q gt next gt next p gt next gt next q | Linked Lists | 93 |
The Boolean function obtained by adding an inverter to each and every input of an AND gate is OR XOR NAND NOR None of the above | Logic Gates | 94 |
Consider the following circuit composed of XOR gates and non inverting buffers The non inverting buffers have delays delta_1 2 ns and delta_2 4 ns as shown in the figure Both XOR gates and all wires have zero delay Assume that all gate inputs outputs and wires are stable at logic level 0 at time 0 If the following wave... | Logic Gates | 94 |
Choose the correct alternatives more than one may be correct and write the corresponding letters only All digital circuits can be realized using only Ex OR gates Multiplexers Half adders OR gates | Logic Gates | 94 |
Express the function f x y z xy yz with only one complement operation and one or more AND OR operations Draw the logic circuit implementing the expression obtained using a single NOT gate and one or more AND OR gates Transform the following logic circuit without expressing its switching function into an equivalent lo... | Logic Gates | 94 |
Three candidates Amar Birendra and Chanchal stand for the local election Opinion polls are conducted and show that fraction a of the voters prefer Amar to Birendra fraction b prefer Birendra to Chanchal and fraction c prefer Chanchal to Amar Which of the following is impossible a b c 0 51 0 51 0 51 a b c 0 61 0 71 0 67... | Logical Reasoning | 95 |
There are three boxes One contains apples another contains oranges and the last one contains both apples and oranges All three are known to be incorrectly labeled If you are permitted to open just one box and then pull out and inspect only one fruit which box would you open to determine the contents of all three boxes ... | Logical Reasoning | 95 |
There are eight bags of rice looking alike seven of which have equal weight and one is slightly heavier The weighing balance is of unlimited capacity Using this balance the minimum number of weighings required to identify the heavier bag is A 2 B 3 C 4 D 8 | Logical Reasoning | 95 |
The action for this problem takes place in an island of Knights and Knaves where Knights always make true statements and Knaves always make false statements and everybody is either a Knight or a Knave Two friends A and B lives in a house The census taker an outsider knocks on the door and it is opened by A The census t... | Logical Reasoning | 95 |
Six people are seated around a circular table There are at least two men and two women There are at least three right handed persons Every woman has a left handed person to her immediate right None of the women are right handed The number of women at the table is 2 3 4 Cannot be determined | Logical Reasoning | 95 |
Rahul Murali Srinivas and Arul are seated around a square table Rahul is sitting to the left of Murali Srinivas is sitting to the right of Arul Which of the following pairs are seated opposite each other Rahul and Murali Srinivas and Arul u200b u200b u200b u200b u200b u200b u200bSrinvas and Murali u200b u200b u200b u20... | Logical Reasoning | 95 |
Long ago in a planet far far away there lived three races of intelligent inhabitants the blues who always tell the truth the whites who always lie and the pinks who when asked a series of questions start with a lie and then tell the truth and lie alternately To three creatures chosen from the planet and seated facing e... | Logical Reasoning | 95 |
In a room there are only two types of people namely Type 1 and Type 2 Type 1 people always tell the truth and Type 2 people always lie You give a fair coin to a person in that room without knowing which type he is from and tell him to toss it and hide the result from you till you ask for it Upon asking the person repli... | Logical Reasoning | 95 |
If either wages or prices are raised there will be inflation If there is inflation then either the government must regulate it or the people will suffer If the people suffer the government will be unpopular Government will not be unpopular Which of the following can be validly concluded from the above statements Peo... | Logical Reasoning | 95 |
Consider the following two statements S1 If a candidate is known to be corrupt then he will not be elected S2 If a candidate is kind he will be elected Which one of the following statements follows from S1 and S2 as per sound inference rules of logic If a person is known to be corrupt he is kind If a person is not kno... | Logical Reasoning | 95 |
Consider the following logical inferences I_ 1 If it rains then the cricket match will not be played The cricket match was played Inference There was no rain I_ 2 If it rains then the cricket match will not be played It did not rain Inference The cricket match was played Which of the following is TRUE A Bot... | Logical Reasoning | 95 |
All that glitters is gold No gold is silver Claims 1 No silver glitters 2 Some gold glitters Then which of the following is TRUE Only claim 1 follows Only claim 2 follows Either claim 1 or claim 2 follows but not both Neither claim 1 nor claim 2 follows Both claim 1 and claim 2 follow | Logical Reasoning | 95 |
If relftaga means carefree otaga means careful and fertaga means careless which of the following could mean aftercare zentaga tagafer tagazen relffer | Logical Reasoning | 95 |
Consider the following two statements There are infinitely many interesting whole numbers There are finitely many uninteresting whole numbers Which of the following is true Statements 1 and 2 are equivalent Statement 1 implies statement 2 Statement 2 implies statement 1 None of the above | Logical Reasoning | 95 |
Consider the following statements relating to the level of poker play of four players P Q R and S P always beats Q R always beats S S loses to P only sometimes R always loses to Q Which of the following can be logically inferred from the above statements P is likely to beat all the three other players S is the absolu... | Logical Reasoning | 95 |
The following function computes X Y for positive integers X and Y int exp int X int Y int res 1 a X b Y while b 0 if b 2 0 a a a b b 2 else res res a b b 1 return res Which one of the following conditions is TRUE before every iteration of the loop X Y a b res a Y res X b X Y res a b X Y res a b | Loop Invariants | 96 |
Consider the program where a b are integers with b gt 0 x a y b z 0 while y gt 0 do if odd x then z z x y y 1 else y y 2 x 2 x fi Invariant of the loop is a condition which is true before and after every iteration of the loop In the above program the loop invariant is given by 0 leq y and z x y a b Which of the ... | Loop Invariants | 96 |
Consider the following pseudo code where x and y are positive integers begin q 0 r x while r u2265 y do begin r r y q q 1 end end The post condition that needs to be satisfied after the program terminates is r qx y wedge r lt y x qy r wedge r lt y y qx r wedge 0 lt r lt y q 1 lt r y wedge y gt 0 | Loop Invariants | 96 |
Consider the following program fragment for reversing the digits in a given integer to obtain a new integer Let n d_1 d_2 ldots d_m int n rev rev 0 while n gt 0 rev rev 10 n 10 n n 10 The loop invariant condition at the end of the i th iteration is n d_1 d_2 ldots d_ m i qquad mathbf and qquad ext rev d_m d_ m 1 ldots ... | Loop Invariants | 96 |
Consider the following program for summing the entries of the array b array 0 N 1 of integers where N is a positive integer The symbol lt gt denotes not equal to var i s integer Program i 0 s 0 while i lt gt N do s s b i i i 1 od Which of the following gives the invariant that holds at the beginning of each loop that i... | Loop Invariants | 96 |
Consider the C program fragment below which is meant to divide x by y using repeated subtractions The variables x y q and r are all unsigned int while r gt y r r y q q 1 Which of the following conditions on the variables x y q and r before the execution of the fragment will ensure that the loop terminated in a state sa... | Loop Invariants | 96 |
Consider the following PASCAL program segment if i mod 2 0 then while i gt 0 do begin i i div 2 if i mod 2 lt gt 0 then i i 1 else i i ndash 2 end An appropriate loop invariant for the while loop is ________ | Loop Invariants | 96 |
The number of different n imes n symmetric matrices with each element being either 0 or 1 is Note ext power left 2 X right is same as 2 X ext power left 2 n right ext power left 2 n 2 right ext power left 2 frac left n 2 n right 2 right ext power left 2 frac left n 2 n right 2 right | Matrices | 97 |
The matrices begin bmatrix cos heta amp amp sin heta sin heta amp amp cos heta end bmatrix and begin bmatrix a amp amp 0 0 amp amp b end bmatrix commute under multiplication if a b ext or heta n pi n an integer always never if a cos heta b sin heta | Matrices | 97 |
Let A be an n u00d7 n matrix of the following form What is the value of the determinant of A left frac 5 sqrt3 2 right n 1 left frac 5 sqrt3 7 2 sqrt 3 right left frac 5 sqrt3 2 right n 1 left frac 5 sqrt3 7 2 sqrt 3 right left frac 7 sqrt5 2 right n 1 left frac 7 sqrt5 3 2 sqrt 5 right left frac 7 sqrt5 2 right n 1 le... | Matrices | 97 |
Let A B C D be n imes n matrices each with non zero determinant If ABCD I then B 1 is D 1 C 1 A 1 CDA ADC Does not necessarily exist | Matrices | 97 |
Let A and B be real symmetric matrices of size n imes n Then which one of the following is true AA I A A 1 AB BA AB BA | Matrices | 97 |
Let a a_ ij be an n rowed square matrix and I_ 12 be the matrix obtained by interchanging the first and second rows of the n rowed Identify matrix Then AI_ 12 is such that its first row is the same as its second row row is the same as the second row of A column is the same as the second column of A row is all zero | Matrices | 97 |
In an M imes N matrix all non zero entries are covered in a rows and b columns Then the maximum number of non zero entries such that no two are on the same row or column is leq a b leq max a b leq min M a N b leq min a b | Matrices | 97 |
If A begin pmatrix 1 amp 0 amp 0 amp 1 0 amp 1 amp 0 amp 1 0 amp 0 amp i amp i 0 amp 0 amp 0 amp i end pmatrix the matrix A 4 calculated by the use of Cayley Hamilton theorem or otherwise is ____ | Matrices | 97 |
Find the inverse of the matrix begin bmatrix 1 amp 0 amp 1 1 amp 1 amp 1 0 amp 1 amp 0 end bmatrix | Matrices | 97 |
Consider the following statements S1 The sum of two singular n imes n matrices may be non singular S2 The sum of two n imes n non singular matrices may be singular Which one of the following statements is correct S1 and S2 both are true S1 is true S2 is false S1 is false S2 is true S1 and S2 both are false | Matrices | 97 |
A square matrix is singular whenever The rows are linearly independent The columns are linearly independent The row are linearly dependent None of the above | Matrices | 97 |
The rank of the matrix given below is begin bmatrix 1 amp 4 amp 8 amp 7 0 amp 0 amp 3 amp 0 4 amp 2 amp 3 amp 1 3 amp 12 amp 24 amp 2 end bmatrix 3 1 2 4 | Matrices | 97 |
The rank of the following n 1 imes n 1 matrix where a is a real number is begin bmatrix 1 amp a amp a 2 amp dots amp a n 1 amp a amp a 2 amp dots amp a n vdots amp vdots amp vdots amp amp vdots vdots amp vdots amp vdots amp amp vdots 1 amp a amp a 2 amp dots amp a n end bmatrix 1 2 n Depends on the value of a | Matrices | 97 |
The rank of matrix begin bmatrix 0 amp 0 amp 3 9 amp 3 amp 5 3 amp 1 amp 1 end bmatrix is 0 1 2 3 | Matrices | 97 |
Consider the following determinant Delta begin vmatrix 1 amp a amp bc 1 amp b amp ca 1 amp C amp ab end vmatrix Which of the following is a factor of Delta a b a b a b c abc | Matrices | 97 |
The number of roots of e x 0 5x 2 2 0 in the range 5 5 is 0 1 2 3 | Maxima Minima | 98 |
Find the minimum value of 3 4x 2x 2 Determine the number of positive integers amp le 720 which are not divisible by any of 2 3 or 5 | Maxima Minima | 98 |
Consider the function f x sin x in the interval x left frac pi 4 frac 7 pi 4 right The number and location s of the local minima of this function are A One at dfrac pi 2 B One at dfrac 3 pi 2 C Two at dfrac pi 2 and dfrac 3 pi 2 D Two at dfrac pi 4 and dfrac 3 pi 2 | Maxima Minima | 98 |
A point on a curve is said to be an extremum if it is a local minimum or a local maximum The number of distinct extrema for the curve 3x 4 16x 3 24x 2 37 is 0 1 2 3 | Maxima Minima | 98 |
Solve min x 2 y 2 subject to x y geq 10 2x 3y geq 20 x geq 4 y geq 4 32 50 52 100 None of the above | Maxima Minima | 98 |
Consider 6 memory partitions of sizes 200 KB 400 KB 600 KB 500 KB 300 KB and 250 KB where KB refers to kilobyte These partitions need to be allotted to four processes of sizes 357 KB 210 KB 468 KB 491 KB in that order If the best fit algorithm is used which partitions are NOT allotted to any process 200 KB and 300 KB 2... | Memory Allocation | 99 |
Let the page reference and the working set window be c c d b c e c e a d and 4 respectively The initial working set at time t 0 contains the pages a d e where a was referenced at time t 0 d was referenced at time t 1 and e was referenced at time t 2 Determine the total number of page faults and the average number of pa... | Memory Management | 100 |
Let a memory have four free blocks of sizes 4k 8k 20k 2k These blocks are allocated following the best fit strategy The allocation requests are stored in a queue as shown below Request No J1 J2 J3 J4 J5 J6 J7 J8 Request Sizes 2k 14k 3k 6k 6k 10k 7k 20k Usage Time 4 10 2 8 4 1 8 6 The time at which the request for J7 w... | Memory Management | 100 |
For each of the four processes P1 P2 P3 and P4 The total size in kilobytes KB and the number of segments are given below Process Total size in KB Number of segments P1 195 4 P2 254 5 P3 45 3 P4 364 8 The page size is 1 KB The size of an entry in the page table is 4 bytes The size of an entry in the segment table is 8 ... | Memory Management | 100 |
Consider a main memory system that consists of 8 memory modules attached to the system bus which is one word wide When a write request is made the bus is occupied for 100 nanoseconds ns by the data address and control signals During the same 100 ns and for 500 ns thereafter the addressed memory module executes one cycl... | Memory Management | 100 |
A computer installation has 1000k of main memory The jobs arrive and finish in the following sequences Job 1 requiring 200k arrives Job 2 requiring 350k arrives Job 3 requiring 300k arrives Job 1 finishes Job 4 requiring 120k arrives Job 5 requiring 150k arrives Job 6 requiring 80k arrives Draw the memory allocation ta... | Memory Management | 100 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.