Exam Details
Computer Science & Information Technology (CS) 2015 [Session 3]
Review the key details, then start the test when you are ready. You can also open the full package to see related papers.
Questions
65
Duration
180 mins
Total Marks
95
Paper pattern & analysis
Available question types, difficulty and classifications for this paper.
Topic distribution
Subtopic distribution
Difficulty distribution
65questions
Medium
38
58.5%
Easy
26
40%
Hard
1
1.5%
Question type distribution
65questions
MCQ
45
69.2%
Numerical Answer Type (NAT)
20
30.8%
Full Syllabus
Practise paper questions
Choose your answer to check it. Log in to view the explanation. For a timed attempt and result, start the exam.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Extreme focus on syllabus and studying for tests has become such a dominant concern of Indian students that they close their minds to anything ________________ to the requirements of the exam.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Select the pair that best expresses a relationship similar to that expressed in the pair:
Children : Pediatrician
Children : Pediatrician
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
The Tamil version of __________ John Abraham-starrer Madras Cafe __________ cleared by the Censor Board with no cuts last week, but the film's distributors __________ no takers among the exhibitors for a release in Tamil Nadu __________ this Friday.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
If ROAD is written as URDG, then SWAN should be written as:
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
A function f(x) is linear and has a value of 29 at x = –2 and 39 at x = 3. Find its value at x = 5.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Alexander turned his attention towards India, since he had conquered Persia.
Which one of the statements below is logically valid and can be inferred from the above sentence?
Which one of the statements below is logically valid and can be inferred from the above sentence?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Most experts feel that in spite of possessing all the technical skills required to be a batsman of the highest order, he is unlikely to be so due to lack of requisite temperament. He was guilty of throwing away his wicket several times after working hard to lay a strong foundation. His critics pointed out that until he addressed this problem, success at the highest level will continue to elude him.
Which of the statement(s) below is/are logically valid and can be inferred from the above passage?
(i) He was already a successful batsman at the highest level.
(ii) He has to improve his temperament in order to become a great batsman.
(iii) He failed to make many of his good starts count.
(iv) Improving his technical skills will guarantee success.
Which of the statement(s) below is/are logically valid and can be inferred from the above passage?
(i) He was already a successful batsman at the highest level.
(ii) He has to improve his temperament in order to become a great batsman.
(iii) He failed to make many of his good starts count.
(iv) Improving his technical skills will guarantee success.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
The exports and imports (in crores of Rs.) of a country from the year 2000 to 2007 are given in the following bar chart. In which year is the combined percentage increase in imports and exports the highest?

PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Choose the most appropriate equation for the function drawn as a thick line, in the plot below.

PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
The head of a newly formed government desires to appoint five of the six selected members P, Q, R, S, T, and U to portfolios of Home, Power, Defense, Telecom, and Finance. U does not want any portfolio if S gets one of the five. R wants either Home or Finance or no portfolio. Q says that if S gets either Power or Telecom, then she must get the other one. T insists on a portfolio if P gets one.
Which is the valid distribution of portfolios?
Which is the valid distribution of portfolios?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider the following C program segment.
#include <stdio.h>
int main()
{
char s1[7] = "1234", *p;
p = s1 + 2;
*p = '0';
printf("%s", s1);
}
What will be printed by the program?
#include <stdio.h>
int main()
{
char s1[7] = "1234", *p;
p = s1 + 2;
*p = '0';
printf("%s", s1);
}
What will be printed by the program?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Suppose U is the power set of the set S = {1,2,3,4,5,6}. For any T ∈ U, let |T| denote the number of elements in T and T' denote the complement of T. For any T, R ∈ U, let T \ R be the set of all elements in T which are not in R. Which one of the following is true?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider the relation X(P,Q,R,S,T,U) with the following set of functional dependencies
F = {
{P,R} → {S,T},
{P,S,U} → {Q,R}
}
Which of the following is the trivial functional dependency in F⁺, where F⁺ is closure of F?
F = {
{P,R} → {S,T},
{P,S,U} → {Q,R}
}
Which of the following is the trivial functional dependency in F⁺, where F⁺ is closure of F?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
The maximum number of processes that can be in Ready state for a computer system with n CPUs is
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Among simple LR (SLR) , canonical LR, and look-ahead LR (LALR), which of the following pairs identify the method that is very easy to implement and the method that is the most powerful , in that order?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Let # be a binary operator defined as
X # Y = X′ + Y′ where X and Y are Boolean variables.
Consider the following two statements.
(S1) (P # Q) # R = P # (Q # R)
(S2) Q # R = R # Q
Which of the following is/are true for the Boolean variables P, Q and R?
X # Y = X′ + Y′ where X and Y are Boolean variables.
Consider the following two statements.
(S1) (P # Q) # R = P # (Q # R)
(S2) Q # R = R # Q
Which of the following is/are true for the Boolean variables P, Q and R?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider a software project with the following information domain characteristics for calculation of function point metric.
Number of external inputs (I) = 30
Number of external outputs (O) = 60
Number of external inquiries (E) = 23
Number of files (F) = 08
Number of external interfaces (N) = 02
It is given that the complexity weighting factors for I, O, E, F and N are 4, 5, 4, 10 and 7, respectively. It is also given that, out of fourteen value adjustment factors that influence the development effort, four factors are not applicable, each of the other four factors have value 3, and each of the remaining factors have value 4. The computed value of function point metric is ______________.
Number of external inputs (I) = 30
Number of external outputs (O) = 60
Number of external inquiries (E) = 23
Number of files (F) = 08
Number of external interfaces (N) = 02
It is given that the complexity weighting factors for I, O, E, F and N are 4, 5, 4, 10 and 7, respectively. It is also given that, out of fourteen value adjustment factors that influence the development effort, four factors are not applicable, each of the other four factors have value 3, and each of the remaining factors have value 4. The computed value of function point metric is ______________.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
In a web server, ten WebPages are stored with the URLs of the form http://www.yourname.com/var.html; where, var is a different number from 1 to 10 for each Webpage. Suppose, the client stores the Webpage with var = 1 (say W1) in local machine, edits and then tests. Rest of the WebPages remains on the web server. W1 contains several relative URLs of the form “var.html” referring to the other WebPages. Which one of the following statements needs to be added in W1, so that all the relative URLs in W1 refer to the appropriate WebPages on the web server?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider the following statements.
I. TCP connections are full duplex
II. TCP has no option for selective acknowledgement
III. TCP connections are message streams
I. TCP connections are full duplex
II. TCP has no option for selective acknowledgement
III. TCP connections are message streams
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider the equality \(\sum_{i=0}^{n} i^3 = X\) and the following choices for \(X\)
I. \(\Theta(n^4)\)
II. \(\Theta(n^5)\)
III. \(O(n^5)\)
IV. \(\Omega(n^3)\)
The equality above remains correct if \(X\) is replaced by
I. \(\Theta(n^4)\)
II. \(\Theta(n^5)\)
III. \(O(n^5)\)
IV. \(\Omega(n^3)\)
The equality above remains correct if \(X\) is replaced by
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider a binary tree T that has 200 leaf nodes. Then, the number of nodes in T that have exactly two children are ________.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Given a hash table T with 25 slots that stores 2000 elements, the load factor \(\alpha\) for T is ________
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
In the given matrix \(\begin{bmatrix} 1 & -1 & 2 \\ 0 & 1 & 0 \\ 1 & 2 & 1 \end{bmatrix}\), one of the eigenvalues is 1. The eigenvectors corresponding to the eigenvalue 1 are
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
The value of \(\lim_{x \to \infty} (1 + x^2)e^{-x}\) is
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
The number of 4 digit numbers having their digits in non-decreasing order (from left to right) constructed by using the digits belonging to the set {1, 2, 3} is ________.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Which one of the following fields of an IP header is NOT modified by a typical IP router?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
While inserting the elements 71, 65, 84, 69, 67, 83 in an empty binary search tree (BST) in the sequence shown, the element in the lowest level is
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
The result evaluating the postfix expression 10 5 + 60 6 / * 8 − is
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider the following relation
Cinema(theater, address, capacity)
Which of the following options will be needed at the end of the SQL query
SELECT P1.address
FROM Cinema P1
such that it always finds the addresses of theaters with maximum capacity?
Cinema(theater, address, capacity)
Which of the following options will be needed at the end of the SQL query
SELECT P1.address
FROM Cinema P1
such that it always finds the addresses of theaters with maximum capacity?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider the following array of elements.
(89, 19, 50, 17, 12, 15, 2, 5, 7, 11, 6, 9, 100)
The minimum number of interchanges needed to convert it into a max-heap is
(89, 19, 50, 17, 12, 15, 2, 5, 7, 11, 6, 9, 100)
The minimum number of interchanges needed to convert it into a max-heap is
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
SELECT operation in SQL is equivalent to
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Let L be the language represented by the regular expression Σ*0011Σ* where Σ = {0, 1}. What is the minimum number of states in a DFA that recognizes L (complement of L)?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider a software program that is artificially seeded with 100 faults. While testing this program, 159 faults are detected, out of which 75 faults are from those artificially seeded faults. Assuming that both real and seeded faults are of same nature and have same distribution, the estimated number of undetected real faults is __________.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider a machine with a byte addressable main memory of 2^20 bytes, block size of 16 bytes and a direct mapped cache having 2^12 cache lines. Let the addresses of two consecutive bytes in main memory be (E201F)_16 and (E2020)_16. What are the tag and cache line address (in hex) for main memory address (E201F)_16?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider a CSMA/CD network that transmits data at a rate of 100 Mbps (10^8 bits per second) over a 1 km (kilometer) cable with no repeaters. If the minimum frame size required for this network is 1250 bytes, what is the signal speed (km/sec) in the cable?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
The velocity v (in kilometer/minute) of a motorbike which starts from rest, is given at fixed intervals of time t (in minutes) as follows:
The approximate distance (in kilometers) rounded to two places of decimals covered in 20 minutes using Simpson's 1/3^rd rule is __________.
| t | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 |
|---|---|---|---|---|---|---|---|---|---|---|
| v | 10 | 18 | 25 | 29 | 32 | 20 | 11 | 5 | 2 | 0 |
The approximate distance (in kilometers) rounded to two places of decimals covered in 20 minutes using Simpson's 1/3^rd rule is __________.

PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Assume that a mergesort algorithm in the worst case takes 30 seconds for an input of size 64. Which of the following most closely approximates the maximum input size of a problem that can be solved in 6 minutes?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider the following recursive C function.
void get(int n)
{
if (n<1) return;
get(n-1);
get(n-3);
printf("%d", n);
}
If get(6) function is being called in main() then how many times will the get() function be invoked before returning to the main()?
void get(int n)
{
if (n<1) return;
get(n-1);
get(n-3);
printf("%d", n);
}
If get(6) function is being called in main() then how many times will the get() function be invoked before returning to the main()?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider a B+ tree in which the search key is 12 bytes long, block size is 1024 bytes, record pointer is 10 bytes long and block pointer is 8 bytes long. The maximum number of keys that can be accommodated in each non-leaf node of the tree is ______________.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Given the function $F = P' + QR$, where $F$ is a function in three Boolean variables $P, Q$ and $R$ and $P' = !P$, consider the following statements.
(S1) $F = \sum(4,5,6)$
(S2) $F = \sum(0,1,2,3,7)$
(S3) $F = \prod(4,5,6)$
(S4) $F = \prod(0,1,2,3,7)$
Which of the following is true?
(S1) $F = \sum(4,5,6)$
(S2) $F = \sum(0,1,2,3,7)$
(S3) $F = \prod(4,5,6)$
(S4) $F = \prod(0,1,2,3,7)$
Which of the following is true?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Language $L_1$ is polynomial time reducible to language $L_2$. Language $L_3$ is polynomial time reducible to $L_2$, which in turn is polynomial time reducible to language $L_4$. Which of the following is/are true?
I. if $L_4 \in P$, then $L_2 \in P$
II. if $L_1 \in P$ or $L_3 \in P$, then $L_2 \in P$
III. $L_1 \in P$, if and only if $L_3 \in P$
IV. if $L_4 \in P$, then $L_1 \in P$ and $L_3 \in P$
I. if $L_4 \in P$, then $L_2 \in P$
II. if $L_1 \in P$ or $L_3 \in P$, then $L_2 \in P$
III. $L_1 \in P$, if and only if $L_3 \in P$
IV. if $L_4 \in P$, then $L_1 \in P$ and $L_3 \in P$
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
The following C program is executed on a Linux x86-64 system.
#include <stdio.h>
int main() {
int a = 10;
int b = 20;
int c = a + b;
printf("%d", c);
return 0;
}
What is the output?
#include <stdio.h>
int main() {
int a = 10;
int b = 20;
int c = a + b;
printf("%d", c);
return 0;
}
What is the output?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Question Number : 43 Question Type : NAT
Consider the following C program.
#include<stdio.h>
int main ( )
{
static int a[ ] = {10, 20, 30, 40, 50};
static int *p[ ] = {a, a+3, a+4, a+1, a+2};
int **ptr = p;
ptr++;
printf("%d%d", ptr-p, *ptr);
}
The output of the program is ________.
Consider the following C program.
#include<stdio.h>
int main ( )
{
static int a[ ] = {10, 20, 30, 40, 50};
static int *p[ ] = {a, a+3, a+4, a+1, a+2};
int **ptr = p;
ptr++;
printf("%d%d", ptr-p, *ptr);
}
The output of the program is ________.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Question Number : 44 Question Type : MCQ
Which of the following languages are context-free?
L1 = {anbnanbm | m, n ≥ 1}
L2 = {anbnambn | m, n ≥ 1}
L3 = {anbn | m = 2n + 1 }
(A) L1 and L2 only (B) L1 and L3 only (C) L2 and L3 only (D) L3 only
Which of the following languages are context-free?
L1 = {anbnanbm | m, n ≥ 1}
L2 = {anbnambn | m, n ≥ 1}
L3 = {anbn | m = 2n + 1 }
(A) L1 and L2 only (B) L1 and L3 only (C) L2 and L3 only (D) L3 only
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Question Number : 45 Question Type : MCQ
Consider the following policies for preventing deadlock in a system with mutually exclusive resources.
I. Processes should acquire all their resources at the beginning of execution. If any resource is not available, all resources acquired so far are released
II. The resources are numbered uniquely, and processes are allowed to request for resources only in increasing resource numbers
III. The resources are numbered uniquely, and processes are allowed to request for resources only in decreasing resource numbers
IV. The resources are numbered uniquely. A process is allowed to request only for a resource with resource number larger than its currently held resources
Which of the above policies can be used for preventing deadlock?
(A) Any one of I and III but not II or IV
(B) Any one of I, III, and IV but not II
(C) Any one of II and III but not I or IV
(D) Any one of I, II, III, and IV
Consider the following policies for preventing deadlock in a system with mutually exclusive resources.
I. Processes should acquire all their resources at the beginning of execution. If any resource is not available, all resources acquired so far are released
II. The resources are numbered uniquely, and processes are allowed to request for resources only in increasing resource numbers
III. The resources are numbered uniquely, and processes are allowed to request for resources only in decreasing resource numbers
IV. The resources are numbered uniquely. A process is allowed to request only for a resource with resource number larger than its currently held resources
Which of the above policies can be used for preventing deadlock?
(A) Any one of I and III but not II or IV
(B) Any one of I, III, and IV but not II
(C) Any one of II and III but not I or IV
(D) Any one of I, II, III, and IV
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Question Number : 46 Question Type : NAT
In the network 200.10.11.144/27, the fourth octet (in decimal) of the last IP address of the network which can be assigned to a host is ________.
In the network 200.10.11.144/27, the fourth octet (in decimal) of the last IP address of the network which can be assigned to a host is ________.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider a network connecting two systems located 8000 kilometers apart. The bandwidth of the network is \(500 \times 10^6\) bits per second. The propagation speed of the media is \(4 \times 10^6\) meters per second. It is needed to design a Go-Back-N sliding window protocol for this network. The average packet size is \(10^7\) bits. The network is to be used to its full capacity. Assume that processing delays at nodes are negligible. Then, the minimum size in bits of the sequence number field has to be _____________.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider the following reservation table for a pipeline having three stages \(S_1, S_2\) and \(S_3\).
The minimum average latency (MAL) is _____________.
| 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|
| \(S_1\) | \(X\) | \(X\) | |||
| \(S_2\) | \(X\) | \(X\) | |||
| \(S_3\) | \(X\) |

PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider the following code sequence having five instructions \(I_1\) to \(I_5\). Each of these instructions has the following format.
OP Ri, Rj, Rk
where operation OP is performed on contents of registers Rj and Rk and the result is stored in register Ri.
\(I_1\): ADD R1, R2, R3
\(I_2\): MUL R7, R1, R3
\(I_3\): SUB R4, R1, R5
\(I_4\): ADD R3, R2, R4
\(I_5\): MUL R7, R8, R9
Consider the following three statements.
S1: There is an anti-dependence between instructions \(I_2\) and \(I_5\).
S2: There is an anti-dependence between instructions \(I_2\) and \(I_4\).
S3: Within an instruction pipeline an anti-dependence always creates one or more stalls.
Which one of above statements is/are correct?
OP Ri, Rj, Rk
where operation OP is performed on contents of registers Rj and Rk and the result is stored in register Ri.
\(I_1\): ADD R1, R2, R3
\(I_2\): MUL R7, R1, R3
\(I_3\): SUB R4, R1, R5
\(I_4\): ADD R3, R2, R4
\(I_5\): MUL R7, R8, R9
Consider the following three statements.
S1: There is an anti-dependence between instructions \(I_2\) and \(I_5\).
S2: There is an anti-dependence between instructions \(I_2\) and \(I_4\).
S3: Within an instruction pipeline an anti-dependence always creates one or more stalls.
Which one of above statements is/are correct?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider the NPDA \(Q = \{q_0, q_1, q_2\}\), \(\Sigma = \{0, 1\}\), \(\Gamma = \{0, 1, \perp\}\), \(\delta\), \(q_0\), \(\perp\), \(F = \{q_2\}\), where (as per usual convention) Q is the set of states, \(\Sigma\) is the input alphabet, \(\Gamma\) is the stack alphabet, \(\delta\) is the state transition function, \(q_0\) is the initial state, \(\perp\) is the initial stack symbol, and F is the set of accepting states. The state transition is as follows:
Which one of the following sequences must follow the string 101100 so that the overall string is accepted by the automaton?
Which one of the following sequences must follow the string 101100 so that the overall string is accepted by the automaton?

PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider the following two C code segments. Y and X are one and two dimensional arrays of size n and n × n respectively, where 2 ≤ n ≤ 10. Assume that in both code segments, elements of Y are initialized to 0 and each element X[i][j] of array X is initialized to i+j. Further assume that when stored in main memory all elements of X are in same main memory page frame.
Code segment 1:
//initialize elements of Y to 0
//initialize elements X[i][j] of X to i+j
for (i = 0; i Y[i] += X[0][i];
Code Segment 2:
//initialize elements of Y to 0
//initialize elements X[i][j] of X to i+j
for (i = 0; i Y[i] += X[i][0];
Which of the following statements is/are correct?
S1: Final contents of array Y will be same in both code segments
S2: Elements of array X accessed inside the for loop shown in code segment 1 are contiguous in main memory
S3: Elements of array X accessed inside the for loop shown in code segment 2 are contiguous in main memory
Code segment 1:
//initialize elements of Y to 0
//initialize elements X[i][j] of X to i+j
for (i = 0; i Y[i] += X[0][i];
Code Segment 2:
//initialize elements of Y to 0
//initialize elements X[i][j] of X to i+j
for (i = 0; i Y[i] += X[i][0];
Which of the following statements is/are correct?
S1: Final contents of array Y will be same in both code segments
S2: Elements of array X accessed inside the for loop shown in code segment 1 are contiguous in main memory
S3: Elements of array X accessed inside the for loop shown in code segment 2 are contiguous in main memory
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider the following partial Schedule S involving two transactions T1 and T2. Only the read and the write operations have been shown. The read operation on data item P is denoted by read(P) and the write operation on data item P is denoted by write(P).
Schedule S
Suppose that the transaction T1 fails immediately after time instance 9. Which one of the following statements is correct?
| Time instance | Transaction-id | |
|---|---|---|
| T1 | T2 | |
| 1 | read(A) | |
| 2 | write(A) | |
| 3 | read(C) | |
| 4 | write(C) | |
| 5 | read(B) | |
| 6 | write(B) | |
| 7 | read(A) | |
| 8 | commit | |
| 9 | read(B) | |
Schedule S
Suppose that the transaction T1 fails immediately after time instance 9. Which one of the following statements is correct?

PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
If the following system has non-trivial solution,
\[ px + qy + rz = 0 \]
\[ qx + ry + pz = 0 \]
\[ rx + py + qz = 0, \]
then which one of the following options is TRUE?
\[ px + qy + rz = 0 \]
\[ qx + ry + pz = 0 \]
\[ rx + py + qz = 0, \]
then which one of the following options is TRUE?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
If for non-zero \( x \), \( af(x) + bf\left(\frac{1}{x}\right) = \frac{1}{x} - 25 \) where \( a \neq b \) then \( \int\limits_1^2 f(x)dx \) is
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Let \( G \) be a connected undirected graph of 100 vertices and 300 edges. The weight of a minimum spanning tree of \( G \) is 500. When the weight of each edge of \( G \) is increased by five, the weight of a minimum spanning tree becomes ________.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Two hosts are connected via a packet switch with \( 10^7 \) bits per second links. Each link has a propagation delay of 20 microseconds. The switch begins forwarding a packet 35 microseconds after it receives the same. If 10000 bits of data are to be transmitted between the two hosts using a packet size of 5000 bits, the time elapsed between the transmission of the first bit of data and the reception of the last bit of the data in microseconds is ________.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
For the processes listed in the following table, which of the following scheduling schemes will give the lowest average turnaround time?
| Process | Arrival Time | Processing Time |
|---|---|---|
| A | 0 | 3 |
| B | 1 | 6 |
| C | 4 | 4 |
| D | 6 | 2 |

PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider three software items: Program-X, Control Flow Diagram of Program-Y and Control Flow Diagram of Program-Z as shown below
Program-X:
sumcal (int maxint, int value)
{
int result=0, i=0;
if (value <0)
{
value = -value;
}
while((i<value) AND (result <= maxint))
{
i=i+1;
result = result + 1;
}
if(result <= maxint)
{
printf(result);
}
else
{
printf("large");
}
printf("end of program");
}
Control Flow Diagram of Program-Y:
[Image of control flow diagram]
Control Flow Diagram of Program-Z:
[Image showing Control Flow Diagram of Program-X and Control Flow Diagram of Program-Y in sequence]
The values of McCabe's Cyclomatic complexity of Program-X, Program-Y, and Program-Z respectively are
Program-X:
sumcal (int maxint, int value)
{
int result=0, i=0;
if (value <0)
{
value = -value;
}
while((i<value) AND (result <= maxint))
{
i=i+1;
result = result + 1;
}
if(result <= maxint)
{
printf(result);
}
else
{
printf("large");
}
printf("end of program");
}
Control Flow Diagram of Program-Y:
[Image of control flow diagram]
Control Flow Diagram of Program-Z:
[Image showing Control Flow Diagram of Program-X and Control Flow Diagram of Program-Y in sequence]
The values of McCabe's Cyclomatic complexity of Program-X, Program-Y, and Program-Z respectively are

PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider the equation (43)_x = (y3)_8 where x and y are unknown. The number of possible solutions is __________.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Let R be a relation on the set of ordered pairs of positive integers such that ((p,q),(r,s)) ∈ R if and only if p-s = q-r. Which one of the following is true about R?
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Suppose X_i for i = 1,2,3 are independent and identically distributed random variables whose probability mass functions are Pr[X_i = 0] = Pr[X_i = 1] = 1/2 for i = 1,2,3. Define another random variable Y = X_1 X_2 ⊕ X_3, where ⊕ denotes XOR. Then Pr[Y = 0 | X_3 = 0] = __________.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
The total number of prime implicants of the function f(w,x,y,z) = Σ(0,2,4,5,6,10) is __________.
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
What is the output of the following C code? Assume that the address of x is 2000 (in decimal) and an integer requires four bytes of memory.
```c
int main () {
unsigned int x[4][3] = {{1,2,3},{4,5,6},{7,8,9},{10,11,12}};
printf("%u, %u, %u", x+3, *(x+3), *(x+2)+3);
}
```
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Let \(f(n) = n\) and \(g(n) = n^{(1+\sin n)}\), where \(n\) is a positive integer. Which of the following statements is/are correct?
I. \(f(n) = O(g(n))\)
II. \(f(n) = \Omega(g(n))\)
(A) Only I
(B) Only II
(C) Both I and II
(D) Neither I nor II
I. \(f(n) = O(g(n))\)
II. \(f(n) = \Omega(g(n))\)
(A) Only I
(B) Only II
(C) Both I and II
(D) Neither I nor II
PYP
Computer Science & Information Technology (CS) 2015 [Session 3]
Consider the following grammar \(G\)
\(S \rightarrow F \mid H\)
\(F \rightarrow p \mid c\)
\(H \rightarrow d \mid c\)
where \(S, F,\) and \(H\) are non-terminal symbols, \(p, d,\) and \(c\) are terminal symbols. Which of the following statement(s) is/are correct?
S1. LL(1) can parse all strings that are generated using grammar \(G\)
S2. LR(1) can parse all strings that are generated using grammar \(G\)
(A) Only S1 (B) Only S2 (C) Both S1 and S2 (D) Neither S1 nor S2
\(S \rightarrow F \mid H\)
\(F \rightarrow p \mid c\)
\(H \rightarrow d \mid c\)
where \(S, F,\) and \(H\) are non-terminal symbols, \(p, d,\) and \(c\) are terminal symbols. Which of the following statement(s) is/are correct?
S1. LL(1) can parse all strings that are generated using grammar \(G\)
S2. LR(1) can parse all strings that are generated using grammar \(G\)
(A) Only S1 (B) Only S2 (C) Both S1 and S2 (D) Neither S1 nor S2
Showing 5 of 65 questions