Technical Questions asked in Myntra

  1. What will be output of following program?
    #include
    1. 2 2
    2. 4 4
    3. 4 2
    4. 2 4
    Answer: Option B
  1. What will be output of following program?
    #include
    1. 25
    2. Address
    3. 0
    4. Compilation error
    Answer: Option D
  2. Mitti wants to find the largest number in a given 20 numbers. Which of the following is an efficient approach to do this?
    1. Use bubble sort to sort the list in descending order and then print the first number of the series.
    2. Use selection sort to sort the list in descending order and then print the first number of the series
    3. Implement one iteration of selection sort for descending order and print the first number in the series.
    4. None of these
    Answer: Option C
  3. What will be output of following program?
    #include
    1. 4
    2. 89
    3. 3
    4. -200

    Answer: Option A
  4. Which of the following is function of relational operator?
    1. It assigns one operand to another.
    2. It compares two operands
    3. It logically combines two operands
    4. None of these
    Answer: Option B
  5. Follow the code snippet and chose the correct statement(s)
    Int x;
    void f2()
    {
    Int x=1; // line1
    ::x=2; // line2
    x=2; //line3
    }
    1. The statement in line1 throws a compilation error
    2. In line2,x=2 is assigned to the global x
    3. In line3,x=2 is assigned to the global x and line2 throws compilation error
    4. Both A and B

    Answer: Option B
Views:8248