Part 1
Part 1
Part 1 of 4: There are 25 MCQ questions in this part. Answer all the questions.
0.5
0 .75
0.9
0 .25
Which of the following is true for X, Y, and Z for the Java statement "public class
G<A extends X & Y & Z>" regarding generics?
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSdB1aWJC9r_YLYCohDnXVgArDw6IYXD_nKaOwQClSwvgIsDew/formResponse 1/13
6/24/2021 BUET CSE MSc Admission Test, April 2021 Part 1 of 4
In the below code snippet, what is the value of x right before the return
statement?
10
11
Clear selection
39 bits
104 bits
33 bits
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSdB1aWJC9r_YLYCohDnXVgArDw6IYXD_nKaOwQClSwvgIsDew/formResponse 2/13
6/24/2021 BUET CSE MSc Admission Test, April 2021 Part 1 of 4
25,14,16,13,10,8,12
25,14,13,16,10,8,12
25,12,16,13,10,8,14
25,13,16,14,8,10,12
Clear selection
In how many ways Rafiq can select nine story books from a pool of 12 books
where three are fictions, three are novels, three are comics and three are
thrillers?
20
224
24
220
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSdB1aWJC9r_YLYCohDnXVgArDw6IYXD_nKaOwQClSwvgIsDew/formResponse 3/13
6/24/2021 BUET CSE MSc Admission Test, April 2021 Part 1 of 4
A class called “X” has the following operator overloading functions: 1) X operator*
(X temp); 2) X operator*(int num); 3) X operator+(X temp); Let, ob1, ob2 and ob3
are three objects of “X”. Now which of the following statements will compile
correctly for the given set of operator functions?
You are given the following complete binary tree. The children of the node with
index k are in 2k and 2k + 1. You store the node in an array by traversing the nodes
using breadth-first tree. If the index of the array starts from 1, what will be the
index of children of node 5.
2, 3
6, 7
8, 9
4, 5
https://docs.google.com/forms/d/e/1FAIpQLSdB1aWJC9r_YLYCohDnXVgArDw6IYXD_nKaOwQClSwvgIsDew/formResponse 4/13
6/24/2021 BUET CSE MSc Admission Test, April 2021 Part 1 of 4
You are performing a depth-first traversal in a graph, where for a vertex v, d[v] is
the discovery time, and f[v] is the finishing time. Now, which of the following
statement is false.
Rashida wanted to invite her friends to her birthday and she was born in April. In
a leap year she started sending invitation from February 16 and completed by
March 15. At least one invitation was sent each day but no more than 50
invitations in total. Therefore, there has been a specific consecutive of days
where exactly N invitations had to be sent. What is the value of N?
29
Let p be a pointer to float that is pointing to the first element of an array of floats.
Let the value of p be 0x002a32e4. What is the value of &p[5] ?
0x002a32e9
0x002a3304
0x002a32f8
https://docs.google.com/forms/d/e/1FAIpQLSdB1aWJC9r_YLYCohDnXVgArDw6IYXD_nKaOwQClSwvgIsDew/formResponse 5/13
6/24/2021 BUET CSE MSc Admission Test, April 2021 Part 1 of 4
https://docs.google.com/forms/d/e/1FAIpQLSdB1aWJC9r_YLYCohDnXVgArDw6IYXD_nKaOwQClSwvgIsDew/formResponse 6/13
6/24/2021 BUET CSE MSc Admission Test, April 2021 Part 1 of 4
Considering the following definition of the function, named “bitwise”, what will
be returned when we call bitwise(2147483649)?
2147483647
4294967295
2147483649
https://docs.google.com/forms/d/e/1FAIpQLSdB1aWJC9r_YLYCohDnXVgArDw6IYXD_nKaOwQClSwvgIsDew/formResponse 7/13
6/24/2021 BUET CSE MSc Admission Test, April 2021 Part 1 of 4
(i), (ii), (iii) are binary trees, whereas, (iv) is not a binary tree
7875
5250
4375
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLSdB1aWJC9r_YLYCohDnXVgArDw6IYXD_nKaOwQClSwvgIsDew/formResponse 8/13
6/24/2021 BUET CSE MSc Admission Test, April 2021 Part 1 of 4
If there is chance of rain or the raincoat is missing then Pathao driver Shafiq will
not go for the service. If the sun is shining more there is no chance for rain.
Today there is sunshine and Shafiq is wearing raincoat. Which is correct?
”Shafiq is not going out for the service” -is an invalid statement.
Which of the following statements can fix the compiler error in the following
Java code?
https://docs.google.com/forms/d/e/1FAIpQLSdB1aWJC9r_YLYCohDnXVgArDw6IYXD_nKaOwQClSwvgIsDew/formResponse 9/13
6/24/2021 BUET CSE MSc Admission Test, April 2021 Part 1 of 4
O(n^2.64)
O(n^2.81)
O(n logn)
https://docs.google.com/forms/d/e/1FAIpQLSdB1aWJC9r_YLYCohDnXVgArDw6IYXD_nKaOwQClSwvgIsDew/formResponse 10/13
6/24/2021 BUET CSE MSc Admission Test, April 2021 Part 1 of 4
y = 35, z = 35
y = 25, z = 35
y = 25, z = 70
y = 35, z = 70
https://docs.google.com/forms/d/e/1FAIpQLSdB1aWJC9r_YLYCohDnXVgArDw6IYXD_nKaOwQClSwvgIsDew/formResponse 11/13
6/24/2021 BUET CSE MSc Admission Test, April 2021 Part 1 of 4
Which one of the following option is a valid C++ constructor for class B?
In the below code snippet, assume that the layout of structure does not have any
padding, i.e. you can calculate its size by summing over the size of its fields. If a
variable of type S is passed to a function, how much data will be copied? Recall
that arrays are passed using call by reference convention.
12
40
36
16
https://docs.google.com/forms/d/e/1FAIpQLSdB1aWJC9r_YLYCohDnXVgArDw6IYXD_nKaOwQClSwvgIsDew/formResponse 12/13
6/24/2021 BUET CSE MSc Admission Test, April 2021 Part 1 of 4
n<logn
n! < n^100
Clear selection
Clear selection
Page 3 of 3
Back Submit
This form was created inside of Department of Computer Science and Engineering, BUET. Report Abuse
Forms
https://docs.google.com/forms/d/e/1FAIpQLSdB1aWJC9r_YLYCohDnXVgArDw6IYXD_nKaOwQClSwvgIsDew/formResponse 13/13