Recent questions tagged uppcl2018

0 votes
1 answer
31
An unordered list contains $n$ distinct elements. The number of comparisons to find an element in the list that is larger than the second minimum in the list is$\Theta(n ...
0 votes
1 answer
40
Which one of the following algorithms cannot sort $n$ numbers in $O(n)$ comparisons?Counting sortRadix sortHeap sortBucket sort
0 votes
1 answer
41
How many Boolean functions in one variable are $\text{NOT}$ idempotent: i.e. they do not satisfy $\forall a.f(f(a)) = f(a).$$4$Infinite$1$$0$
0 votes
0 answers
44
What key(s) are used by the sender of an encrypted message in an asymmetric-key cipher?Private key of the senderPublic or private key of the senderNeither public nor priv...
0 votes
0 answers
45
The problem of finding an integral solution of a given system of integral polynomial equations has complexity:Polynomial-timeExponential-spaceUndecidableExponential-time
0 votes
2 answers
46
If in $\text{CIDR}$ notation an $\text{IP}$ address is written as $172.26.17.1/25$, the subnet mask is:$255.255.255.192$$255.255.255.0$$255.255.240.0$$255.255.255.128$
1 votes
0 answers
47
Match all items in Group $1$ with correct options from those given in Group $2.$$$\begin{array} {|l|l|} \hline \qquad \qquad \textbf{Group 1} & \qquad \textbf{Group 2} \\...
0 votes
1 answer
48
Which of the given options provides the increasing order of asymptotic complexity of functions $\text{f}_{1}, \text{f}_{2}, \text{f}_{3}$ and $ \text{f}_{4} $ ?$\text{f}_...
0 votes
0 answers
49
A file is organized so that the ordering of data records is the same as, or close to the ordering of data entries in some index. Such an index is commonly known as:DenseN...
1 votes
0 answers
51
Which phase during compilation does a compiler recognize the $\textbf{keywords}$ of a language?Code generationParsingDataflow analysisLexical analysis
2 votes
3 answers
52
What is the output of the following $\text{C}$ program?#include<stdio.h int main(void){ char s1[] = “Hello”; char s2[] = “World!”; s1 = s2; printf(“%s”,s1); }...
1 votes
2 answers
55
How many different Boolean circuits of $n$ variables are there?None of the above$n^{2^{n}}$$2^{2^{n}}$$2^{n}$
0 votes
0 answers
56
What is logically equivalent to the following statement? “I pass only if you pass” (Note that fail is equivalent to not pass.)If you pass then I passYou fail if I fai...
0 votes
1 answer
57
1 votes
0 answers
59
Which of the following data structures is used by a compiler to manage information about variables and their attributes?abstract syntax treesymbol tablesemantic stackpars...