PGDCA Second Semester Exam: Quiz!

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Oca2018
O
Oca2018
Community Contributor
Quizzes Created: 1 | Total Attempts: 731
| Attempts: 731 | Questions: 100
Please wait...
Question 1 / 100
0 %
0/100
Score 0/100
1. What is a LAN

Explanation

A LAN stands for Local Area Network. It is a network that connects computers and devices within a limited geographical area, such as an office building or a school campus. LANs are commonly used to share resources, such as printers and files, and to facilitate communication between connected devices. Unlike Long Area Networks or Ludacris Area Networks, which are not recognized networking terms, a Local Area Network is a well-known and widely used concept in computer networking. A Live Area Network is also not a recognized term in networking.

Submit
Please wait...
About This Quiz
PGDCA Second Semester Exam: Quiz! - 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... see morein 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. see less

2. To Which port a Pen Drive Can Connect?

Explanation

A pen drive can connect to a USB port. USB (Universal Serial Bus) is a standard interface that allows for the connection of various devices to a computer. It is widely used for connecting peripherals such as pen drives, external hard drives, keyboards, mice, and more. The USB port provides a fast and convenient way to transfer data between the pen drive and the computer.

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

Explanation

A mouse is a pointing device that is used to move a pointer on the screen and make selections. It typically has buttons that can be clicked to perform different actions. The mouse is an essential tool for navigating and interacting with graphical user interfaces, allowing users to control the cursor and select items on the screen with precision and ease. It is a common input device for computers and is widely used for various tasks such as browsing the internet, playing games, and operating software applications.

Submit
4. What punctuation must be used to end lines of C++ code?

Explanation

In C++ programming language, lines of code must be ended with a semi-colon (;) punctuation mark. This is known as the statement terminator in C++ and it indicates the end of a line of code. It is important to include this punctuation to ensure that the code is syntactically correct and can be compiled and executed properly.

Submit
5. What punctuation must each command line have at the end of the line ?

Explanation

Each command line must have a semicolon (;) at the end.

Submit
6. One MB is equal to?

Explanation

One megabyte (MB) is equal to 1024 kilobytes (KB). This is because computers use a binary system, where each unit is a power of 2. In this system, 1 kilobyte is equal to 1024 bytes, and 1 megabyte is equal to 1024 kilobytes. Therefore, the correct answer is 1024KB.

Submit
7. Select the URL from the list below.

Explanation

The correct answer is "http://www.yahoo.com" because it is the only option that starts with "http://" which is the standard protocol for accessing websites on the internet. The other options are an email address, a local file directory, and an IP address, which are not valid URLs.

Submit
8. What is the shortcut for PASTE in Windows operating systems?

Explanation

The shortcut for PASTE in Windows operating systems is Ctrl + V. This combination of keys is commonly used to paste copied or cut content into a document or application.

Submit
9. The ______________ is an output device which produces output on paper.

Explanation

A printer is an output device that produces output on paper. It is used to print documents, images, or any other digital content onto physical paper. Unlike a monitor, keyboard, or mouse, which are input devices or display devices, a printer specifically functions to generate hard copies of digital information.

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

Explanation

Hardware refers to the physical components of a computer system, including the monitor, keyboard, memory chips, and hard drive. These are tangible parts that can be seen and touched. Software, on the other hand, refers to the programs, applications, and data that are stored on the hardware and enable the computer to perform specific tasks. Firmware is a type of software that is embedded in a hardware device, providing low-level control and functionality. Output refers to the information or data that is produced by a computer system and displayed or presented to the user.

Submit
11. The preprocessor directive #include<iostream.h> is required if

Explanation

The preprocessor directive #include is required if both console input and output is used. This directive allows the program to access the input and output stream objects defined in the iostream library, which are necessary for reading input from the console and displaying output on the console.

Submit
12. C++ supports

Explanation

C++ supports all of the given options: multiple inheritance, pointer to functions, and recursion. Multiple inheritance allows a class to inherit from multiple base classes, providing flexibility in creating complex class hierarchies. Pointer to functions is a feature in C++ that allows functions to be stored in variables and passed as arguments to other functions. Recursion is a programming technique where a function calls itself, allowing for the solution of complex problems by breaking them down into smaller, more manageable subproblems. Therefore, the correct answer is "All".

Submit
13. What is the only function all C programs must contain?

Explanation

The correct answer is "main()". In C programming, the "main()" function is the entry point of the program. It is the function where the program starts its execution. Every C program must have a "main()" function in order to run. Without the "main()" function, the program will not be able to execute any code. It is the mandatory function that serves as the starting point for the program's execution.

Submit
14. The C language is

Explanation

The C language is case-sensitive, meaning that it distinguishes between lowercase and uppercase letters. This means that variables, function names, and other identifiers must be written with the same capitalization each time they are used. For example, "variable" and "Variable" would be treated as two different identifiers in C. This is important to keep in mind when writing code in C to avoid any potential errors or conflicts.

Submit
15. Which topology used in Ethernet

Explanation

Ethernet uses the Bus topology. In this topology, all devices are connected to a single cable, known as the bus. Data is transmitted in both directions on the bus, and all devices on the network receive the transmitted data. The Bus topology is simple and cost-effective, as it requires less cabling compared to other topologies. However, it can be prone to collisions and performance issues if multiple devices try to transmit data simultaneously.

Submit
16. The period of an accounting year is ___________.

Explanation

The period of an accounting year is from 1 April to 31 March. This is because in most countries, including India, the financial year is aligned with the calendar year, starting on 1 April and ending on 31 March of the following year. This allows for easier tax calculations and reporting, as well as consistency in financial reporting across different organizations.

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

Explanation

The motherboard serves as the circuit board that provides electrical connections by which all other components communicate. It is the main printed circuit board in a computer that houses the CPU, RAM, and other essential components. The motherboard acts as a central hub, allowing data and power to flow between all the hardware components, facilitating communication and coordination among them. Without a motherboard, the various hardware components would not be able to communicate with each other effectively.

Submit
18. 1 Nibble is equivalent to 

Explanation

A nibble is a unit of digital information that consists of 4 bits. It represents a single hexadecimal digit, which can range from 0 to 15. Therefore, the correct answer is 4 bits.

Submit
19. C++ was originally developed by

Explanation

Bjarne Stroustrup is the correct answer because he is the creator of the C++ programming language. He developed C++ in the early 1980s as an extension of the C programming language. Stroustrup wanted to add object-oriented programming features to C, resulting in the creation of C++. His work on C++ has had a significant impact on the field of programming, making it a widely used language for a variety of applications.

Submit
20. The differences between constructors and destructor are

Explanation

Both statements are correct. Constructors can take arguments, allowing for the initialization of objects with specific values. On the other hand, destructors cannot take any arguments, as their purpose is to clean up resources and memory allocated by the object. Additionally, constructors can be overloaded, meaning that multiple constructors with different parameters can be defined in a class. However, destructors cannot be overloaded as there can only be one destructor per class.

Submit
21. A destructor takes

Explanation

A destructor is a special member function in a class that is used to clean up the resources allocated by an object when it is destroyed. It is called automatically when an object goes out of scope or is explicitly deleted. In C++, a destructor does not take any arguments. Its purpose is to release memory, close files, or perform any other necessary cleanup operations. Therefore, the correct answer is "Zero arguments".

Submit
22. NULL Pointer can be used as:

Explanation

A NULL pointer can be used in multiple ways. Firstly, it can be used to stop indirection in a recursive data structure, where a NULL pointer indicates the end of the structure. Secondly, it can be used as an error value, where a NULL pointer signifies that an error has occurred. Lastly, a NULL pointer can also be used as a sentinel value, which is a special value used to mark the end of a list or data structure. Therefore, the correct answer is that a NULL pointer can be used for all of these purposes.

Submit
23. By default, members of a C++ class are

Explanation

In C++, by default, the members of a class are private. This means that they can only be accessed within the class itself and are not accessible from outside the class. Private members are used to encapsulate the internal implementation details of a class and provide data hiding, ensuring that the class's data is only accessed and modified through the class's public interface. Other access specifiers like public and protected can be used to explicitly specify the accessibility of class members.

Submit
24. Which of the following is not a bitwise operator?

Explanation

not-available-via-ai

Submit
25. Which of the following is the correct operator to compare two variables?

Explanation

The correct operator to compare two variables is "==" in many programming languages. This operator checks if the values of two variables are equal. The double equals sign is used to differentiate it from the assignment operator "=" which is used to assign a value to a variable. Therefore, "==" is the correct operator for comparing two variables.

Submit
26. What is the current standard interface for connecting internal hard drives to the motherboard in desktop computers?

Explanation

SATA (Serial ATA) is the current standard interface for connecting internal hard drives to the motherboard in desktop computers. It has replaced older interfaces like EIDE and SCSI due to its faster data transfer rates, improved performance, and smaller cables. SATA offers higher bandwidth and supports hot swapping, making it the preferred choice for modern desktop computers. USB, on the other hand, is primarily used for connecting external devices, while EIDE and SCSI are outdated interfaces that are no longer widely used in new computer systems.

Submit
27. The operator << is called

Explanation

The operator "

Submit
28. Operator overloading is 

Explanation

Operator overloading in C++ refers to the ability to redefine how operators work with objects. This allows programmers to use operators such as +, -, *, /, etc., with user-defined objects, enabling them to perform operations specific to those objects. Additionally, operator overloading also allows programmers to give new meanings or behaviors to existing operators, providing more flexibility and customization in their code.

Submit
29. Which of the following is/are storage class?

Explanation

The correct answer is "All" because all the options mentioned - Automatic, Static, and Allocated - are storage classes in programming. Automatic storage class is used to declare variables that have a local scope and are automatically initialized. Static storage class is used to declare variables that retain their values throughout the program's execution. Allocated storage class is used for dynamically allocating memory during runtime. Therefore, all the options mentioned are storage classes.

Submit
30. What will the output of following code {      int x = 10, y = 15;      x = x++;      y = ++y;                 printf("%d, %d \n", x, y); }

Explanation

The output of the code will be 11, 16.
In the line "x = x++", the value of x is incremented by 1 but the assignment happens after the increment, so the value of x remains the same (10).
In the line "y = ++y", the value of y is incremented by 1 and then assigned to y, so the value of y becomes 16.

Submit
31. The use of "break" Statement

Explanation

The "break" statement is used to terminate a case in the switch statement, allowing the program to exit the switch block and continue execution after the switch statement. Additionally, it can also be used to force immediate termination of a loop, causing the program to exit the loop and continue with the next statement after the loop. Therefore, the correct answer is both.

Submit
32. Which line has all reserved words ?

Explanation

The line "if, else, for, while do, switch, continue, break" has all reserved words. Reserved words are words that are predefined and have special meaning in a programming language. In this line, all the words listed are reserved words in the C programming language.

Submit
33. Which type of cable are you most likely to find on networks that use bus topology?

Explanation

In bus topology networks, all devices are connected to a single cable, known as the bus. Coaxial cable is most commonly used in bus topology networks because it is capable of carrying signals over long distances without significant loss or interference. It has a central conductor surrounded by insulation, a metallic shield, and an outer insulating layer. The metallic shield helps to minimize signal interference, making it suitable for bus topology networks where multiple devices share the same cable. UTP (Unshielded Twisted Pair) cable, STP (Shielded Twisted Pair) cable, and fiber-optic cable are not typically used in bus topology networks.

Submit
34. 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; }

Explanation

The output of the program will be "The value of a is 2 The value of a is 3".


In the main function, the value of 'a' is incremented by 1 before it is printed, so the first printf statement will print "The value of a is 2".

Then, the function 'func' is called, but it does not have any effect on the value of 'a' in the main function.

After that, the second printf statement in the main function will print "The value of a is 3" because 'a' was incremented again before it was printed.

Submit
35. Which of the following memories is used by a pen drive?

Explanation

A pen drive uses flash memory. Flash memory is a type of non-volatile storage that can be electrically erased and reprogrammed. It is commonly used in portable storage devices like pen drives due to its compact size, durability, and ability to retain data even when power is disconnected. Unlike cache memory, which is used by the CPU to store frequently accessed data for faster processing, flash memory is used for long-term storage of files and data. Physical memory refers to the actual hardware components that store data, while RAM is a type of volatile memory used for temporary storage during program execution.

Submit
36. The term _____________ refers to the set of instructions that directs the hardware in a computer to accomplish a task.

Explanation

The term "software" refers to the set of instructions that directs the hardware in a computer to accomplish a task. Software is a collection of programs, data, and instructions that tell the computer how to perform specific tasks. It is the non-tangible part of a computer system that enables the hardware to function and carry out different operations. Without software, the hardware would be useless as it would not know what tasks to perform or how to execute them.

Submit
37. Which is NOT a common interface for connecting an external hard drive to a computer?

Explanation

All of these options are common interfaces for connecting an external hard drive to a computer. This means that none of these options are NOT a common interface for connecting an external hard drive to a computer. Therefore, the correct answer is "All of these are common interfaces."

Submit
38. What is the function overloading?

Explanation

Function overloading refers to the ability to have multiple functions with the same name but different parameters or argument types in a programming language. This allows the programmer to define multiple functions with the same name but perform different operations based on the type or number of arguments passed to the function. It provides flexibility and code reusability by allowing the programmer to use a single function name for similar operations with different input parameters.

Submit
39. Which of the following is not a C++ keyword?

Explanation

not-available-via-ai

Submit
40. Which of the following is a correct comment?

Explanation

The correct comment is /* Comment */. This is because it is written in the format of a C-style comment, which is enclosed between /* and */. This format is commonly used in programming languages like C, C++, and Java to add comments in the code that are ignored by the compiler or interpreter.

Submit
41. Which of the following is not a correct variable type?

Explanation

The variable type "real" is not a correct variable type in many programming languages. The correct variable types in this context are double, float, and int. "Real" is not a recognized variable type and is likely included as a distractor in this question.

Submit
42. When you are creating a structure, you need to use the following keyword

Explanation

When creating a structure in programming, the keyword "struct" is used. This keyword is used to define a new data type that can contain different variables of different types. It allows for the grouping of related data together under a single name. So, in order to create a structure, the keyword "struct" is used.

Submit
43. Resolution of display card is

Explanation

The resolution of a display card refers to the number of pixels that can be displayed on a screen. It determines the level of detail and sharpness in the images and text displayed. A higher resolution means a greater number of pixels, resulting in a clearer and more detailed display. The number of colors, amount of memory, and speed of the CPU do not directly affect the resolution of a display card.

Submit
44. External modem requires a/an __________ to get powered on

Explanation

An external modem requires an AC adapter to get powered on. This is because an AC adapter converts the alternating current from a power outlet into the direct current required by the modem. The modem needs a stable and consistent power supply to function properly, and the AC adapter provides the necessary power source.

Submit
45. Assets are the property of _____________.

Explanation

Assets are the property of the owner. This means that the owner has legal rights and control over the assets. Assets can include tangible items such as buildings, equipment, and inventory, as well as intangible items such as patents, trademarks, and copyrights. The owner can use, sell, or transfer these assets as they see fit, and they are responsible for managing and maintaining the value of the assets.

Submit
46. The computer component responsible for calculations, moving and processing information?

Explanation

The CPU, or Central Processing Unit, is responsible for calculations, moving, and processing information in a computer. It is often considered the "brain" of the computer, as it performs the majority of the processing tasks. The CPU executes instructions, performs arithmetic and logical operations, and manages the flow of data within the computer system. It interacts with other components, such as RAM and the motherboard, to carry out these tasks efficiently.

Submit
47. Bandwidth is a term for?

Explanation

Bandwidth refers to the measurement of how much information can be carried in a given time period, typically a second, over a wired or wireless communications link. It is not specifically related to the speed of data transfer from the server to the client or a unit of computer storage. Therefore, the correct answer is that bandwidth is a measurement of how much information can be carried in a given time period over a communications link.

Submit
48. What is the latest standard in RAM that new motherboards are supporting?

Explanation

The latest standard in RAM that new motherboards are supporting is DDR3. DDR3 stands for Double Data Rate 3, which is an improved version of DDR2 RAM. It offers higher bandwidth and faster data transfer rates compared to its predecessor. DDR3 RAM modules are widely used in modern computers and are compatible with newer motherboards.

Submit
49. What is a reference?

Explanation

A reference is an alias for an object, meaning that it is another name for the same object in memory. It allows us to access and manipulate the object using a different name. This can be useful when we want to have multiple names for the same object or when we want to pass objects to functions without making copies of them.

Submit
50. Which is NOT a common component to be integrated into a motherboard?

Explanation

A hard drive is not a common component to be integrated into a motherboard. While sound cards, video cards, and network cards are commonly integrated into motherboards to enhance the audio, video, and networking capabilities of a computer, a hard drive is typically a separate component that is connected to the motherboard via cables. It is responsible for storing and retrieving data, but it is not directly integrated into the motherboard itself.

Submit
51. The purpose of RAM is to:

Explanation

RAM, or Random Access Memory, is a type of computer memory that is used to temporarily store data that is actively being used by the computer's processor. It is called "temporary" because its contents are lost when the computer is powered off or restarted. It is also referred to as "volatile" because it requires a constant supply of power to retain its data. Therefore, the purpose of RAM is to provide temporary, volatile storage for the computer to quickly access and manipulate data during its operation.

Submit
52. Which of the following is the Boolean operator for logical and?

Explanation

The correct answer is "& &". The ampersand symbol "&" is the Boolean operator for logical and. It is used to combine two or more conditions in a logical statement, and it returns true only if all the conditions are true.

Submit
53. The sentence "Hello world!" uses _____ elements in a character array.

Explanation

The sentence "Hello world!" consists of 13 elements in a character array. Each character, including the space and exclamation mark, is considered as one element in the array. Therefore, the total number of elements is 13.

Submit
54. Balance sheet is a _______________.

Explanation

A balance sheet is a financial statement that provides a snapshot of a company's financial position by listing its assets and liabilities. It shows what the company owns (assets) and what it owes (liabilities) at a specific point in time. This statement helps investors, creditors, and other stakeholders assess the financial health and stability of the company. The balance sheet is an important tool for financial analysis and decision-making.

Submit
55. Which item is an example of a physical network address?

Explanation

A MAC address, or Media Access Control address, is a unique identifier assigned to a network interface card (NIC) by the manufacturer. It is a physical network address because it is hardcoded into the NIC and is used to identify devices on a local area network (LAN). IP address, on the other hand, is a logical network address that is assigned to devices by a network administrator. Workstation name and www.proprofs.com are examples of domain names or hostnames, which are used to identify devices on the internet, but they are not physical network addresses.

Submit
56. The standard C++ comment

Explanation

The correct answer is "//" because it is the standard C++ comment syntax. It is used to comment out a single line of code. The other options ("/", "/* and */", and "None of these") are not the correct syntax for commenting in C++.

Submit
57. A constructor is called whenever

Explanation

A constructor is a special method that is automatically called when an object is created or declared. It is used to initialize the object's state or perform any necessary setup tasks. Therefore, the correct answer is "a object is declared" because that is when the constructor is called to create and initialize the object.

Submit
58. The number 5.9875e17 must be stored in a(n):

Explanation

The number 5.9875e17 is a very large number, and it contains a decimal point. Therefore, it cannot be stored in an int or long data type, as they can only store whole numbers. It also cannot be stored in a float data type, as it does not have enough precision to accurately represent the number. The correct data type to store this number would be a double, as it can handle very large numbers and has enough precision to store the decimal portion of the number.

Submit
59. Current Liabilities group includes ________________ subgroups. 

Explanation

The correct answer is Sundry Creditors. Current Liabilities group includes various subgroups, and one of them is Sundry Creditors. Sundry Creditors are the individuals or entities to whom the company owes money for goods or services received on credit. They are short-term liabilities that need to be paid within a year. Sundry Debtors, on the other hand, are part of the Current Assets group and represent individuals or entities who owe money to the company. Option 3 and Option 4 are not relevant to the question.

Submit
60. F4 button is used to ___________.

Explanation

The F4 button is used to restore the company data. This means that if any data has been lost or deleted, pressing the F4 button will allow the user to retrieve and restore the data. It is a useful function for recovering important information and ensuring that the company's data is not permanently lost.

Submit
61. Select the steps to create a new voucher:

Explanation

To create a new voucher in Tally, you need to go to the "Gateway of Tally" first. From there, navigate to "Account info." and then select "Voucher type". Finally, choose the option "Create" to create a new voucher.

Submit
62. Which of the following statement creates infinite loop?

Explanation

The correct answer is "for ( ; ; )". This statement creates an infinite loop because it does not have any condition to terminate the loop. Without a condition, the loop will continue indefinitely, causing it to run forever.

Submit
63. In the passage of text, individual words and punctuation marks are known as:

Explanation

In the passage of text, individual words and punctuation marks are known as tokens. Tokens are the smallest units of meaning in a programming language. They can include keywords, constants, operators, and other elements that make up the syntax of the language. In this context, tokens refer to the individual components that are used to construct the text.

Submit
64. In C++, the expression 5/2 is evaluated to

Explanation

In C++, when dividing two integers, the result is always an integer. In this case, 5 divided by 2 equals 2 with a remainder of 1. Since the result is an integer, the remainder is ignored and the answer is 2.

Submit
65. 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; }

Explanation

The program declares and initializes a 2D character array called "numbers" with 5 rows and 6 columns. The elements of the array are strings representing the numbers from "Zero" to "Four".

In the printf statement, it prints the character at the first index (0) of the string at the 4th row (index 4) and the character at the first index (0) of the string at the 0th row (index 0).

Therefore, the output of the program will be "Four is Z".

Submit
66. Single line comments explaining code would be preceded like in the following example

Explanation

not-available-via-ai

Submit
67. This is a measurement of speed over a network.

Explanation

Megabits per second is the correct answer because it is a unit of measurement commonly used to quantify the speed of data transfer over a network. Megabits per second refers to the number of megabits (a unit of digital information) that can be transmitted in one second. It is a standard unit used to describe the bandwidth or data transfer rate of internet connections, network devices, and telecommunications systems. Megabytes, bits, and megahertz are not specifically used to measure speed over a network, making them incorrect choices.

Submit
68. A port address in TCP/IP is ………bits long.

Explanation

A port address in TCP/IP is 16 bits long. Port addresses are used to identify specific processes or services running on a device. In TCP/IP, the port address is divided into two parts: the source port and the destination port. Each part is 16 bits long, allowing for a total of 65,536 possible port numbers. This allows for efficient communication and routing of data packets between different processes or services on a network.

Submit
69. A constructor is called whenever

Explanation

A constructor is called whenever an object is declared. This is because a constructor is a special method that is automatically invoked when an object of a class is created. It is responsible for initializing the object's state and allocating any necessary resources. Therefore, whenever an object is declared, the constructor is called to perform these tasks.

Submit
70. The Do While looping Statement?     

Explanation

The Do While looping statement is executed at least once if the condition is false. This is because the loop first executes the code block and then checks the condition. If the condition is false, the loop will still execute once before exiting. This makes it different from other looping statements, such as the While loop, which may not execute at all if the condition is false from the beginning.

Submit
71. to use the function tolower(), which of the following header file should include

Explanation

The correct answer is ctype.h. This header file is needed to use the function tolower(), which is used to convert uppercase characters to lowercase in C programming. The ctype.h header file contains various functions for character handling, including tolower().

Submit
72. In C++ a function contained within a class is called

Explanation

In C++, a function contained within a class is called a member function. This is because it is a function that is defined and declared within the scope of a class. Member functions have access to the private and protected members of the class and can be called using an object of the class. They are used to perform specific operations or actions on the data members of the class.

Submit
73. What is the result of the following statement?     X = 10;     y = ++x;

Explanation

The statement "y = ++x" is a pre-increment operator, which means it increments the value of x by 1 and then assigns the incremented value to y. So, the value of x becomes 11 and the value of y also becomes 11.

Submit
74. What is the keyword used to turn off the compiler optimization of a variable?

Explanation

The keyword "volatile" is used to turn off the compiler optimization of a variable. When a variable is declared as volatile, it informs the compiler that the variable's value can change at any time, even if it appears that there are no changes in the code. This prevents the compiler from optimizing the variable by caching its value in a register, ensuring that the variable is always read from memory. This is particularly useful when dealing with variables that are shared between multiple threads or accessed by hardware interrupts.

Submit
75. The directives for the preprocessors begin with

Explanation

The correct answer is the number sign (#). Preprocessor directives in programming languages, such as C or C++, typically start with the number sign symbol. These directives are used to give instructions to the preprocessor, which is a tool that modifies the source code before it is compiled. The number sign symbol is commonly used to include header files, define constants, and perform other preprocessor tasks.

Submit
76. Which of the following converts an integer "value" to its ASCII equivalent ?

Explanation

The function atoi() converts a string representation of a number to an integer value. It does not convert an integer value to its ASCII equivalent. Therefore, the correct answer is not atoi(value).

Submit
77. Trail balance is summarized form of ___________.

Explanation

A trial balance is a summarized form of the ledger. It is a statement that lists all the accounts and their balances to ensure that the total debits equal the total credits. The ledger, on the other hand, is a book or a computer file that contains all the accounts and their transactions. Therefore, the trial balance serves as a summary of the ledger, making the answer "Ledger" correct.

Submit
78. Which of the following statements is true in C++?

Explanation

In C++, the default access modifier for a struct is public. This means that all members of a struct are accessible from outside the struct. Therefore, the statement "The default access modifier of struct is public" is true in C++.

Submit
79. What function initalizes variables in a class:

Explanation

The correct answer is "A and B are." In object-oriented programming, a constructor is a special function that is used to initialize the variables in a class when an object of that class is created. On the other hand, a destructor is a special function that is used to clean up resources and memory allocated to an object when it is destroyed. Therefore, both the constructor and destructor are responsible for initializing and managing variables in a class.

Submit
80. Write a for loop that counts from 0 to 5.

Explanation

The correct answer is "for (c = 0; c

Submit
81. _______________ store(s) the time and settings of a system.

Explanation

The CMOS chip is responsible for storing the time and settings of a system. CMOS stands for Complementary Metal-Oxide-Semiconductor, and it is a type of memory technology that retains information even when the power is turned off. The CMOS chip is commonly found on the motherboard of a computer and it holds important data such as the system's date and time, BIOS settings, and other configuration options. This information is essential for the proper functioning of the system and allows it to maintain its settings even after a power loss or reboot.

Submit
82. Select the correct definition for a string variable.

Explanation

The correct definition for a string variable is "char mystr[20];". This is because "char" is the data type for a character variable, and "mystr" is the name given to the variable. The "[20]" indicates that the variable can hold a maximum of 20 characters.

Submit
83. Which is the correct order of accounting cycle?

Explanation

The correct order of the accounting cycle is as follows: Transactions are recorded, then they are posted to the Journal, which is a chronological record of all transactions. The information from the Journal is then transferred to the Ledgers, which are the individual accounts for each asset, liability, equity, revenue, and expense. Once all transactions are recorded and posted, a Trial Balance is prepared to ensure that the debits and credits are equal. Finally, the financial statements, including the Balance Sheet, are prepared based on the information from the Trial Balance.

Submit
84. Why is F1 used?

Explanation

F1 is used to shut down a company. This function key is commonly used as a shortcut to access the help menu in various software applications. However, in the context of this question, it is assumed that F1 specifically refers to the action of shutting down a company. This could be interpreted as closing the operations, liquidating assets, or dissolving the legal entity of the company.

Submit
85. How many nodes share a single channel on a bus topoogy?

Explanation

In a bus topology, all connected nodes share a single channel. This means that all nodes on the network are connected to a common communication line, known as a bus, and they can transmit and receive data over this shared channel. This allows for easy communication between all nodes on the network, but it also means that if one node transmits data, all other nodes on the bus receive that data. Therefore, in a bus topology, all connected nodes share the same channel for communication.

Submit
86. What is the use of direct command?

Explanation

Direct command is used for carrying out specific calculations or mathematical operations. It allows the user to input values and perform calculations directly, without the need for writing complex formulas or equations. This feature is particularly useful in situations where quick and accurate calculations are required, such as in financial analysis, scientific experiments, or data processing. By using direct command, users can easily perform calculations and obtain results without the need for extensive manual calculations or programming.

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

Explanation

The correct way of declaring the main() function when it receives command line arguments is "main(int argc,char* argv[ ])". In C and C++, the main() function can accept command line arguments through two parameters: argc and argv. The "argc" parameter represents the number of command line arguments passed to the program, while the "argv" parameter is an array of strings that contains the actual arguments. Therefore, the correct declaration should include the "int" type for argc and "char*" type for argv.

Submit
88. Which of the following is the most fault-tolerant WAN topology?

Explanation

A full-mesh WAN topology is the most fault-tolerant because it provides multiple redundant paths between all network devices. This means that even if one or more links or devices fail, there are alternative paths available for data transmission. In contrast, partial-mesh, ring, and bus topologies do not offer the same level of redundancy and fault tolerance.

Submit
89. The term in proprietor in tally is used as

Explanation

The term "proprietor" in Tally refers to an individual who invests money in any company. This means that they provide capital to the company in exchange for ownership or shares. The term does not refer to someone who credits goods to the company for a period or someone to whom the company lends money in advance. Therefore, the correct answer is that the proprietor in Tally is an investor of money in any company.

Submit
90. A class having no name

Explanation

A class having no name cannot have a destructor because a destructor is a special member function that is automatically called when an object of the class is destroyed. Since the class has no name, it means that there are no objects of that class to be destroyed, hence there is no need for a destructor.

Submit
91. Inventory is the information of ___________.

Explanation

Inventory refers to the stock of goods or materials that a company holds for the purpose of production, manufacturing, or selling. It includes both raw materials and finished products. Therefore, the correct answer for this question is "Stock" as it accurately represents the information of the inventory.

Submit
92. Which one of the following is not the advantages of functions?

Explanation

The given answer states that "It consumes low disk space" is not an advantage of functions. This is because the amount of disk space used by functions is not related to their advantages. Functions are primarily used for modularizing code, improving code reusability, and enhancing code readability. They help in organizing code into smaller, manageable chunks, making debugging and testing easier. Recursive calls are also possible with functions, allowing for efficient problem-solving techniques. However, the amount of disk space consumed by functions is not a factor that contributes to their advantages.

Submit
93. What is the correct value to return to the operating system upon the successful completion of a program?

Explanation

Upon the successful completion of a program, the correct value to return to the operating system is 0. This is a standard convention in many programming languages and operating systems. Returning 0 indicates that the program executed successfully without any errors or issues.

Submit
94. What is the current standard for expansion slots on a motherboard?

Explanation

PCIe (PCI Express) is the current standard for expansion slots on a motherboard. It is a high-speed serial interface that provides faster data transfer rates and more bandwidth compared to the older PCI and ISA standards. PCIe allows for faster communication between the motherboard and expansion cards, such as graphics cards, network cards, and storage controllers. It has become the standard choice for modern motherboards due to its improved performance and scalability. FireWire is a different type of interface used for connecting external devices, while ISA is an older standard that is no longer commonly used.

Submit
95. Constructors are used to

Explanation

Constructors are special member functions in a class that are used to initialize the objects of that class. They are called automatically when an object is created and are responsible for setting the initial values of the data members of the object. Therefore, constructors are used to initialize the objects.

Submit
96. Overload function in C++

Explanation

The correct answer is a group function with the same name. In C++, the concept of function overloading allows multiple functions to have the same name but with different parameters. This means that you can have multiple functions with the same name but with different numbers or types of arguments. This allows for more flexibility and convenience when writing code, as you can use the same function name for related tasks but with different input parameters.

Submit
97. Select the correct function definition (NOT prototype) from the list below.

Explanation

The correct answer is "double pow(double num, int pow)". This function definition takes in two parameters - a double variable named "num" and an integer variable named "pow". It returns a double value, which is the result of raising "num" to the power of "pow".

Submit
98. What is the short key in tally for printing the sale voucher?

Explanation

The correct answer is Alt+P. In Tally, pressing Alt+P is the shortcut key for printing the sale voucher.

Submit
99. The file "iostream" includes

Explanation

The file "iostream" includes the declarations of the basic standard input-output library. This means that when we include the "iostream" file in our program, we gain access to functions and objects that allow us to perform input and output operations, such as reading from the keyboard and printing to the screen.

Submit
100. This button of button area is used to switch between the selected companies.

Explanation

The correct answer is F3. The F3 button is used to switch between the selected companies in the button area. This suggests that there are multiple companies that can be selected and the F3 button allows the user to easily switch between them.

Submit
View My Results

Quiz Review Timeline (Updated): Mar 21, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Aug 04, 2018
    Quiz Created by
    Oca2018
Cancel
  • All
    All (100)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What is a LAN
To Which port a Pen Drive Can Connect?
A ____________ is a pointing device used to move a pointer on the...
What punctuation must be used to end lines of C++ code?
What punctuation must each command line have at the end of the line ?
One MB is equal to?
Select the URL from the list below.
What is the shortcut for PASTE in Windows operating systems?
The ______________ is an output device which produces output on paper.
The term _______ refers to the computer's physical components,...
The preprocessor directive #include<iostream.h> is required if
C++ supports
What is the only function all C programs must contain?
The C language is
Which topology used in Ethernet
The period of an accounting year is ___________.
Which hardware component serves as the circuit board that provides...
1 Nibble is equivalent to 
C++ was originally developed by
The differences between constructors and destructor are
A destructor takes
NULL Pointer can be used as:
By default, members of a C++ class are
Which of the following is not a bitwise operator?
Which of the following is the correct operator to compare two...
What is the current standard interface for connecting internal hard...
The operator << is called
Operator overloading is 
Which of the following is/are storage class?
What will the output of following code...
The use of "break" Statement
Which line has all reserved words ?
Which type of cable are you most likely to find on networks that use...
What will be the output of the following program? ...
Which of the following memories is used by a pen drive?
The term _____________ refers to the set of instructions that directs...
Which is NOT a common interface for connecting an external hard drive...
What is the function overloading?
Which of the following is not a C++ keyword?
Which of the following is a correct comment?
Which of the following is not a correct variable type?
When you are creating a structure, you need to use the following...
Resolution of display card is
External modem requires a/an __________ to get powered on
Assets are the property of _____________.
The computer component responsible for calculations, moving...
Bandwidth is a term for?
What is the latest standard in RAM that new motherboards are...
What is a reference?
Which is NOT a common component to be integrated into a motherboard?
The purpose of RAM is to:
Which of the following is the Boolean operator for logical and?
The sentence "Hello world!" uses _____ elements in a...
Balance sheet is a _______________.
Which item is an example of a physical network address?
The standard C++ comment
A constructor is called whenever
The number 5.9875e17 must be stored in a(n):
Current Liabilities group includes ________________ subgroups. 
F4 button is used to ___________.
Select the steps to create a new voucher:
Which of the following statement creates infinite loop?
In the passage of text, individual words and punctuation marks...
In C++, the expression 5/2 is evaluated to
What will be the output of the following program? ...
Single line comments explaining code would be preceded like in the...
This is a measurement of speed over a network.
A port address in TCP/IP is ………bits long.
A constructor is called whenever
The Do While looping Statement?     
To use the function tolower(), which of the following header file...
In C++ a function contained within a class is called
What is the result of the following statement?...
What is the keyword used to turn off the compiler optimization of a...
The directives for the preprocessors begin with
Which of the following converts an integer "value" to its...
Trail balance is summarized form of ___________.
Which of the following statements is true in C++?
What function initalizes variables in a class:
Write a for loop that counts from 0 to 5.
_______________ store(s) the time and settings of a system.
Select the correct definition for a string variable.
Which is the correct order of accounting cycle?
Why is F1 used?
How many nodes share a single channel on a bus topoogy?
What is the use of direct command?
Which one of the following is the correct way of declaring main()...
Which of the following is the most fault-tolerant WAN topology?
The term in proprietor in tally is used as
A class having no name
Inventory is the information of ___________.
Which one of the following is not the advantages of functions?
What is the correct value to return to the operating system upon the...
What is the current standard for expansion slots on a motherboard?
Constructors are used to
Overload function in C++
Select the correct function definition (NOT prototype) from the list...
What is the short key in tally for printing the sale voucher?
The file "iostream" includes
This button of button area is used to switch between the selected...
Alert!

Advertisement