Time Left - 12:00 mins
BARC 2020: Nuclear Quiz 1
Attempt now to get your rank among 436 students!
Question 1
What will be the output of the program?
Question 2
What will be the output of the program?
Question 3
Which protocol is used to send a destination network unknown message back to originating hosts?
Question 4
What will be the output of the program?
Question 5
Which statement will you add in the following program to work it correctly?
Question 6
What will be the output of the program ?
Question 7
What will be output generated by the following code :
main()
{
char a[10];
char *b = 'Gradeup' ;
int length = strlen(B) ;
int i;
for(i=0 ; i < length ; i++)
{
a[i] = b[length - i];
}
printf("%s" , a);
}
main()
{
char a[10];
char *b = 'Gradeup' ;
int length = strlen(B) ;
int i;
for(i=0 ; i < length ; i++)
{
a[i] = b[length - i];
}
printf("%s" , a);
}
Question 8
Consider the following C program:
int main(){
printf("Hello %%");
return 0;
}
What does the code print?
int main(){
printf("Hello %%");
return 0;
}
What does the code print?
Question 9
Which of the following describe router functions?
Question 10
#include <stdio.h>
#define n 2
void fun(int arr[][n],int k)
{
for(int i=0;i<k;i++)
{
for(int j=0;j<n;j++)
{
printf("%d,",arr[I][j]);
}
}
}
void main(){
int arr[][2]={2,6,7,12,28,32};
fun(arr,3);
}
What will be output of above code ?
#define n 2
void fun(int arr[][n],int k)
{
for(int i=0;i<k;i++)
{
for(int j=0;j<n;j++)
{
printf("%d,",arr[I][j]);
}
}
}
void main(){
int arr[][2]={2,6,7,12,28,32};
fun(arr,3);
}
What will be output of above code ?
- 436 attempts
- 5 upvotes
- 2 comments
Mar 23ESE & GATE EC