Multilingual learning is ready for competitive exam preparation.
Question bank smart search

Find the exact question you need.

Search questions, answers, explanations, exams, categories, and subcategories across every available language.

914 matching questions
914 questions found Page 1 of 46
Computer Gk English UPPSC LT Grade Computer Science 2018

Q01.Which one of the following is prefix representation of the infix expression A*(B+C)/D?

Computer Gk English UPPSC LT Grade Computer Science 2018

Q02.A B-Tree is of order p and consists of n keys. Its maximum height is

Computer Gk English UPPSC LT Grade Computer Science 2018

Q03.The following postfix expression with single- digit operands is evaluated using a stack: 823^/23*+51*- (Note that ^ is the exponentiation operator.) The top two elements of the stack after the first * is evaluated, are

Computer Gk English UPPSC LT Grade Computer Science 2018

Q04.A hash function defined as f(key) = key mod 7 with linear probing is used to insert the keys 37, 38, 72, 48, 98, 11, 56 into a table indexed from 0 to 6. What will be the location of 11?

Computer Gk English UPPSC LT Grade Computer Science 2018

Q05.The concatenation of two lists is to be performed in O(1) time. Which of the following implementations of lists could be used?

Computer Gk English UPPSC LT Grade Computer Science 2018

Q06.Match List-I with List-II and select the correct answer using the codes given below the Lists: List-I List-II Greedy A. All-pairs shortest path Quicksort B. Depth-first search C. Minimum weight Dynamic spanning tree programming D. Connected Divide and conquer components

Computer Gk English UPPSC LT Grade Computer Science 2018

Q07.Which of the following algorithms solves the all-pairs shortest path problem?

Computer Gk English UPPSC LT Grade Computer Science 2018

Q08.Which of the following sorting algorithms has the worst time complexity of nlog(n)?

Computer Gk English UPPSC LT Grade Computer Science 2018

Q09.What is common in three different types of traversals (inorder, preorder and postorder)?

Computer Gk English UPPSC LT Grade Computer Science 2018

Q10.Which of the following is correct recurrence relation for worst caset of binary search?

Computer Gk English UPPSC LT Grade Computer Science 2018

Q11.Which of the following traversal techniques lists the nodes of a binary search tree in ascending order?

Computer Gk English UPPSC LT Grade Computer Science 2018

Q12.A hash table of length 10 uses open addressing with hash function h(k) = kmod 10 and linear probing. After inserting 6 values into an empty hash table, the table is shown below: 0 1 2 42 3 23 4 34 5 52 6 46 7 33 8 9 Which of the following choices gives a possible order in which the key values could have been inserted in the table?

Computer Gk English UPPSC LT Grade Computer Science 2018

Q13.C was primarily developed as a

Computer Gk English UPPSC LT Grade Computer Science 2018

Q15.The program fragment int a = 5, b = 2; printf ("%d", a ++ + ++ b);

Computer Gk English UPPSC LT Grade Computer Science 2018

Q16.Consider the following program segment in C programming language : i = 6720; j = 4; while ((i % j) == 0) {i = i / j; j = j + 1;} On termination, j will have the value

Computer Gk English UPPSC LT Grade Computer Science 2018

Q17.Cosider the following segment of C code : int j, n; j = 1 while (j < = n) j = j*2; The number of comparisons made in the excution of the loop for any n>0 is + log n 1

Computer Gk English UPPSC LT Grade Computer Science 2018

Q19.What will be the output of the following program? int f (int x) { static int y; y + = x; return (y); } main ( ) { int a, i; for (i = 0; i < 6; i++) a = f (i); printf ("%d", a); }

Computer Gk English UPPSC LT Grade Computer Science 2018

Q20.Which of the following is not a storage class specifier in C programming language?