1. The total cost of retrieving records in sorted order using an unclustered B+ tree is
(P-Average number of records per data page
N- Data pages
F-Ratio of the size of a data entry to the size of a data record)
1. (F*N) +P
2. (F+P) N
3. F*N*P
4. F+P/N
Solution - (2) (F+P) N
2. At a particular time of computation, the value of a counting semaphore is 7. Then 20 p operations and 'x' V operations were completed on this semaphore. If the final value of semaphore is 5. x will be
1. 15
2. 22
3. 18
4. 13
Solution - (3) 18
3. Match List I with List II
Choose the correct answer from the options given below:
1. A-I B-III C-IV D-II
2. A-IV B-III C-II D-I
3. A-I B-II C-IV D-III
4. A-IV B-II C-III D-I
Solution - (2) A-IV B-III C-II D-I
4. Match List I with List II
List I List II
A. A ∆ B I. (A – B) ∪ (A – C)
B. A – (B ∪ C) II. (A – B) ∩ (A - C)
C. A – (B ∩ C) III. (A – B) ∪ (B – A)
D. A ∩ (B – C) IV. (A ∩ B) – (A ∩ C)
Choose the correct answer from the options given below:
1. A-III B-II C-I D-IV 2. A-II B-III C-IV D-I
3. A-IV B-III C-I D-II 4. A-IV B-I C-III D-II
Solution - (1) A-III B-II C-I D-IV
5. Consider a hash table of size seven with starting index zero and a hash function (6x+3) mod 4. Assuming the hash table is initially empty. Which of the following is the content of the table when the sequence 1.3.8.10,5, is inserted into the table using closed hashing? Here "_________" denotes an empty location in the table.
1. 1,3,8,10,5,_,_
2. 3,8,1,_,10,_,5
3. _,3,8,1,_,10,5
4. _,1,3,8,10,5,_
Solution - (4) _,1,3,8,10,5,_
6. What will be the output of the following code?
#include
int main() {
int a, b, c:
a= ox10: b= o10:
c= a+b:
printf("%d". c):
return 0;
}
1. 20
2. 24
3. Garbage
4. error
Solution - (2) 24
7. Consider the following statements finite automata F1 the accepts a Language L
Let F2 be a finite automata which is obtained by reversal of F1. Then which of the following is correct?
1. L(F1) ≠ L(F2)
2. L(F1) = L(F2)
3. L(F1) ≤ L(F2)
4. L(F1) ≥ L(F2)
Solution - (2) L(F1) = L(F2)
8. Match List I with List II
Choose the correct answer from the options given below:
1. A-III B-I C-II D-III
2. A-II B-I C-III D-IV
3. A-III B-IV C-I D-II
4. A-II B-III C-IV D-I
Solution - (3) A-III B-IV C-I D-II
9. Consider the following statements
A. C-Fuzzy means clustering is a supervised method of learning
B. PCA is used for dimension reduction
C. Apriori is not a supervised technique
D. When a machine learning model becomes so specially tuned to its exact input data that it fails to generalize to other similar data it is called underfitting
Choose the correct answer from the options given below:
1. A and B
2. B and C
3. C and D
4. D and A
Solution - (2). B and C
10. What is the output of following code?
main()
struct s1
{ char * z:
int i:
struct s 1 *p:
}
static struct s1 a[ ] = {
{"Nagpur", 1. a+1}
{"Raipur", 2, a+2}
("Kanpur', 3. a)
}:
struct s1* ptr=a:
printf(%s %s %s\n". a[0].z. ptr→z. a[2]p→z):
}
1. Nagpur Raipur Kanpur
2. Nagpur Nagpur Nagpur
3. Kanpur Kanpur Kanpur
4. Error
Solution - (2) Nagpur Nagpur Nagpur
Chat With Us