PGDCA Second Semester Exam

100 Questions

Settings
Online Exam Quizzes & Trivia

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

  • 26. 
    Constructors are used to
    • A. 

      Initialize the objects

    • B. 

      Construct the data members

    • C. 

      Both

    • D. 

      None of These

  • 27. 
    In C++ a function contained within a class is called
    • A. 

      A member function

    • B. 

      An operator

    • C. 

      A class function

    • D. 

      A method

  • 28. 
    What will be the output of the following program? #include<stdio.h> int main() { char numbers[5][6] = {"Zero","One","Two","Three","Four"}; printf("%s is %c",&numbers[4][0],numbers[0][0]); return 0; }
    • A. 

      Four is Z

    • B. 

      Three is Z

    • C. 

      Compiler error

    • D. 

      Two is Z

  • 29. 
    What will be the output of the following program? #include<stdio.h> int main() { int a = 1, b = 2, c = 3; printf("The value of a is %d", ++a); func(); printf(" The value of a is %d", ++a); return 0; } void func() { int a = 10; return 0; }
    • A. 

      The value of a is 2 The value of a is 2

    • B. 

      The value of a is 2 The value of a is 3

    • C. 

      The value of a is 1 The value of a is 10

    • D. 

      Compiler error

  • 30. 
    What is the keyword used to turn off the compiler optimization of a variable?
    • A. 

      Mutable

    • B. 

      Volatile

    • C. 

      Static

    • D. 

      None of these

  • 31. 
    Which one of the following is the correct way of declaring main() function when it receives command line arguments?
    • A. 

      Main(int argc, char argv)

    • B. 

      Main(char argv[ ], int *argc)

    • C. 

      Main(char* argv[ ],int argc)

    • D. 

      Main(int argc,char* argv[ ])

  • 32. 
    What is the correct value to return to the operating system upon the successful completion of a program?
    • A. 

      0

    • B. 

      1

    • C. 

      - 1

    • D. 

      Programs do not return a value

  • 33. 
    What punctuation must be used to end lines of C++ code?
    • A. 

      . (dot)

    • B. 

      ‘ (single quote)

    • C. 

      ; (semi-colon)

    • D. 

      : (colon)

  • 34. 
    Which of the following is a correct comment?
    • A. 

      */ Comments */

    • B. 

      /* Comment */

    • C. 

      ** Comment **

    • D. 

      { Comment }

  • 35. 
    Which of the following is not a correct variable type?
    • A. 

      Double

    • B. 

      Float

    • C. 

      Int

    • D. 

      Real

  • 36. 
    Which of the following is the correct operator to compare two variables?
    • A. 

      =

    • B. 

      = =

    • C. 

      : =

    • D. 

      Equal

  • 37. 
    Which of the following is the Boolean operator for logical and?
    • A. 

      &

    • B. 

      & &

    • C. 

      | &

    • D. 

      | |

  • 38. 
    The directives for the preprocessors begin with
    • A. 

      Ampersand symbol (&)

    • B. 

      Less than symbol (

    • C. 

      Two Slashes (//)

    • D. 

      Number Sign (#)

  • 39. 
    The file “iostream” includes
    • A. 

      The streams of includes and outputs of program effect

    • B. 

      The declarations of the basic standard input-output library

    • C. 

      Both

    • D. 

      None

  • 40. 
    What function initalizes variables in a class:
    • A. 

      CONSTRUCTOR

    • B. 

       Destructor

    • C. 

       Constitutor

    • D. 

       A and B are

  • 41. 
    Single line comments explaining code would be preceded like in the following example
    • A. 

       /**

    • B. 

       //

    • C. 

       *//

    • D. 

       /*

  • 42. 
    Which line has all reserved words ?
    • A. 

      Char, int, float, doubled, short, long, unsigned, signed

    • B. 

       sizeof, const, typedef, static, voided, enum, struct, union

    • C. 

      If, else, for, while do, switch, continue, break

    • D. 

      Defaulted, goto, return, extern, private, public, protected

  • 43. 
    What punctuation must each command line have at the end of the line ?
    • A. 

       :

    • B. 

       ,

    • C. 

       !

    • D. 

       ;

  • 44. 
    The number 5.9875e17 must be stored in a(n):
    • A. 

       int

    • B. 

      Long

    • C. 

      Double

    • D. 

      Float

  • 45. 
    Select the correct definition for a string variable.
    • A. 

      String mystr;

    • B. 

      String mystr[20];

    • C. 

      String[20] mystr;

    • D. 

      Char mystr[20];

  • 46. 
    The sentence "Hello world!" uses _____ elements in a character array.
    • A. 

       10

    • B. 

       11

    • C. 

      12

    • D. 

      13

  • 47. 
    When you are creating a structure, you need to use the following keyword
    • A. 

      Structure

    • B. 

       struct

    • C. 

       object

    • D. 

       record

  • 48. 
    Select the correct function definition (NOT prototype) from the list below.
    • A. 

      Void intro();

    • B. 

      Double sin(double rad);

    • C. 

      Int foo(int bar; double baz)

    • D. 

      Double pow(double num, int pow);

  • 49. 
    Write a for loop that counts from 0 to 5.
    • A. 

      For (c = 0; c

    • B. 

      For (int c = 0; c

    • C. 

      For (c = 0; c < 5; c++)

    • D. 

      For (c = 0; c < 5; c++);

  • 50. 
    Which of the following converts an integer "value" to its ASCII equivalent ?
    • A. 

       atoi(value)

    • B. 

       cout

    • C. 

      (char) value

    • D. 

      Char (value)

  • 51. 
    Resolution of display card is
    • A. 

      The number of pixels

    • B. 

      The number of colours

    • C. 

      The amount of memory

    • D. 

      The speed of CPU

  • 52. 
    External modem requires a/an __________ to get powered on
    • A. 

      AC adapter

    • B. 

      Ethernet adapter

    • C. 

      DC adapter

    • D. 

      Data cable

  • 53. 
    Which of the following is the most fault-tolerant WAN topology?
    • A. 

      Partial-mesh

    • B. 

      Full-mesh

    • C. 

      Ring

    • D. 

      Bus

  • 54. 
    How many nodes share a single channel on a bus topoogy?
    • A. 

      All connected nodes

    • B. 

      One

    • C. 

      Two

    • D. 

      Four

  • 55. 
    Which type of cable are you most likely to find on networks that use bus topology?
    • A. 

      UTP cable

    • B. 

      STP cable

    • C. 

      Coaxial cable

    • D. 

      Fiber-optic cable

  • 56. 
    The Do While looping Statement ?     
    • A. 

      Is executed only once if the condition is true

    • B. 

      Is also an entry controlled loop

    • C. 

      Is executed at least once if the condition is false

    • D. 

      Is unconditional looping statement

  • 57. 
    The use of “break” Statement
    • A. 

      To terminate a case in the switch statement

    • B. 

      To force immediate termination of a loop

    • C. 

      Both

    • D. 

      None of the above

  • 58. 
    In the passage of text, individual words and punctuation marks are known as:
    • A. 

      Constants

    • B. 

      Operators

    • C. 

      Keywords

    • D. 

      Tokens

  • 59. 
    The preprocessor directive #include<iostream.h> is required if
    • A. 

      Console output is used

    • B. 

      Console input is used

    • C. 

      Both console input and output is used

    • D. 

      None of these

  • 60. 
    What is the current standard for expansion slots on a motherboard?
    • A. 

      PCI

    • B. 

      PCIe (PCI Express)

    • C. 

      ISA

    • D. 

      FireWire

  • 61. 
    Which hardware component serves as the circuit board that provides electrical connections by which all other components communicate?
    • A. 

      Hard drive

    • B. 

      Network interface card

    • C. 

      Motherboard

    • D. 

      Serial Bus

  • 62. 
    Which is NOT a common component to be integrated into a motherboard?
    • A. 

      Sound card

    • B. 

      Video card

    • C. 

      Network card

    • D. 

      Hard drive

  • 63. 
    The purpose of RAM is to:
    • A. 

      Provide long-term, non-volatile storage

    • B. 

      Provide temporary, non-volatile storage

    • C. 

      Provide long-term, volatile storage

    • D. 

      Provide temporary, volatile storage

  • 64. 
    What is the latest standard in RAM that new motherboards are supporting?
    • A. 

      DDR

    • B. 

      EPROM

    • C. 

      DDR3

    • D. 

      Flash

  • 65. 
    What is the current standard interface for connecting internal hard drives to the motherboard in desktop computers?
    • A. 

      EIDE

    • B. 

      SCSI

    • C. 

      USB

    • D. 

      SATA

  • 66. 
    Which is NOT a common interface for connecting an external hard drive to a computer?
    • A. 

      ESATA

    • B. 

      USB

    • C. 

      IEEE 1394 (FireWire)

    • D. 

      All of these are common interfaces

  • 67. 
    What is the only function all C programs must contain?
    • A. 

      Start ( )

    • B. 

      Program ( )

    • C. 

      System ( )

    • D. 

      Main ( )

  • 68. 
    The C language is
    • A. 

       case-sensitive.

    • B. 

      Not case-sensitive.

    • C. 

      It depends

    • D. 

      None of these

  • 69. 
    To Which port a Pen Drive Can Connect?
    • A. 

      USB

    • B. 

      PS/2 port

    • C. 

      Serial port

    • D. 

      Parallel port

  • 70. 
    Which of the following memories is used by a pen drive?
    • A. 

      Flash memory

    • B. 

      Cache memory

    • C. 

      Physical memory

    • D. 

      RAM

  • 71. 
    _______________ store(s) the time and settings of a system.
    • A. 

      Memory slots

    • B. 

      CPU socket

    • C. 

      CMOS chip

    • D. 

      BIOS chip

  • 72. 
    1 Nibble is equivalent to 
    • A. 

      4 bits

    • B. 

      8 bits

    • C. 

      32 bits

    • D. 

      None of these

  • 73. 
    Current Liabilities group includes ________________ subgroups. 
    • A. 

      Sundry Creditors

    • B. 

      Sundry Debtors

    • C. 

      Option 3

    • D. 

      Option 4

  • 74. 
    Why is F1 used?
    • A. 

      To create company

    • B. 

      To delete company

    • C. 

      To select company

    • D. 

      To shut company

  • 75. 
    Trail balance is summarized form of ___________.
    • A. 

      Journal

    • B. 

      Ledger

    • C. 

      Stock Summary

    • D. 

      None of Above

  • 76. 
    Inventory is the information of ___________.
    • A. 

      Ledgers

    • B. 

      Groups

    • C. 

      Stock

    • D. 

      Proprietor

  • 77. 
    The period of an accounting year is ___________.
    • A. 

      1 January to 31 December

    • B. 

      1 March to 31 March

    • C. 

      1 April to 31 March

    • D. 

      31 March to 1 April

  • 78. 
    What is the use of direct command?
    • A. 

      Analysis

    • B. 

      Interpretation

    • C. 

      Calculation

    • D. 

      Classification

  • 79. 
    F4 button is used to ___________.
    • A. 

      Backup the company data

    • B. 

      Restore the company data

    • C. 

      Alter the company data

    • D. 

      None of these

  • 80. 
    Select the steps to create a new voucher:
    • A. 

      Gateway of tally> Voucher entries> Press Function key.

    • B. 

      Gateway of tally> Account info.>Voucher type>Create

    • C. 

      Gateway of tally> Account info> Voucher type> Display

    • D. 

      Gateway of tally> Account info> Voucher type> Alter

  • 81. 
    The term in proprietor in tally is used as
    • A. 

      A person who credits the goods to the company for a period

    • B. 

      A person to whom company lends money in advance

    • C. 

      Investor of money in any company

    • D. 

      None of these

  • 82. 
    What is the short key in tally for printing the sale voucher?
    • A. 

      Ctrl+P

    • B. 

      Ctrl+Alt+P

    • C. 

      Alt+P

    • D. 

      None of these

  • 83. 
    Balance sheet is a _______________.
    • A. 

      Statement of assets and liabilities a company.

    • B. 

      Statement of Voucher entries

    • C. 

      Statement of codes of accounting

    • D. 

      None of above

  • 84. 
    Which is the correct order of accounting cycle?
    • A. 

      Transactions > Ledgers > Journal > Trail Balance > Balance Sheet

    • B. 

      Ledgers > Transactions > Journal > Trail Balance > Balance Sheet

    • C. 

      Transactions > Journal > Ledgers >Trail Balance > Balance Sheet

    • D. 

      Journal > Transactions > Ledgers > Trail Balance > Balance Sheet

  • 85. 
    This button of button area is used to switch between the selected companies.
    • A. 

      F3

    • B. 

      Alt + F3

    • C. 

      F1

    • D. 

      Alt + F1

  • 86. 
    Assets are the property of _____________.
    • A. 

      Debtor

    • B. 

      Owner

    • C. 

      Creditor

    • D. 

      None of these

  • 87. 
    One MB is equal to?
    • A. 

      One thousand bytes

    • B. 

      1 billion bytes

    • C. 

      The amount of RAM in every computer

    • D. 

      1024KB

  • 88. 
    Select the URL from the list below.
    • A. 
    • B. 

      Http://www.yahoo.com

    • C. 

      D:\downloads\standard

    • D. 

      192.168.0.1

  • 89. 
    What is the shortcut for PASTE in Windows operating systems?
    • A. 

      Ctrl + P

    • B. 

      Ctrl + V

    • C. 

      Ctrl + C

    • D. 

      Caps Lock + V

  • 90. 
    The computer component responsible for calculations, moving and processing information?
    • A. 

      CPU

    • B. 

      RAM

    • C. 

      Motherboard

    • D. 

      Hard Drive

  • 91. 
    This is a measurement of speed over a network.
    • A. 

      Megabytes

    • B. 

      Bits

    • C. 

      Megahertz

    • D. 

      Megabits per second.

  • 92. 
    Bandwidth is a term for?
    • A. 

      The speed at which data can be transferred from the server to the client.

    • B. 

      A measurement of how much information can be carried in a given time period (usually a second) over a wired or wireless communications link.

    • C. 

      A unit of information or computer storage equal to one billion bytes.

    • D. 

      None of the above.

  • 93. 
    Which item is an example of a physical network address?
    • A. 

      IP address

    • B. 

      MAC address

    • C. 

      Workstation name

    • D. 

      Www.proprofs.com

  • 94. 
    What is a LAN
    • A. 

      Long Area Network

    • B. 

      Ludacris Area Network

    • C. 

      Local Area Network

    • D. 

      Live Area Network

  • 95. 
    Which topology used in Ethernet
    • A. 

      Bus

    • B. 

      Ring

    • C. 

      Tree

    • D. 

      Mesh

  • 96. 
    A port address in TCP/IP is ………bits long.
    • A. 

      32

    • B. 

      48

    • C. 

      16

    • D. 

      64

  • 97. 
    The term _______ refers to the computer's physical components, such as the monitor, keyboard, memory chips, and hard drive.
    • A. 

      Software

    • B. 

      Hardware

    • C. 

      Firmware

    • D. 

      Output

  • 98. 
    The term _____________ refers to the set of instructions that directs the hardware in a computer to accomplish a task.
    • A. 

      Input

    • B. 

      Output

    • C. 

      Hardware

    • D. 

      Software

  • 99. 
    The ______________ is an output device which produces output on paper.
    • A. 

      Monitor

    • B. 

      Keyboard

    • C. 

      Printer

    • D. 

      Mouse

  • 100. 
    A ____________ is a pointing device used to move a pointer on the screen and to make selections.
    • A. 

      Keyboard

    • B. 

      Processor

    • C. 

      Mouse

    • D. 

      Monitor