Escolar Documentos
Profissional Documentos
Cultura Documentos
Right Answer: C
Right Answer: B
Que.3. ____________ assigns a unique number to each IP network adapter called the
MAC address.
A: Media Access Control
B: Metro Access Control
C: Metropolitan Access Control
D: Both b and c above
Right Answer: A
Right Answer: D
Que.5. Dynamic addressing doesn't allow many devices to share limited address space
on a network
A: True
B: False
Right Answer: B
Right Answer: B
Que.7. __________ is a standard suite of protocols used for packet switching across
computer networks.
A: x.22
B: x.23
C: x.25
D: x.26
Right Answer: C
Right Answer: C
Right Answer: B
Right Answer: C
Right Answer: B
Que.12. The process of assigning IP address for specific times to the various hosts
by DHCP is called as?
A: Lend
B: sublease
C: let
D: Lease
Right Answer: D
Right Answer: B
Right Answer: D
Right Answer: D
Right Answer: C
Que.17. When computers in a network listen and receive the signal, it is termed as
active toplogy
A: True
B: False
Right Answer: A
Right Answer: A
Right Answer: A
Right Answer: C
C MCQ Test - 3
Que.1. If the size of integer is 4bytes, What will be the output of the program?
#include<stdio.h>
int main()
{
int arr[] = {12, 13,14,15,16};
printf("%d, %d, %d",sizeof (arr),sizeof(*arr),sizeof(arr[0]));
return 0;
}
A: 16, 2, 2
B: 20, 2, 2
C: j=s;
D: *j=s;
Right Answer: B
A: Yes
B: No
C: True
D: False
Right Answer: B
A: No output
B: 0
C: 1022 Hello2
D: Hello1 1022
Right Answer: B
A: 1, 1, 1, 1
B: 1, 1, 0, 1
C: 1, 0, 0, 1
D: 1, 0, 1, 1
Right Answer: D
A: No
B: cmp - is a pointer to an void function type.
C: cmp - is a void type pointer function.
D: cmp - is a function that return a void pointer.
Right Answer: A
Que.7. Will the following program print the message infinite number of times?
#include<stdio.h>
#define INFINITELOOP while(1)
int main()
{
INFINITELOOP
printf("HelloWorld" );
return 0;
}
A: Yes
B: No
C: 10
D: 20
Right Answer: A
#include<stdio.h>
void fact( int*);
int main()
{
int i= 5;
fact(&i);
printf("%d", i);
return 0;
}
void fact(int *j)
{
static int s=1;
if(*j!=0)
{
s = s**j;
*j = *j-1;
fact(j);
/* Add a statement here */
}
}
A: *j=&s;
B: &j=s;
C: 65486, 65488
D: 65486, 65486
Right Answer: B
Right Answer: D
Que.10. What will be the output of the program if the array begins at address
65486?
#include<stdio.h>
int main()
{
int arr[] = {12,14,15,23,45};
printf("%u, %u", arr, &arr);
return 0 ;
}
A: 65486, 65490
B: 65486, 65487
C: The string is empty
D: The string is not empty
Right Answer: B
A: strnchar()
B: strchar()
C: strrchar()
D: strrchr()
Right Answer: B
Que.13. If the different command line arguments are supplied at different times
would the output of the following program change?
#include<stdio.h>
int main(int argc, char **argv)
{
printf("%d", argv[argc]);
return 0;
}
A: 10
B: 11
C: No output
D: Error: ++needs a value
Right Answer: B
A: Yes
B: No
C: 65474, 65476
D: 65480, 65496
Right Answer: D
A: Infinite times
B: 11 times
C: 0 times
D: 10 times
Right Answer: C
A: No output
B: 30
C: 3
D: 300
Right Answer: B
A: 12, 12
B: 7, 7
C: 7, 12
D: 12, 7
Right Answer: A