Multilingual learning is ready for competitive exam preparation.
← All categories
CG
Live category

Computer Gk

914 questions
Live database questions

Computer Gk questions

Live
EnglishUPPSC LT Grade Computer Science 2018

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

EnglishUPPSC LT Grade Computer Science 2018

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

EnglishUPPSC 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

EnglishUPPSC 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?

EnglishUPPSC 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?

EnglishUPPSC 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

EnglishUPPSC LT Grade Computer Science 2018

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

EnglishUPPSC LT Grade Computer Science 2018

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

EnglishUPPSC LT Grade Computer Science 2018

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

EnglishUPPSC LT Grade Computer Science 2018

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

EnglishUPPSC LT Grade Computer Science 2018

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

EnglishUPPSC 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?

EnglishUPPSC LT Grade Computer Science 2018

Q13.C was primarily developed as a

EnglishUPPSC LT Grade Computer Science 2018

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

EnglishUPPSC 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

EnglishUPPSC 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

EnglishUPPSC LT Grade Computer Science 2018

Q18.What will be the output of the following? main ( ) { int a = 'A'; printf ("%d", a); }

EnglishUPPSC 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); }

EnglishUPPSC LT Grade Computer Science 2018

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

Syllabus roadmap

Topics to cover next.

01

General practice

Topic-wise questions and study coverage will appear here.