October 20, 2023

Programming

Question 287 Consider the following program segment : d=0; for(i=1; i<31, ++i) for(j=1; j<31, ++j) for(k=1; k<31, ++k) if ((i+j+k)%3)= = 0); d = d + […]
October 20, 2023

Functions

Question 62 _______ is often used to prove the correctness of a recursive function. A Diagonalization B Communitivity C Mathematical Induction D Matrix Multiplication ProgrammingFunctionsUGC NET […]
October 20, 2023

UGC NET CS 2013 June-paper-2

Question 7 How many values can be held by an array A(–1,m;1,m) ? A m B m2 C m(m+1) D m(m+2) ProgrammingArrays Question 7 Explanation:  int […]
October 20, 2023

Programming

Question 348 What is the output of following C program? # include main( ) { int i, j, x = 0; for (i = 0; i […]
October 20, 2023

Programming

Question 424 Consider the following recursive Java function f that takes two long arguments and returns a float value: Which of the following real values best […]
October 20, 2023

Programming

Question 195 Consider the following pseudo-code fragment, where m is a non-negative integer that has been initialized: p = 0; k = 0; while(k < m) […]
October 20, 2023

Programming

Question 311 What is the value of ‘b’ after the execution of the following code statements : c=10; b=+ +c+ + +c; A 20 B 22 […]
October 21, 2023

NTA UGC NET DEC-2022 Paper-2

Question 4 Consider the following conditional code, which returns a Boolean values if ((x>25) && (y>100)) return ‘false’; else if((x<=25) && (y<=100) return ‘true’; else if((x>25) […]
October 22, 2023

Problem-Solving

Question 1 Suppose we have a function HALTS which when applied to any arbitrary function f and its arguments will say TRUE if function f terminates […]
October 23, 2023

Arrays

Question 52 Let A[1…n] be an array of n distinct numbers. If i < j and A[i] > A[j], then the pair (i, j) is called […]
October 24, 2023

UGC NET CS 2010 June-Paper-2

Question 11 The statement printf(“%d”,10 ? 0 ? 5 : 1 : 12); will print A 10 B 0 C 12 D 1 ProgrammingOperator Question 11 […]