
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
23 questions
midterm 1 review!

Quiz
•
University
22 questions
EXCEPTION HANDLING IN PYTHON

Quiz
•
University
20 questions
POO_BasicoyJava

Quiz
•
University
25 questions
Final Exam Revision (Trial)

Quiz
•
University
20 questions
Test Final

Quiz
•
University
20 questions
BS TEST2

Quiz
•
University
25 questions
C Programing

Quiz
•
University
21 questions
quiz 2nd/3rd year

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University