Questions 321–330 of 975. Imported answers require independent review unless marked reviewed.

Topic practice 975 questionsPage 33 of 98

Question 31

Open question
CS1MSQ1 markNeeds review
Which of the following fields is/are modified in the IP header of a packet going out of a network address translation (NAT) device from an internal network to an external network?
Your answerSelect all correct options. You can choose more than one.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 31

Open question
CSMSQ1 markNeeds review
An instruction format has the following structure:
Instruction Number: Opcode destination reg, source reg-1, source reg-2
Consider the following sequence of instructions to be executed in a pipelined processor:
I1: DIV R3, R1, R2
I2: SUB R5, R3, R4
I3: ADD R3, R5, R6
I4: MUL R7, R3, R8
Which of the following statements is/are TRUE?
Your answerSelect all correct options. You can choose more than one.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 32

Open question
CS1NAT1 markNeeds review
Let

and

be non-empty finite sets such that there exist one-to-one and onto functions (i) from

to

and (ii) from

to

. The number of possible values of

is __________

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 32

Open question
CSMSQ1 markNeeds review
Which of the following fields of an IP header is/are always modified by any router before it forwards the IP packet?
Your answerSelect all correct options. You can choose more than one.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 33

Open question
CS1NAT1 markNeeds review
Consider the operator precedence and associativity rules for the integer arithmetic operators given in the table below.
Operator
Precedence
Associativity
+
Highest
Left
−
High
Right
*
Medium
Right
/
Low
Right
The value of the expression

as per the above rules is __________

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 33

Open question
CSMSQ1 markNeeds review
Consider the following C function definition:
int fX(char *a){
char *b = a;
while(*b)
b++;
return b - a;
}
Which of the following statements is/are TRUE?
Your answerSelect all correct options. You can choose more than one.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 34

Open question
CS1NAT1 markNeeds review
The number of spanning trees in a complete graph of 4 vertices labelled A, B, C, and D is __________

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 34

Open question
CSNAT1 markNeeds review
Let

be the partial order defined on the set

as follows

The number of total orders on

that contain

is ________

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 35

Open question
CS1NAT1 markNeeds review
Consider the following two relations, R(A,B) and S(A,C):
R(A,B):
A
B
10
20
20
30
30
40
30
50
50
95
S(A,C):
A
C
10
90
30
45
40
80
The total number of tuples obtained by evaluating the following expression

is __________

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

Question 35

Open question
CSNAT1 markNeeds review
Let

be an array containing integer values. The distance of

is defined as the minimum number of elements in

that must be replaced with another integer so that the resulting array is sorted in non-decreasing order. The distance of the array

is ________

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer