Computer
51. Match the protocol with its port number:
(a) FTP (i) 53
(b) Telnet (ii) 23
(c) TFTP (iii) 69
(d) DNS (iv) 161
(e) SNMP (v) 20
(A) a-v, b-ii, c-iii, d-i, e-iv
(B) a-i, b-v, c-ii, d-iii, e-iv
(C) a-v, b-iii, c-ii, d-i, e-iv
(D) a-v, b-iv, c-ii, d-i, e-iii
Show Answer
Hide Answer
52. How many lines of output are produced in the following?How many lines of output are produced in the following?
int x[5] = {0, 2, 3, 1, 4};
for (i=0; i<3 ; i++)
{
for (j=0; j<x[i]; ++j)
{
cout << “computing\n”;
}
}
(A) 5
(B) 2
(C) 6
(D) None of the above
Show Answer
Hide Answer
53. Assume sizeof an integer and a pointer is 4 byte. Output?
#include <stdio.h>
#define R 10
#define C 20
int main()
{
int (*p)[R][C];
printf(“%d”, sizeof(*p));
getchar();
return 0;
}
(A) 200
(B) 4
(C) 800
(D) 80
Show Answer
Hide Answer
54. Which if the following is/are the levels of implementation of data structure
(A) Abstract level
(B) Application level
(C) Implementation level
(D) All of the above
Show Answer
Hide Answer
55. To represent hierarchical relationship between elements, Which data structure is suitable?
(A) Dequeue
(B) Priority
(C) Tree
(D) Graph
Show Answer
Hide Answer
56. Inserting an item into the stack when stack is not full is called …………. Operation and deletion of item form the stack, when stack is not empty is called ………..operation.
(A) push, pop
(B) pop, push
(C) insert, delete
(D) delete, insert
Show Answer
Hide Answer
57. Which of the following is not the type of queue?
(A) Ordinary queue
(B) Single ended queue
(C) Circular queue
(D) Priority queue
Show Answer
Hide Answer
58. State true or false.
(i) The degree of root node is always zero.
(ii) Nodes that are not root and not leaf are called as internal nodes.
(A) True, True
(B) True, False
(C) False, True
(D) False, False
Show Answer
Hide Answer
59. Which of the following data structures are indexed structures?
(A) Linear arrays
(B) Linked lists
(C) Queue
(D) Stack
Show Answer
Hide Answer
60. The way in which the data item or items are logically related defines …..
(A) storage structure
(B) data structure
(C) data relationship
(D) data operation
Show Answer
Hide Answer
61. int[ ] ={5,6,7,8,9} What is the value of a[3]?
(A) 9
(B) 8
(C) 7
(D) 6
Show Answer
Hide Answer
62. C language has been developed by
(A) Martin Richards
(B) Bijarne Stroustrup
(C) Dennis Ritche
(D) Ken Thompson
Show Answer
Hide Answer
63. Float a[15], what is the size of array?
(A) 15
(B) 30
(C) 45
(D) 60
Show Answer
Hide Answer
64. C programs are converted into machine language with the help of
(A) An Editor
(B) A complier
(C) An operating system
(D) None of the above
Show Answer
Hide Answer
65. Which of the following is allowed in a C Arithmetic Instruction?
(A) [ ]
(B) { }
(C) ( )
(D) None of the above
Show Answer
Hide Answer
66. If a is an integer variable, a=7/3; will return a value
(A) 2.5
(B) 3
(C) 0
(D) 2
Show Answer
Hide Answer
67. Pointer holds
(A) Value of variable
(B) Address of variable
(C) Value and address of variable
(D) Always null
Show Answer
Hide Answer
68. Hierarchy decides which operator
(A) is most important
(B) is used first
(C) is fastest
(D) Operates on largest numbers
Show Answer
Hide Answer
69. main() {
int a=3, b=2, c*d*e;
d=&a; e=&b;
c=*d+*e;
}
Which one of the given answers is correct?
(A) a=4, c-6
(B) a=3, c=5
(C) a=3, c=6
(D) a=3, c=8
Show Answer
Hide Answer
70. The expression x=4+2 % -8 evaluates to
(A) -6
(B) 6
(C) 4
(D) None of the above
Show Answer
Hide Answer