Loading paper…
Loading questions…
a) The instruction set architecture (ISA) is the set of basic instructions that a processor understands. Historically, there are two philosophies of instruction sets. Write down the names of these two philosophies. b) Differentiate between Compilers and Interpreters. Give at least two differences. |
a) How would you define a function in programming language? Explain the main | . components of a function. | b) Write a program in any programming language to add the matrix of 3X3 using arrays.
a) How program testing is done? Explain different types of software testing in detail. b) Write a program using functions to differentiate between pass by value and pass by. reference. |
a) Consider yourself as the network administrator for a surveillance company. Your company has offices in several countries, and they need to create a network that allows those offices to connect with one another. In this situation, you must determine the type of network that will emerge. b) Thick Ethernet uses thick coax cable. Transceiver or drop cables connect NIC to transceiver. Different machines send data on the cable which can cause reflectance that 7 in turn damages the data. Keeping in view thick Ethernet, you are required to answer the following questions: j i. Which device is used to avoid the Reflectance of signal? ; li. Which form of signal does AUI carry? =2= P
a) What do you know about Minterms and Maxterms? Also explain sum of Minterms and v Product of Maxterms with examples. ; b) Define Logic Gates. Enlist the Digital Logic Gates alongwith their names, graphical symbols, algebraic functions & Truth Tables.
a) What is meant by adder? Explain half adder and full adder with example. b) Draw the NAND logic diagram for each of the following using multiple-level NAND gate circuits: i. (AB! +CDE + BC(A+B) ii, wiety +z) +xyz
a) Write down the three ways in which we can implement the Queue data structure. b) What is the output of following program? MyQueue q; . MyStack s; q = new MyQueue(); s = new MyStack(); s.push ; s.push ; s.push ; ; g-enqueue(s.pop()); q.enqueue ; cout<<s.pop(); | q.enqueue ; cout<< q.dequeue(); s.push(q.dequeue()); | cout<<s.pop(); | cout<<s.pop(); |
a) Consider performance of FCFS algorithm for three computer-bound processes. If | process P1 takes 24 seconds, P2 takes 3 seconds and P3 takes 3 seconds and processes arrive in the given order Pi, P2, P3. You need to calculate the following. i. Turnaround time per process ii. Average turnaround time of processes b) Enlist the four conditions of the deadlock.
a) What do you know about inter process communication? Explain semaphores and binary semaphores in detail b) In which technique paging and segmentation are combined? Explain with example. fs , (® ys Ne Se NOTE: i. All the parts (if any) of each Question must be attempted at one place instead of at different places. ii. Write Q. No. in the Answer Book in accordance with Q. No. in the Q. Paper. iii. No Page/Space be left blank between the answers, All the blank pages of Answer Book must be crossed. iv. Extra attempt of any question or any part of the question will not be considered. NOTE: Attempt any FIVE Questions in All. Calculator is allowed (Non- Programmable) Q.No.1 Following is a state diagram of a TM. q0 is the start state, “q accept” is the accept state and “q reject” is the reject state. 0;0,R O;0,L x;x,R Kix, “aia ‘ 4ix,b b Z "\ A\ | O;0,.R (‘Mins Does the TM accept the string 1100? Show the execution of the TM on the input by giving the sequence of configurations from the start to the halting configuration. | Q.No.2 (a) Construct a Context Free Grammar (CFG) for possible sequences of if and else in ‘C’. (b) Find the moves of the above grammar to derive the if - else sequence of the string: iieie. Q.No.3 The table below shows the values of the function f(x) at various points x: a Le ee r=F@ [FB LF |? 19 (a) Use Lagrange interpolation to find the polynomial of degree 4 that passes through all the given points. (b) Use polynomial approximation to approximate f(1.5) and f(2.5). P.T.O i cesssnneerienerinemnmcmn illite ie oa ‘ow Q.No.4 A) . : , I) Convert the following table into ist normal form. | emp.id _ emp_name emp_address emp_mobile 4 | 101 James UK 239023) ___ — : 881212 | | 103 —_| Ron lus si aziz : | 104 | Rocky Paris ae | L— 80345 | II) Convert the following table into 2nd normal form. teacher_id subject [teacherage | ii Biology | 38 oo ; , lit Physics A 5 | 222 Chemistry | 38 | a ke Maths 40 | | B) What is the Hierarchical data model? Explain the hierarchical data model in detail. 4 C) Explain “Group By” Clause in SQL. _ Q.No.5 (a) Consider the case, where we are using beam search as an NLP for searching a computational cost. Beam search provides a tradeoff between accuracy versus a : computational cost as of the flexible choice. It is referred to as greedy search algorithm : | because of its projection. The sample nodes are given as: 4 The process of beam search involves: : . | Maximum length of an output sequence= 3. a The candidate nodes output sequences | are AA, CC, ABAB, CECE, ABDABD, and CEDCED. | | You are required to backtrack the searching nodes and draw/give the tree for that beam search. (b) Apply the Breadth First Search in the formation of tree data structure as given below to figure out your goal state. . Given: Goal state is 5. Note: 1) Just mention the values of ‘Q’ and ‘Visited’ queues/lists at every step. 2) No need to draw tree for showing any step. : Contd.....P/3 Q.No.6 “Partition Testing” is one of the Strategies to help you select the test cases for testing your system. In Partition testing, you identify groups of inputs that have common characteristics and should be processed in the same way. You should choose tests from within each of these groups. Now consider a method named “RemoveBlankSpaces” which replaces a sequence of blank spaces with a single space character, Identify the testing partitions and derive a set of tests (i.e. write down the strings that you will test and the test case that will be applied) for the “RemoveBlankSpaces” method. Q.No.7 A) What is the intelligent agent in AI, and where are they used? B) What is overfitting? How can it be overcome in Machine Learning? C) What is game theory? How is it important in AT? Q.No.8 Consider the Incremental line algorithm (given below) for drawing a straight line. Two points (2, 3) and (5, 6) are given. You are required to run this algorithm for these points to draw a straight line. Also show the values of variables at each step/iteration against every instruction. Incremental_line (Point p1, Point [p2) , dx = p2.x — p1.x dy = p2.y — ply | m = dy / dx | X = pi.x | y=plLy | b=y-m*x | if jm] <1 for counter = pi.x to p2.x 8 times drawPixel (x, y) | | X=xX+1 | y=m*x+b else for counter = p1.y to p2.y drawPixel (x, y) y=yt+i1 x=(y-b)/m | | ee