59. Which layer of the TCP/IP hierarchy decides which application should receive
ID: 671014 • Letter: 5
Question
59. Which layer of the TCP/IP hierarchy decides which application should receive an incoming message?
A. Application B. Transport C. Network D. Link
60. Which layer of the TCP/IP hierarchy presents incoming messages to the computer user?
A. Application B. Transport C. Network D. Link
61. Which layer of the TCP/IP hierarchy reassembles messages as their pieces arrive at the destination?
A. Application B. Transport C. Network D. Link
62. Which layer of the TCP/IP hierarchy is responsible for obtaining the correct address for a message’s destination?
A. Application B. Transport C. Network D. Link
63. Which of the following identifies the application to which a message arriving from the Internet should be given?
A. Protocol B. Port number C. Domain D. Hop count
64. Which standards organization produced the OSI reference model for internet communication?
A. ANSI B. IEEE C. ISO
65. Which of the following is an Internet application that is named after its underlying protocol?
A. Email B. UDP C. FTP D. World Wide Web
66. Which of the following is not a means of implementing server-side activities?
A. CGI B. JSP C. ASP D. Javascript
67. Which of the following is not a protocol used in the basic TCP/IP software hierarchy?
A. POP3 B. UDP C. TCP D. IP
68. Which generation of wireless network technology uses the packet-switched IP network?
A. 3G B. 4G C. 5G D. All of the above
69. Which of the following provides large scale streaming services?
A. CGI B. ICANN C. CDN D. PAN
70. Which of the following is not an email related protocol?
A. HTTP B. POP3 C. IMAP D. SMTP
71. Which of the following is an activity?
A. Algorithm B. Program C. Process
72. Which of the following is a representation?
A. Algorithm B. Program C. Process
73. Which of the following set of instructions defines an algorithm in the formal, strict sense?
A. X = 3 B. X = 3 C. X = 3
while (X < 5): while (X < 5): while (X < 5):
X = X X = X + 1 X = X - 1
74. Which of the following is not a means of repeating a block of instructions?
A. Pretest loop B. Posttest loop C. Recursion D. Assignment statement
75. When searching within the list
Lewis, Maurice, Nathan, Oliver, Pat, Quincy, Roger, Stan, Tom
which of the following entries will be found most quickly using the sequential search algorithm?
A. Lewis B. Pat C. Tom
76. When searching within the list
Lewis, Maurice, Nathan, Oliver, Pat, Quincy, Roger, Stan, Tom
which of the following entries will be found most quickly using the binary search algorithm?
A. Lewis B. Pat C. Tom
77. Which of the following lists would not be obtained at some point when applying the insertion sort algorithm to the list below?
Sylvia
Nancy
Lois
Alice
A. Nancy B. Alice C. Alice D. Lois
Sylvia Lois Sylvia Nancy
Lois Nancy Nancy Sylvia
Alice Sylvia Lois Alice
78. In general, an algorithm in which of the following categories is considered more efficient?
A. Q(log2n) B. Q(n) C. Q(n log2n) D. Q( n2 )
79. The insertion sort algorithm is an example of an algorithm in which of the following classes?
A. Q(log2n) B. Q(n) C. Q(n log2n) D. Q( n2 )
80. The binary search algorithm is an example of an algorithm in which of the following classes?
A. Q(log2n) B. Q(n) C. Q(n log2n) D. Q( n2 )
81. Under the assumption that X takes on only integer values, which of the following is the termination condition for the following loop?
while (X < 5):
. . .
A. X < 5 B. X > 4 C. X < 4
82. Under the assumption that X takes on only integer values, which of the following is the termination condition for the following loop?
repeat:
. . .
until (X < 5)
A. X < 5 B. X > 4 C. X > 5
83. Under the assumption that N takes on only integer values, which of the following is the termination condition in the following recursive function?
def xxx(N):
if (N < 5):
xxx(N + 1)
else:
print(N)
A. N < 5 B. N > 4 C. N < 4
84. Under the assumption that N takes on only integer values, which of the following is the termination condition in the following recursive function?
def xxx(N):
if (N < 5):
print(N)
else:
xxx(N - 1)
A. N < 5 B. N > 4 C. N > 5
85. Which of the following is a loop invariant at the point at which the test for termination is performed in the following loop structure?
X = 3
while (X < 5):
X = X + 2
A. X > 5 B. X < 5 C. X ³ 5 D. X £ 5
86. Which of the following is a loop invariant at the point at which the test for termination is performed in the following loop structure?
X = 3
repeat:
X = X + 2
until (X > 5)
A. X > 5 B. X < 8 C. X ³ 5 D. X £ 6
87. Which of the following is the base case in the recursive function below?
def xxx(N):
if (N == 0):
print(N)
else:
xxx(N - 1)
A. N > 0 B. N = 0 C. N < 0
88. Preconditions, postconditions, and loop invariants are examples of which of the following?
A. Pseudocode B. Iterative structures C. Assertions D. Recursion
89. Which of the following does not print the same sequence of numbers as the others?
A. X = 5 B. X = 4 C. X = 5
while (X < 6): while (X < 5): repeat:
print(X) X = X + 1 print( X)
X = X + 1 print(X) X = X + 1
until (X > 6)
90. Which of the following is not a way of representing algorithms?
A. Stepwise refinement B. Pseudocode C. Flowchart D. Programming language
91. Which of the following is an example of a language that is based on the functional paradigm?
A. LISP B. PROLOG C. C D. C++
92. Which of the following is an example of a language that is based on the object-oriented paradigm?
A. LISP B. PROLOG C. C D. C++
93. Most machine languages are based on the
A. Imperative paradigm B. Declarative paradigm
C. Functional paradigm D. Object-oriented paradigm
94. Which of the following is not a type of statement found in a typical high-level imperative programming language?
A. Imperative statement B. Exclamatory statement
C. Declarative statement D. Comment statement
95. Which of the following does not require a Boolean condition?
A. If- else statement B. While statement
C. Assignment statement D. For loop statement
96. Which of the following is not a control statement?
A. If- else statement B. While statement
C. Assignment statement D. For statement
97. Which of the following is not a loop?
A. If -else statement B. While statement
C. Repeat statement D. For statement
98. Which of the following is not a step in the process of translating a program?
A. Executing the program B. Parsing the program
C. Lexical analysis D. Code generation
99. Which of the following is not associated with object-oriented programming?
A. Inheritance B. Resolution C. Encapsulation D. Polymorphism
100. Which of the following is not associated with the concept of data type?
A. Coercion B. Boolean C. Operator precedence D. Strongly typed language
101. Positions within arrays are identified by means of numbers called
A. Indices B. Parameters C. Instance variables D. Constants
102. Which of the following is ignored by a compiler?
A. Control statements B. Declarations of constants
C. Function headers D. Comment statements
103. Which of the following is not a possible value of the expression 4 + 6 / 2 - 1
A. 4 B. 5 C. 6 D. 10
104. Which of the following is not a way of referring to a value in a program?
A. Variable B. Literal C. Constant D. Type
105. Which of the following is the scope of a variable?
A. The number of characters in the variable’s name
B. The portion of the program in which the variable can be accessed
C. The type associated with the variable
D. The structure associated with the variable
106. Which of the following is a means of nullifying conflicts among data types?
A. Inheritance B. Parsing C. Coercion D. Code optimization
107. Which of the following is not constructed by a typical compiler?
A. Source code B. Symbol table C. Parse tree D. Object program
108. Which of the following is a means of defining similar yet different classes in an object-oriented program?
A. Inheritance B. Parsing C. Coercion D. Code optimization
109. Which of the following is not a parse tree of an expression based on the following grammar?
A. B. C.
110. Which of the following statements is not a resolvent of the following clauses?
P OR Q OR ØR ØP OR T ØQ OR T R OR T
A. Q OR ØR OR T B. T OR P C. P OR ØR OR T D. Q OR T
111. Which of the following can Prolog conclude from the following program?
parent(jill, sue).
parent(jill, sally).
parent(john, sue).
parent(john, sally).
sibling(X, Y) :- parent(Z, X), parent(Z, Y).
A. parent(jill, john) B. sister(sue, sally)
C. sibling(sue, sally) D. sibling(jill, sue)
Explanation / Answer
59)A
60)A
61)B
62)A
63)B
64)C
65)C
66)APPLETS
67)A
68)D
69)
70)A
71)C
72)B
73)B
74)D
75)A
76)B
77)C
78)B
79)D
80)A
81)B
82)A
83)B
84)A
85)D
86)B
87)B
88)C
89)C
90)A
91)A
92)D
93)A
94)B
95)C
96)C
97)C
98)A
99)B
100)C
101)A
102)D
103)B
104)D
105)B
106)C
107)A
108)A
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.