September 8, 2024

Algorithm-Paradigms

Question 1 Give short answers to the following questions: (i) Convert the following Pascal statement to a single assignment statement: if x > 5 they y:=true […]
September 9, 2024

GATE 1991

Question 10 Consider the following recursive definition of fib: fib (n) : = if n = 0 then 1 else if n = 1 than 1 […]
September 11, 2024

Programming

Question 183 In Java, the Dynamic Array are known as : A Vectors B Cycle C Remote D Kubernotos ProgrammingArraysNIC-NIELIT STA 2020Video-Explanation Question 183 Explanation:  In […]
September 12, 2024

GATE 2005

Question 1 What does the following C-statement declare? int ( * f) (int * ) ; A A function that takes an integer pointer as argument […]
September 15, 2024

Calloc-Malloc

Question 1 We use malloc and calloc for A Dynamic memory allocation B Static memory allocation C Both dynamic and static memory allocation D None of […]
September 19, 2024

UGC NET CS 2018-DEC Paper-2

Question 70 What does the following java function perform ? (Assume int occupies four bytes of storage) Public static int f(int a) { //Pre-conditions : a>0 […]
October 17, 2024

C-Programming

Question 2 Which of the following standard C library functions is best used to find the last occurrence of a character in a string ? A […]
October 18, 2024

Programming

Question 5 The integer value printed by the ANSI-C program given below is_____ . #include int funcp(){ static int x = 1; x++; return x; } […]
October 18, 2024

Functions

Question 17 The time complexity of the following C function is (assume n>0) int recursive (int n) { if (n==1) return(1); else return(recursive (n-1) + recursive(n-1)); […]
October 18, 2024

Functions

Question 18 int function (int x, int y) { if(y<=0) return x; return function (y, x%y); } The above recursive function computes ______ A GCD of […]
October 25, 2024

GATE-2024-CS1(Forenoon)

Question 19 Consider the following C program: Assume that the input to the program from the command line is 1234 followed by a newline character. Which […]
November 13, 2024

UGC NET CS 2008-june-Paper-2

Question 11 What is the effect of the following C code ? for(int i=1; i≤5; i=i+½)          printf(“%d,”,i); A It prints 1, 1.5, 2, 2.5, 3, 3.5, […]