
First Round
Authored by Prabhavika Pamarthi
others
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following operators has right-to-left associativity?
2.
FILL IN THE BLANKS QUESTION
45 sec • 2 pts
What will be the output of the code:
int main (void) {
enum{RED=20,BLUE,YELLOW=21,GREEN};
printf(“GREEN=%d”,GREEN);
}
(a)
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will the statement print? int main(void){ printf("%u",sizeof(void *)); }
4.
MULTIPLE CHOICE QUESTION
2 mins • 3 pts
What will be the output of the code: int f(int n){ static int i=1; return n+i--; } int main(){ char ch[]="CSE"; int n=strlen(ch),i=0; for(f(n);i=f(n);i++){ printf("%s\t",ch+i-1); } }
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the default value of Automatic storage class (variable auto)?
6.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What does the line of code mean? char (*func)(int)
7.
FILL IN THE BLANKS QUESTION
1 min • 2 pts
Write the output of the code:
void func2(int *p,int m){
m=m+5;
*p=*p+m;
}
int main(){
int i=5,j=10;
func2(&i,j);
printf("%d",i+j);
}
(a)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?