GoConqr has a new look! Let us know what you think.

Quiz

ANTI BUG

kashif malhan 15 questions

Take the quiz

This quiz has a time limit, so it opens in the usual player.

Questions in this quiz (15)

  1. 1What is the use of the finally keyword?
    1. AIt used to execute at the starting of the program
    2. BIt will be executed at the end of the program even if the exception arised
    3. CIt will be executed at the middle of the program even if the exception arised
    4. DIt will be executed at the starting of the program even if the exception arised
  2. 2In Java which keyword is used to handle the exception?
    1. Atry
    2. Bhandler
    3. Ccatch
    4. Dthrow
  3. 3How many object can be created of a Class in C++?
    1. Aonly one obejct can be created
    2. Bat most 100 objects
    3. CThere is no limit
    4. Dobjects can't be created using class
  4. 4The if..else statement can be replaced by which operator?
    1. ABitwise operator
    2. BConditional operator
    3. CMultiplicative operator
    4. DAddition operator
  5. 5Which part of memory is used for the allocation of local variables declared inside any function.
    1. AHeap
    2. BAddress space
    3. CStack
    4. DDepends on compiler
  6. 6#include<iostream>
    using namespace std;

    int main()
    {

    cout<<-1-1-1;

    return 0;
    }
    1. A0
    2. B-3
    3. C6
    4. Derror
  7. 7int main()
    {
    if(0)
    {
    cout<<"Hi";
    }
    else
    {
    cout<<"Bye";
    }
    return 0;
    }
    1. ARun Time Error
    2. BBye
    3. CHiBye
    4. DHi
  8. 8 #include <iostream>
    using namespace std;
    int main()
    {
    int arr[] = {4, 5, 6, 7};
    int *p = (arr + 1);
    cout << *p;
    return 0;
    }
    1. A4567
    2. B7
    3. C45
    4. D5
  9. 9. #include <iostream>
    using namespace std;
    int main()
    {
    int n = 15;
    for ( ; ;)
    cout << n;
    return 0;
    }
    1. A15
    2. BCompile Time Error
    3. CIndefinitely
    4. DNone of the above
  10. 10What will be the final value of x in the following C code?

    #include <stdio.h>
    void main()
    {
    int x = 5 * 9 / 3 + 9;
    }
    1. A24
    2. BError
    3. CDepends on the compiler
    4. D5939

Information

Description
Quiz on ANTI BUG, created by kashif malhan on 18/02/2020.
Language
English
Views
83
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?