Short-Answer Question Q#1: Define computer hardware. Ans: Computer Hardware: Computer hardware is a collection of all the physical parts or components of a computer. It includes the computer casing, the CPU or central Processing Unit, computer memory, VGA graphics card, sound card and the motherboard. Q#2: Define Computer Software. Ans: Computer Software: Computer software is a computer program that coordinates all the activities and functions of a computer. It also controls all the operations of the computer hardware. It includes operating system, device drivers, utility programs and language translators. Q#3: What are the basic operations of a computer system? Ans: Basic Operations of a Computer System: A computer is a machine that acts accordin...
Q1: Describe the steps involved in problem solving. Ans: 1) Define the problem: In problem solving process, the first step is defining or identifying the problem. It is the most difficult and the most important of all the steps. During this stage of problem solving, it is important to describe the problem. 2) Generate alternative solutions: For any problem, there are more solutions to it than the one that is thought of first. Postpone the selection of one solution until several problem solving alternative have been proposed. 3) Evaluate and select an alternative: Many alternative solution to the problem should be generated before final evaluation. A common mistake in problem solving is that alternative are evaluated as they are proposed, sop the first acceptable solution is chosen even if it is not the best solution. 4) Implement and follow up on the solution: The plan for best solution also include planning on what happens next if somethi...
Q#1: Use \a and \r both escape sequences in a program. Ans: #include <iostream> int main() { cout<<”COMPUTER\rSCIENCE”; cout<<”COMPUTER\aSCIENCE”; } Q#2: How many types of comments statements are used in C++? Ans: In C/C++ there are two types of comments: 1. Single line comment 2. Multi-line comment Single line Comment Represented as // double forward slash It is used to denote a single line comment. Multi-line comment Represented as /* any_text */ start with forward slash and asterisk (/*) and end with asterisk and forward slash (*/). It is used to denote multi-line comment. Q#3: Difference between arithmetic operator and relational operator. Ans: Arithmetic operators are used to perform mathematical operations like division, multiplication, addition, subtraction and remainder/modulus method. While the relational operators are used to perform comparison operations. Simply we can say, it is used to test the relation between two values. Q#4: Write a program ...
Comments
Post a Comment