Time Left - 15:00 mins

GATE CS 2022: Data Structure-4 (App update required to attempt this test)

Attempt now to get your rank among 423 students!

Question 1

Which of the following variable cannot be used by switch-case statement?

Question 2

What will be the output of the program?

Question 3

The post order traversal of binary search tree is given by 2, 7, 6, 10, 9, 8, 15, 17, 20, 19, 16, 12. The height of the tree is ________.

Question 4

With given preorder and 5 labelled nodes, number of possible binary trees are ____.

Question 5

Consider the following C function:

int gradeup(int n)
{

auto int r = 0;

if (n <=0) return 1;

if (n > 3)
{

r = n;

return gradeup(n – 2) + r;

}

return gradeup(n – 1) + r;

}

What is the value of gradeup(7)?

Question 6

Evaluate the following postfix expression?
6 7 + 9 + 11 / 6 * 8 7 + *
  • 423 attempts
  • 0 upvotes
  • 3 comments
May 16GATE & PSU CS

Posted by:

Priya UpadhyayPriya UpadhyayMember since Sep 2020
Priya Upadhyay
Share this quiz   |