Recent questions tagged uppcl2018

2 2 votes
2 2 answers
1.9k
1.9k views
Consider the following grammar $\text{G:}$$\text{P} \rightarrow \text{Q + R} \mid \text{Q – R} \mid \text{Q} \mid \text{R}$$\text{Q} \rightarrow q \mid r$$\text{R} \right...
2 2 votes
1 answers 1 answer
693
693 views
The set of equations $x^{2} + y^{2} = 1$ and $x + y = 0$ has how many real solutions?Infinite number of solutionsNo solution$2$ solutions$1$ solution
0 0 votes
1 1 answer
1.1k
1.1k views
Assertion $\text{(A)}:$ James Watt invented the steam engine.Reason $\text{(R)}:$ It was invented to pump out the water from the flooded mines.Both $\text{A}$ and $\text{...
0 0 votes
1 1 answer
612
612 views
Seven friends, Anil, Sunil, Rohit, Puja, Shalini, Pradhi and Gaurav bought seven cars during a week but each one bought their cars on a different day of the week. Each of...
0 0 votes
1 answers 1 answer
826
826 views
If $703_{x}$ (in base-$x$ number system) equals $504_{y}$ (in base-$y$ number system), then possible values of $x, y$ are:$17, 18$None of these$8, 11$$12, 13$
0 0 votes
1 1 answer
694
694 views
The value of $\dfrac{|x|}{x}$ at $x= 0$ is:InfinityNot defined$1$$0$
0 0 votes
1 1 answer
623
623 views
In a high school, a class teacher is scheduling the six subjects into periods $1$ through $6$ for her class. The subjects are: Hindi, English, Mathematics, Science, Histo...
0 0 votes
1 1 answer
655
655 views
The decimal value $0.625$equals the binary $0.111$ equals no finite binary string equals the binary $0.101$ equals the binary $0.10011$
0 0 votes
1 answers 1 answer
682
682 views
What is the sum of the following series:$$2 + 4+ 6+ 8+ \dots + 94 + 96 + 98 + 100$$$4300$$2000$$3240$$2550$
0 0 votes
1 1 answer
664
664 views
Arrange the words given below in a meaningful sequence.Key DoorLockRoomSwitch On$4, 2, 1, 5, 3 $$1, 3, 2, 4, 5 $$1, 2, 3, 5, 4 $$5, 1, 2, 4, 3 $
0 0 votes
0 0 answers
446
446 views
Consider the statements:$\text{A} \Leftrightarrow \text{A} \vee \sim \text{A}$$\text{A} \Leftrightarrow \text{A} \vee \text{A}$$\text{A} \vee \text{B} \Rightarrow \te...
0 0 votes
1 1 answer
629
629 views
What is the output of the following $\text{C}$ program?#include<stdio.h int main(void) { struct bitfields { int bits_1 : 2; int bits_2 : 4; int bits_3 : 4; int bits_4 : ...
0 0 votes
0 0 answers
599
599 views
Consider the following statements regarding life time of any normally terminating process in an operating system.The process must be in $\text{RUNNING}$ state at least on...
0 0 votes
1 1 answer
865
865 views
Consider the following array of elements$<70, 23, 60, 19, 13, 16, 1, 4, 8, 12, 7, 10, 85>$The minimum number of interchanges needed to convert into a max-heap is $4$$1$$3...
0 0 votes
1 1 answer
565
565 views
The recurrence equation $T(n) = T(\sqrt{n}) + O(1)$ has the following asymptotic solution:$T(n) = O(\sqrt{n})$$T(n) = O(\log n)$$T(n) = O(n^{1/\log n})$$T(n) = O(\log \lo...
0 0 votes
0 0 answers
535
535 views
Consider the following transactions with data items $\text{P}$ and $\text{Q}$ initialized to zero:T1: read (P); read (Q); if P = 0 then Q : = Q + 1; write (Q); T2: read (...
0 0 votes
1 1 answer
636
636 views
The preorder traversal sequence of a binary search tree is $25, 15, 10, 4, 12, 22, 18, 24, 50, 35, 31, 44, 70, 66, 90$Which one of the following is the postorder traversa...
0 0 votes
1 1 answer
957
957 views
Which of the following circuits are equivalent (i.e., they produce the same output for all inputs)?$\text{F} = ab + bc + ca$$\text{G} = (a+b)(b+c)(c+a)$$\text{H} = \text{...
0 0 votes
0 0 answers
577
577 views
Consider a fully-associative data cache with $32$ blocks of $64$ bytes each. The cache uses $\text{LRU}$ (Least Recently Used) replacement. Consider the following $\text{...
0 0 votes
1 1 answer
872
872 views
In a course, a professor gives five grades $\{\text{A, B, C, D, F}\}.$ What is the minimum number of students required so that four of them are guaranteed to get the same...
0 0 votes
1 1 answer
700
700 views
Consider that $\text{N}$ distinct elements $(\text{N}>3)$ are inserted into an initially empty binary search tree $\text{(BST)}.$ Which of the following statements are tr...
0 0 votes
1 1 answer
694
694 views
The following grammar $\text{G}$ is left recursive.$\text{E} \rightarrow \text{E + T}\; \mid \; \text{T} $$\text{T} \rightarrow \text{T * F} \; \mid \; \text{F} $$\text{F...
0 0 votes
1 1 answer
812
812 views
We have a database table with relational schema $\text{R(XYZPQ)}:$$$\begin{array}{|c|c|c|c|c|} \hline \text{X} & \text{Y} & \text{Z} & \text{P} & \text{Q} \\\hline \text{...
0 0 votes
0 0 answers
584
584 views
Let $\text{MXI}$ be an inverting $2:1$ multiplexer whose output is $a’,$ when $s=0$ and output is $b’$ when $s=1.$ That is, $\text{MXI}(s,a,b) = s’a’ + sb’.$ What functio...
0 0 votes
1 1 answer
579
579 views
Consider a computer system with $32-$ bit virtual addressing and page size of sixty-four kilobytes. The computer system has one-level page table per process with each pag...
0 0 votes
3 3 answers
902
902 views
The following function attempts to merge two sorted linked lists. ListNode is the custom structure representing a node in the linked list.ListNode* Merge(ListNode* pHead1...
0 0 votes
1 1 answer
562
562 views
Consider the following $\text{C}$ program.#include<stdio.h #define XOR(a, b) (a) ^ (b) void func (int *a, int *b) { *a = XOR (*b, *a); *b = XOR (*a, *b); *a = XOR (*b, *a...
0 0 votes
1 1 answer
563
563 views
Let $\text{A}$ be a $2 \times 2$ matrix with integer entries. Which of the following could be its eigenvalue?$\sqrt[3]{2}$$\pi$$\frac{1}{\sqrt{2}}$$\sqrt{2}$
0 0 votes
0 0 answers
436
436 views
Consider the following $\text{C}$ function executed in an $\text{OS}$ with paging where the page size is $4$ kilobytes. Further, assume that the system employs a $32-$ en...
0 0 votes
0 0 answers
455
455 views
The Adjacency matrix of a directed graph $\text{G}$ is given below.$\begin{array} {} & a & b & c & d & e & f & g & h & i \\ a & 0 & 1 & 0 & 0 & 0 & 0 & 1 & 0 & 0 \\ b & ...