PGDCA Second Semester Exam: Quiz!

100 Questions | Total Attempts: 227

SettingsSettingsSettings
PGDCA Second Semester Exam: Quiz!

Do you know what PGDCA stands for? It means Post Graduate Diploma in Computer Applications. This program permits students to seek answers to any questions they may have in computer applications. It is a one-year program that teaches students about computer science. It is a course designed to motivate students to learn about the evolution and development of computer applications. This quiz will assist any student on their journey to becoming more adept with computers.


Questions and Answers
  • 1. 
    Which of the following is/are storage class?
    • A. 

      Automatic

    • B. 

      Static

    • C. 

      Allocated

    • D. 

      All

  • 2. 
    What will the output of following code {      int x = 10, y = 15;      x = x++;      y = ++y;                 printf(“%d, %d \n”, x, y); }
    • A. 

      10, 15

    • B. 

      10, 16

    • C. 

      11, 16

    • D. 

      11, 15

  • 3. 
    NULL Pointer can be used as:
    • A. 

      To stop indirection in a recursive data structure

    • B. 

      As an error value

    • C. 

      As a sentinel Value

    • D. 

      All

  • 4. 
    Which one of the following is not the advantages of functions?
    • A. 

      Debugging is easier

    • B. 

      Testing is easier

    • C. 

      Recursive call is possible

    • D. 

      It consumes low disk space

  • 5. 
    What is the result of the following statement?     X = 10;     y = ++x;
    • A. 

      X = 10, y = 10

    • B. 

      X = 10, y = 11

    • C. 

      X = 11, y = 10

    • D. 

      X = 11, y = 11

  • 6. 
    Which of the following statement creates infinite loop?
    • A. 

      For ( ; ; )

    • B. 

      While ( ; ; )

    • C. 

      When ( ; ; )

    • D. 

      If( ; ; )

  • 7. 
    To use the function tolower(), which of the following header file should include
    • A. 

      String.h

    • B. 

      Conio.h

    • C. 

      Ctype.h

    • D. 

      Don’t need any header file

  • 8. 
    What is the function overloading?
    • A. 

      Calling a function from another function

    • B. 

      Having more than one functions of same name

    • C. 

      Calling a function from itself

    • D. 

      There is no such term in C/C++

  • 9. 
    By default, members of a C++ class are
    • A. 

      Private

    • B. 

      Public

    • C. 

      Protected

    • D. 

      None

  • 10. 
    Which of the following statements is true in C++?
    • A. 

      A struct cannot have member functions

    • B. 

      A struct cannot have private members

    • C. 

      The default access modifier of struct is public

    • D. 

      None

  • 11. 
    C++ supports
    • A. 

      Multiple inheritance

    • B. 

      Pointer to functions

    • C. 

      Recursion

    • D. 

      All

  • 12. 
    Which of the following is not a C++ keyword?
    • A. 

      Extern

    • B. 

      Auto

    • C. 

      Inherits

    • D. 

      None

  • 13. 
    Which of the following is not a bitwise operator?
    • A. 

      & &

    • B. 

      <

    • C. 

      ~

    • D. 

      ^

  • 14. 
    In C++, the expression 5/2 is evaluated to
    • A. 

      2.5

    • B. 

      2

    • C. 

      3

    • D. 

      None

  • 15. 
    C++ was originally developed by
    • A. 

      Nicolas Wirth

    • B. 

      Donald Knuth

    • C. 

      Bjarne Stroustrup

    • D. 

      Ken Thompson

  • 16. 
    The standard C++ comment
    • A. 

      /

    • B. 

      //

    • C. 

      /* and */

    • D. 

      None of these

  • 17. 
    The operator << is called
    • A. 

      An insertion operator

    • B. 

      Put to operator

    • C. 

      Either a or b

    • D. 

      None of these

  • 18. 
    What is a reference?
    • A. 

      An operator

    • B. 

      A reference is an alias for an object

    • C. 

      Used to rename an object

    • D. 

      None of these

  • 19. 
    A constructor is called whenever
    • A. 

      A object is declared

    • B. 

      An object is used

    • C. 

      A class is declared

    • D. 

      A class is used

  • 20. 
    Overload function in C++
    • A. 

      A group function with the same name

    • B. 

      All have the same number and type of arguments

    • C. 

      Functions with same name and same number and type of arguments

    • D. 

      All

  • 21. 
    Operator overloading is 
    • A. 

      Making C++ operators works with objects

    • B. 

      Giving new meaning to existing C++ operators

    • C. 

      Making new C++ operator

    • D. 

      Making C++ operators works with objects and giving new meaning to existing C++ operators

  • 22. 
    A constructor is called whenever
    • A. 

      A object is declared

    • B. 

      An object is used

    • C. 

      A class is declared

    • D. 

      A class is used

  • 23. 
    A class having no name
    • A. 

      Is not allowed

    • B. 

      Can’t have a constructor

    • C. 

      Can’t have a destructor

    • D. 

      Can’t be passed as an argument

  • 24. 
    The differences between constructors and destructor are
    • A. 

      Constructors can take arguments but destructor can’t

    • B. 

      Constructors can be overloaded but destructors can’t be overloaded

    • C. 

      Both

    • D. 

      None of these

  • 25. 
    A destructor takes
    • A. 

      One argument

    • B. 

      Two arguments

    • C. 

      Three arguments

    • D. 

      Zero arguments

Related Topics
Back to Top Back to top