You are on page 1of 19
972312020 (Question Set forthe requirements of Project Allocation “2020-2021: Altempl review Dashboard / My courses /$P12020 Started on Wednesday, 23 September 2020, 200 PM State Finished Completed on Wednesday, 23 September 2020, 400 PM Time taken 1 hour 59 mins Grade 68.67 out of 100.00 ‘vssion 1 \What isthe output af the fllowing statement prin (6-3 12349, 123 b123 12345 ¥ ouster Marc2.0 29200 Which ofthe following is NOT true of deadlock prevention and deadlock avoidance schemes? ‘2. Deadlock avoidance requires knowledge of resource requirements a prior ». In deadlack avoidance, the request for resources is always granted if the result state is safe «In deadlock prevention, the request for resources is always granted ifthe resulting states safe ’ 4, Deadlock avoidance sles restrictive than deadlock prevention 202.78.238.242imodlquizreview-php?attempt=1858cmid=408showall=1 ane ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review cussion \Whatis the folowing function computing? Assume a and b are postive integers Ine fn int 2, int b) return (2 f(a, b= 1); > 2. Computing ab b, Computing a + b Output mill be 0 always 4. Output will aways be b cussion cont are2.0 009208 ‘The folowing numbers are inserted into an empty binary search tee in the given order: 10, 1, 3,5, 15, 12, 16. Whats the height of the binary search tree (the heights the maximum distance of a leaf node from the rool)? a6 veston Which data structure most efficent to find the top 10 largest tems out of 1 milion tems stored in fle? Min Heap b Binary Search Tree & Max Heap 4. Sorted Array 202.78.239.242modiquizreview.php?attempt=1858cmid=408showall=1 ane. ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review ‘The output of the following code segment will be char = 8 soteh ‘ case A’ print": case 8° printb) case C* printfe ausion? \What isthe output ofthe fllowing program? prinet (°21"Y; prinet("22"%; > 2, Compilation error b. None of these cam az 202.78.238.242imodlquizreview-php?attempt=1858cmid=408showall=1 ang, ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review [A Relation R with FD set (A->BC, 8->A, A->C, A->D, D>}, How many candidate keys wll be there in R? at be oe aa x austen ‘The following postfix expression wit single digit operands is evaluated using a stack B23A/23%25 Note that * isthe exponentiation operator. The top two elements ofthe stack ater the fist *is evaluated are ST bas 32 4.61 ¥ vesion 10 are2.00 020208 ‘The searching technique that takes O(1) time to find a data is Hashing v » Linear Search «Binary Search ‘Tree Search 202.78.238.242imodlquizreview-php?attempt=1858cmid=408showall=1 ang. ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review ouston 11 Which of the following is not applicable for IP? Handle addressing conventions Packet handling conventions Datagram format Error reporting ston 12 arc2.0 29200 What isthe output of the following cod Tocalhost password"; UW Create connection Sconn = new mysqli(Sservername, Susername, Spassword); 1 Check connection if (Sconn->connect, error) ( die(*Connection failed: ". $conn->connect, error) > [Create database Seql = “CREATE DATABASE myDB"; If (Sconn->query(Ssql) === TRUE) ( ‘echo "Database created successfully" dele ¢ ‘echo “Error creating database: " . $conn->errer; > $conn->closed: » Error ereating database. b. None of the above «Database crested successfully 4. Wrong source code 202.78.238.242imodlquizreview-php?attempt=1858cmid=408showall=1 sno. ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review ssion 1B ‘To evaluate an expression without any embedded function cals; 9. One stacks enough b. Two stacks are needed {¢-A Tuting machine is needed in the general case ‘d.As many stacks asthe height of the expresso tree are needed sion 14 Which of the following protocol is/are defined in Transport layer? Fe rep aac upp. contr 1S arc2.0 09200 What is the output of the following ¢ program? ‘include 3.20 bas 2s 202.78.238.242imodlquizreview-php?attempt=1858cmid=408showall=1 ang, ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review sion 16 ‘The sie of IP address in v6 is roo bits 128 bis ¥ bytes 4 bytes usion 17 arc2.0 29200 What cannot replace prinet("%alyn, in the folowing C-code to print all odd numbers less than 100? fort aiest01 ¥ bict90 cicst00 diet01 cussion 18 comet \Whatis the following program doing? main 0 ‘ ine do printf "san", d+); white (d < = 9); > {None of these b. Adding 9 integers «Displaying integers fom 1 to 9 v «Adding integers from 110.9 202.78.238.242imodlquizreview-php?attempt=1858cmid=408showall=1 m9 ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review sion 19 If there are N routers from source to destination, total end to end delay in sending packet P{L->number of bits in the packet R-> transmission rate) N wor eur ua verter 20 cone arc2.00 oto 200 The best data structure to check wither an arithmetic expression has balanced parentheses is 2 » Stack «Linked lit d.Queue conten 21 ONS is the abbreviation of Dynamic Name System Domain Name System Dynamic Network System Domain Network Service 202.78.238.242imodlquizreview-php?attempt=1858cmid=408showall=1 ang ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review sion 22 Consider the following code segmentint a[10], "pt, *p2; pointers? ‘a[4);p2 = Bal]; Which of the following statements is incorrect wt enter 23, In the for statement: for (expt; exp2:exp3){..} where expt, exp2 and exp3 are expressions, Whats optional? _.All the expressions are optional ’ b. None ofthe expressions is optional € Only exp1 is optional. «Only exp1 and exp are optional ovation 24 Fx is one dimensional array, then pick up the correct answer + is same as“) "bc 4 i) is same as Box) . 2a} is same asx+ i G+ is same a8 xi +1 202.78.238.242imodlquizreview-php?attempt=1858cmid=408showall=1 ong ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review cuion 25. n resources are allocated on demand line switching frequency suitehing circuit swtehing packet switching v sion 26 In Java, Disp cedurekat — Met 5. eve aa ‘tae a. None of the above b. DispatcherServet is basically the back-end controler in the Spring MVC application as it don't loads the spring bean configuration file and initializes all the beans that have bean configured, DispatcherServet i basicaly the front controller in the Spring MVC application as itloads the spring bean configuration fle and ¥ iniialzes all the beans that have been configured. 4, DispatcherSeretis basically the back-end controller in the Spring MVC application as it oads the spring bean configuration fle and intaizes all the beans tha have been configured. 202.78.238.242imodlquizreview-php?attempt=1858cmid=408showall=1 1019 ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review ution 27 The following figure represents access graphs of two modules MI and M2. The filed circles represent methods and the untiled circles represent attioutes, method m is maved to module M2 keeping the attrbutes where they are, what can we say gout the average cohesion and coupling between modules in the system of two madules? Module Mt Mocuie M2 Z eee WA ‘Average cohesion and coupling increase b. There is no change v ‘Average cohesion goes down and coupling als reduces «Average cohesion goes up but coupling is reduced, esion 28 Which ofthe following sorting algorithms can be used to sort random inked list with minimum time complexity? a. Heap sort b Insertion sort Merge sort ¥ Quick sort tion 29 {an instance of relational schema R (A, B,C) has distinct values ofA including NULL values, Which one ofthe following is true? a. Aisnot a candidate key ¥ Both A and & Aisa primary Key 4d. Aisa candidate key 202.78.238.242imodlquizreview-php?attempt=1858cmi amg ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review auton 30 ‘The output ofthe program code i ) ax =20 compilation err ‘enone af the above dixel ston 31 Method{s) to move data through a network of links and switches Line switehing| otha andb Packet switching Circuit switching 202.78.238.242imodlquizreview-php?attempt=1858cmid=408showall=1 ran ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review sion 32 What is the output of the following code Scookie_value = “John Doe"; setcookie(Scookie_name, $cookie value, time() + (86400 * 30),"/"); // 86400 = 1 day 2> ‘echo “Value is: ". $_COOKIE(Scookie_name! is not set! > -

Note: You might have to reload the page to see the value of the cookie.

2. Error exist in the source code b, None of the above << Cookle named ‘user exists! 1. Cookie named ‘user’ is not set eon 33, Manc2.00 00200 Consider the lowing declaration: int a *b = &a,* {ib . The following program fragment : a = 4; * ‘8 does not change the value of 3 b. assigns address of 103 assigns Stoa ¥ ‘assigns value of b to a 202.78.238.242imodlquizreview-php?attempt=1858cmi 1319 ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review ussion 3 4. Let A be a square matrix af size nxn, Consider the following program. Whats the expected output? c 100 fori= 1tondo for) ‘ tondo Temp = All + € Agi] = AUT Ai) = Temp -€ ) fori=1tondo for) ‘Outputs tondo 2. Transpose of matiix A Adding 100 to the upper diagonal elements and subtracting 100 from diagonal elements of A ‘¢ None of the above The matrix A itself v cvssion 35, cone Ina schema with attributes A, 8, C,D and Efellowing set of functional dependencies are given A=BA=CCD=EB=DE~A Which f the following fun al dependencies is NOT implied by the above set? aac BC bcd ac 680400 v acco 202.78.238.242imodlquizreview-php?attempt=1858cmid=408showall=1 149. ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review sion 36 \What should be the flag value to indicate the last fragment? ‘2. None of the mentioned bo ec Tilvalue at union 37 are-067 out of 200 Which ofthe following fel in Pv datagram isnot related to fragmentation? Identifier ortset Tos Fags sion 3B conver arc2.00 oo 200 What isthe meaning of Bandwidth in Network? Transmission capacity of » communication cnannels None of Above lass of IP used in Network Connected Computers in the Netwark vesion 39 If a elation is Re(A,B,C,0,8) and FD's are (A--> B,BC-->E,ED-->A). Risin which highest normal form BNF INF BeNF 2NF 202.78.238.242imodlquizreview-php?attempt=1858cmid=408showall=1 1519 ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review ution 0 +. What does the following function do for a given Linked List withthe fist node as head? void funtistruct node hea) ‘ infvead == NUL return; funtthead->next: DriniC4¢ head» data: 2. Prints atemate nodes in reverse order b, Print alternate nodes of Linked List «Prints all nodes of linked lists 4. Prints all nodes of linked lst in reverse order coven ar-067 out of 200 What isthe use of Ping command? To testa Pinter Quality Te testa bug in a Application To test a hard isk fault To testa device on the network is reachable vasion Which of the following communications lines is best suited to interactive processing applications? 2 mined band channels narrow band channel «fall duplex ines <.simplex ines 202.78.238.242imodlquizreview-php?attempt=1858cmid=408showall=1 1619 ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review sion 3, ‘The TTL fee has value 10. How many routers (max) can process this datagram? " sion aad out of200 Given the basic ER and relational model, which ofthe folowing is INCORRECT? {An atribute ofan entity can have more than one value Ina row of relational table, an atin can have more than one vale ‘an attbute ofan entity can be composite In a row of a relational table, an attribute can have exactly one value or a NULL value cuir AB Not anoneres ated out ot 200 {Given an undirected graph G with V vertices and E digs, the sum ofthe degrees of al vertices i 228 baw ev ae 202.78.238.242imodlquizreview-php?attempt=1858cmid=408showall=1 am ‘972312020 {Question Set forthe requirements of Project Allocation * 2020-2021: Altempl review sion 6 Consider the Quicksort algoritar, 5) teach of which contains at Then ast one-fifts of the elements. Let T9 AT <= 21/5) +n bTp <= 27 +n 1M

You might also like