A program P reads in 500 integers in the range [0,100] representing the scores of 500 students. It then prints the frequency of each score above 50. What would be the best way for P to store the frequencies?
Asked in RPSC 23Feb 2016Question Paper for VicePrincipal/Superintendent ITI Screening Test 2012(Computer Science)VICE PRINCIPAL/SUPDT. ITI - 2012
Answer under review: our editors are checking this question. Try the other RPSC Prelims previous year questions questions meanwhile.
More RPSC Prelims previous year questions questions
- What is the output of following program? # include <stdio.h> void fun(int x) { x = 30; } int main() { int y = 20; fun(y); printf("%d", y); return 0; }
- In below program, what would you put in place of “?” to print “Quiz”? #include <stdio.h> int main() { chararr[] = "GatesQuiz"; printf("%s", ?); return 0; }
- The reason for using pointers in a C-program is
- Consider the following two C lines: int var1; externint var2; Which of the following statements is correct?
- What is the output of the following program ? #include <stdio.h> int main() { int i; for (i = 1; i != 10; i += 2) printf (" GatesQuiz "); return 0; }
- Breadth First Search of Graph, which of the following data structure is used?
- What is the complexity of Kruskal's algorithm for complete graph of n vertices to final minimum cost spanning tree? (if we use min heap data structure)
- What is the complexity of the following function T(n) = { 0(1) n = 1 T(n-1) + log n n > 1