Top and Bottom Elements of a Stack and Miscellaneous CS Concepts

Company: Ukg_5sep

Difficulty: medium

Problem Statement

Question 1

In the following postfix expression, what are the values of the top and bottom of the stack before the second '*' operation is performed? 632*/321*-+

Question 2

You are given an array arr[], which contains N integers. A valid pair is any two indices i and j where i < j and a[i] - a[j] = j - i. Which of the following data structures is best suited to count the number of valid pairs efficiently?

Question 3

An inversion in an array 'a' is a distinct pair of indices (i, j) where i a[j]. How many inversions are in a = {5, 7, 9, 2, 3, 12, 8, 4}?

Question 4

What is the result of the SQL statement: SELECT ROUND(45.926, -2) FROM DUAL;

Question 5

Which expression regarding MySQL Joins is not correct?

Question 6

Which of the following SQL statement(s) are NOT correct regarding the DELETE and TRUNCATE commands?

Question 7

Select the statement regarding MySQL CHECK constraints that is not correct.