Time Left - 09:00 mins
ISRO Quiz-3
Attempt now to get your rank among 222 students!
Question 1
Consider the following statements
Statement 1- In Dijkstra algorithm, number of relaxations is always less than number of the edges.
Statement 2- number of distinct spanning trees depends on the edge’s weight in the tree.
Statement 3- For any connected undirected edge weight graph, shortest path between any two vertices may or may not be always unique.
Number of statements that are correct
Question 2
Which languages necessarily need heap allocation in the runtime environment?
Question 3
Suppose CRC generator polynomial is x3+x2+1 and data that user wants to send is 1011011. Then extra bits that needed to append is
Question 4
A CPU has 24-bit instructions. A program starts at address 300 (in decimal). Which one of the following is a legal program counter (all values in decimal)?
Question 5
What will be the output of given C code?
main()
{
int i=1;
printf("%d%d%d",i,++i,i++);
}
Question 6
What will be the output printed by the following C program?
void main ( )
{
int x = 1, i, y = 2;
for (i = 0; i < 5; i++)
{
x << 1;
y = x + i;
}
printf(“%d, %d”, x, y);
}
Question 7
Calculate the order of leaf (pleaf) and non leaf (p) nodes of a B+tree based on the information given below
Search key field = 12 bytes
Record pointer =10 bytes
Block pointer = 8 bytes
Block size = 1 KB
Search key field = 12 bytes
Record pointer =10 bytes
Block pointer = 8 bytes
Block size = 1 KB
Question 8
The order of a leaf node in a B+ tree is the maximum number of (value, data record pointer) pairs it can hold. Given that the block size is 1K bytes, data record pointer is 7 bytes long, the value field is 9 bytes long and a block pointer is 6 bytes long, what is the order of the leaf node?
- 222 attempts
- 2 upvotes
- 2 comments
Tags :
GATE & PSU CSGeneralJul 3GATE & PSU CS