
ACG ROUND-2 TECHNICAL QUIZ

Quiz
•
Computers
•
University
•
Hard
Dr Reddy
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following highly uses the concept of an array?
Binary Search Tree
Caching
Spatial Locality
Process Scheduling
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the value retuned by the following function, when it is called with a value 11?
int recur(int num)
{
if ( ( num/2) !=0 )
return ( recur(num/2 ) * 10+num%2 );
else return 1;
}
Function does not return any value, because it goes into an infinite loop
11
1011
None
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following program fragment.
static char wer[3][4] = {"bag", "let", "bud"};
char(*ptr)[4] = wer;
In which of the following cases will the character 't' be printed?
putchar ( ( (ptr+1) + 2));
putchar ( * (wer [1] + 2) ) ;
putchar (* (ptr+1) + 2);
None
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider the two declarations
void *voidPtr;
char *charPtr;
Which of the following assignments are syntactically correct?
voidPtr = charPtr
charPtr = voidPtr
*voidPtr = *charPtr
*charPtr = voidPtr
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following fragment of C-program print?
char c[ ] = “GATE2011”;
char *p = c;
printf(“%s”, p + p[3] – p[1]);
GATE 2011
E2011
2011
01
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following program print?
#include < stdio.h >
void f (int p, int q) {
p = q;
*p = 2;
}
int i = 0, j = 1;
int main ( ){
f(&i, &j);
printf (“%d %d \ n”, i, j);
return 0;
}
2 2
2 1
0 1
0 2
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following C statement declare?
int (*f)(int *);
A function that take an integer pointer as an argument and returns an integer.
A function that take integer as an argument and return an integer pointer.
A pointer to a function that takes an integer pointer as an argument and return an integer.
A function that take an integer pointer as an argument and return a function pointer.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
9.4.25 Mentoring quiz

Quiz
•
University
20 questions
Programming Concepts in C

Quiz
•
University
20 questions
Computer Fundamental and C Programming Concept

Quiz
•
University
23 questions
Beginning C Programming

Quiz
•
University
20 questions
TECH FUED ROUND-1

Quiz
•
University
20 questions
ict5_mt_w2_sw2

Quiz
•
12th Grade - University
20 questions
Pointers

Quiz
•
University
25 questions
C PROGRAMMING

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade