October 25, 2023

NTA-UGC-NET 2021 Dec & 2022 June Paper-2

Question 12 The condition num!=65 cannot be replaced by A num > 65 || num<65 B !(num==65) C num-65 D !(num-65) ProgrammingOperator Question 12 Explanation:  Except […]
August 11, 2024

Pointers

Question 5 Which of the following statements is TRUE for the function prototype declaration given below? Int *(*P)(char *Q[]); A P is a function that accepts […]
August 11, 2024

Arrays

Question 12 Which of the following statements is INCORRECT with respect to pointers declared in the following ‘C’ language code? Void main() Int a[10], *p, *q; […]
August 21, 2024

UGC NET CS 2014 June-paper-3

Question 10 Match the following with respect to the jump statements : List – I List – II a. return i. The conditional test and increment […]
August 24, 2024

C-Programming

Question 25 Consider the following C program int f1 (int n) { if(n == 0||n == 1) return n; else return (2*f1(n-1)+3*f1(n-2)); } int f2 (int […]
August 27, 2024

C-Programming

Question 40 What is the output when the following segment of ‘c’ code is executed? Void main (){ Float a = 123.456 printf(“%7.2f, %7.3f, %12e, a, […]
August 27, 2024

C-Programming

Question 51 What is the output of the following ‘C’ program ? (Assuming little – endian representation of multi-byte data in which Least Significant Byte (LSB) […]
August 28, 2024

Pointers

Question 13 Consider the following declaration int a, *b=&a, **c=&b; a=4; **c=5; If the statement b=(int *)**c is appended to the above program fragment then A […]
August 28, 2024

Pointers

Question 16 Assume that float takes 4 bytes, predict the output of following program. #include int main() { float arr[5]={12.5,10.0,13.5,90.5,0.5}; float *ptr1=&arr[0]; float *ptr2=ptr1+3; printf(“%f”,*ptr2); printf(“%d”,ptr2-ptr1); […]
August 29, 2024

Functions

Question 65 Which of the following is the correct value returned to the operating system upon the successful completion of a program ? A 0 B […]
August 29, 2024

Functions

Question 56 In the following C language function, Iet n ≥ m. How many recursive calls are made by this function ? int gcd(n,n) { if(n%m […]
August 29, 2024

Functions

Question 52 Consider the following function definition. void greet (int n) { if (n>0) { printf(“hello”); greet(n-1); } printf(“world”); } If you run greet(n) for some […]