I. Answer all the following questions. Each question carries one mark. (10 \u00d7 1 = 10)<\/span><\/p>\nQuestion 1.
\nWho Invented the Pascaline?
\nAnswer:
\nFrench Philosopher Blaise Pascal invented the Pascaline.<\/p>\n
Question 2.
\nWhat is the use of the Input Unit?
\nAnswer:
\nIt is used to feed data and instructions into the CPU fed by the user through input devices.<\/p>\n
Question 3.
\nMention, anyone tool used in the design of the problem?
\nAnswer:
\nThe flowchart is a tool used in the design of problem solution.<\/p>\n
<\/p>\n
Question 4.
\nDefine Constant in C++.
\nAnswer:
\nThe constant is a data in which meaning remains unchanged through out the program.<\/p>\n
Question 5.
\nWrite the purpose of Cin>> Statement.
\nAnswer:
\nThe purpose of Cin>> statement is to input data values in a program.<\/p>\n
Question 6.
\nWhere selection statements are used?
\nAnswer: The selection statements are used in decision making process where more than one alternative task to be selected for execution.<\/p>\n
Question 7.
\nWhat is the first subscript value of the array in C++?
\nAnswer:
\nThe first subscript value of the array in C++ is zero (0).<\/p>\n
<\/p>\n
Question 8.
\nWhat is a User-defined function?
\nAnswer:
\nThe user-defined functions are declared and defined in the program by the programmer which perform specific activity and give expected result.<\/p>\n
Question 9.
\nMention the component of font dialog box in Word Processor?
\nAnswer:
\nThe Font Name, Style, Size, etc., are the components of font dialog box in word processor.<\/p>\n
Question 10.
\nExpand ESS?
\nAnswer:
\nThe ESS is expanded as “Electronic Spread Sheet”.<\/p>\n
PART – B<\/p>\n
II. Answer any Five of the following questions. Each question carries two marks: (5 \u00d7 2 = 10)<\/span><\/p>\nQuestion 11.
\nMention any two features of ENIAC.
\nAnswer:
\nThe two features of ENIAC first generation computer is High power consumption, High heat generation, and machine language was used to operate. It is mainly used for Calculation and computation, Payroll Processing and Record keeping.<\/p>\n
Question 12.
\nWrite the differences between impact and nonimpact?
\nAnswer:
\nThe differences between impact and nonimpact printers are:<\/p>\n
\n\n\nImpact printer<\/td>\n | Non-impact printer<\/td>\n<\/tr>\n |
\nProduces text and images when tiny wire pins on print head strike the ink ribbon by physically contacting the paper<\/td>\n | Produces text and graphics on paper without actually striking the paper<\/td>\n<\/tr>\n |
\nLow printing speed<\/td>\n | Reasonably fast<\/td>\n<\/tr>\n |
\nPrint quality lower in some types<\/td>\n | High quality of output, capable of printing fine and smooth details<\/td>\n<\/tr>\n |
\nUses ink ribbon<\/td>\n | Uses ink spray or toner powder<\/td>\n<\/tr>\n |
\nLess expensive<\/td>\n | More expensive<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n Question 13. \nDifferentiate Interpreter and Compiler. \nAnswer: \nThe differences between interpreter and compiler are:<\/p>\n \n\n\nInterpreter<\/td>\n | Compiler<\/td>\n<\/tr>\n | \nTranslates Program line by line<\/td>\n | Translates a whole program at a time.<\/td>\n<\/tr>\n | \nRemains in RAM After translation<\/td>\n | Leaves RAM after translation.<\/td>\n<\/tr>\n | \nSuitable for small translations<\/td>\n | Suitable for long computation<\/td>\n<\/tr>\n | \nSlower access<\/td>\n | Faster access.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n Question 14. \nWrite any two symbols used in the Flowcharts. \nAnswer: \nThe two symbols used in the flowcharts are: \n<\/p>\n Question 15. \nMention any two benefits of OOP. \nAnswer: \nThe two benefits of OOP are<\/p>\n \n- Follow bottom-up approach in program design.<\/li>\n
- Functions and data are coupled together.<\/li>\n<\/ol>\n
Data encapsulation and inheritance are the two features of OOP.<\/p>\n Question 16. \nClassify various data types in C++. \nAnswer: \nData types are classified into built in or basic data types and user defined or derived data types.<\/p>\n Question 17. \nWrite the purpose of Isalpha() and Toupper() built in function, \nAnswer: \n1. isalpha() returns a non-zero value if argument is A-Z or a-z letters. \nFor example, isalpha(‘a’) output: true \nisalpha(‘5’) output: false<\/p>\n 2. toupper () function converts the lower case alphabet character to upper case. \nFor example, toupper(‘a’) output: A<\/p>\n <\/p>\n Question 18. \nGive the command for Copy and Paste in Word Processor. \nAnswer: \nThe copy command is Ctrl + C and Ctrl + V is for Paste in Word Processor.<\/p>\n PART – C<\/p>\n III. Answer any Five of the following Question. Each question carries three marks: (5 \u00d7 3 = 15)<\/span><\/p>\nQuestion 19. \nDiscuss the characteristics of a computer in detail, (any three) \nAnswer: \nThe main characteristics of a computer are: \nComputers are fast in doing calculations. The speed of the computer is measured in terms of million instruction per second (MIPS). \n1. Storage Capacity: \nComputers come with large amount of memory. They can hold lot of data. Computers can show a particular piece of information from large amount of data in a short time.<\/p>\n 2. Diligence: \nAfter doing work for sometime, humans become tired but computers do not become tired. They work continuously. In fact, some computers which control telephone exchanges are never stopped. This is called diligence.<\/p>\n 3. Accuracy: \nThe results that the computers produce are accurate provided data and programs are reliable.<\/p>\n Question 20. \nWith the help of an example explain 1\u2019s complement and 2\u2019s complements. \nAnswer: \n1\u2019s complement: \nRepresenting a signed number with 1\u2019s complement is done by changing all the bits that are 1 to 0 and all the bits that are 0 to For example, 1\u2019s complement of 1010100 is 0101011.<\/p>\n 2\u2019s complement: \nRepresenting a signed number with 2\u2019s complement is done by adding 1 to the 1\u2019s complement representation of the number. For example, 2\u2019s complement of 1010100 is<\/p>\n \n- Step 1: 1\u2019s complement of 1010100 is 0101011<\/li>\n
- Step 2: add<\/li>\n<\/ul>\n
<\/p>\n <\/p>\n Question 21. \nClassify any three types of operating system. \nAnswer: \nThe three types of operating systems are: \n1. Single user operating sytems: \nSingle user operating systems allows only one user to share the system resources including the CPU. For example, DOS (disk operating system).<\/p>\n 2. Batch operating system: \nIn a batch processing operating system interaction between the user and processor is limited or there is no interaction at all during the execution of work. Data and programs that need to be processed are bundled and collected as a \u2018batch\u2019 and \u2022 \nexecuted together. For example, IBM OS\/2.<\/p>\n 3. Multi tasking operating system: \nIn multi tasking operating system several applications maybe simultaneously loaded and used in the memory. While the processor handles only one application at a particular time and switch between the applications and simultaneously execute each application. For example, Windows operating system.<\/p>\n 4. Multi user operating system: \nThis multi user operating system allows multiple users to simultaneously use the system, the processor splits its resources and handles one user at a time. For example, UNIX.<\/p>\n Question 22. \nDraw the flowchart to find area and circumference of a circle. \nAnswer: \n<\/p>\n Question 23. \nMention the three characteristics of C++ programming language. \nAnswer: \nObject oriented programming, bottom-up program execution and portability are the three characteristics of c ++.<\/p>\n Question 24. \nExplain the cascading of input and output with suitable example. \nAnswer: \nThe cascading is a way to extract\/insert multiple values from\/into more than one variable using one cin\/cout statement. The multiple use of << or >> in a one statement is known of cascading.<\/p>\n Cascading of output operator (>>): \ncout<< \u201c Hello \u201c << \u201c ISC \ncout<< \u201cValue of B=\u201d << b; Cascading of input operator (>>): \nint n1, n2, n3; \ncin >> n1 >> n2 >> n3 ; \ncin >> n1 >> n2 ;<\/p>\n <\/p>\n Question 25. \nDefine Arrays and classify various types of arrays. \nAnswer: \nArray is a group of similar elements that share a common name. \nThere are three types of arrays.<\/p>\n \n- One dimensional array<\/li>\n
- Two dimensional array<\/li>\n
- Multi dimensional array<\/li>\n<\/ol>\n
Question 26. \nExplain the process of the creation of a structure in C++ with an example. \nAnswer: \n \nis the reserved or keyword used in structure definition. \n<structure-tag>: Is the name given by the programmer and used to identify the structure in future re-definitions. They are used to declare structure variables. \n<data-type>: Any valid data type in \u2018C\u2019 \n< member variable 1…4>: are names of the variables. \n<structure-variable-name 1 ..2>: It is used to access the members of the structure<\/p>\n Example: \n<\/p>\n PART-D<\/p>\n IV. Answer any seven of the following questions. Each question carries Five marks: (7 \u00d7 5 = 35)<\/span><\/p>\nQuestion 27. \nWrite the features of I generation and II generation of computers. \nAnswer: \n1. generation computers: \n<\/p>\n 1. The first computers used vacuum tubes for electronic circuitry and magnetic drums for memory. They were very expensive to operate and the power consumption was high, generated a lot of heat, which was often the cause of malfunctions.<\/p>\n 2. First generation computers were communicated through machine language to perform operations, and they could only solve one problem at a time.<\/p>\n 3. Input was based on punched cards and paper tape, and output was displayed on printouts.<\/p>\n 2. Second-generation computers: \n<\/p>\n 1. In the second generation computers, symbolic or assembly languages were used. High-level programming languages were also in use at this time, such as early versions of COBOL and FORTRAN. Their memory consisted of magnetic core technology.<\/p>\n 2. Second-generation computers still relied on punched cards for input and printouts for output.<\/p>\n <\/p>\n Question 28. \nDiscuss on<\/p>\n \n- BCD<\/li>\n
- EBCDIC<\/li>\n
- ASCII<\/li>\n<\/ol>\n
Answer: \n1. Binary Coded Decimal (BCD) code: \nIn this code each decimal digit is represented by a 4-bit binary number. BCD is a way to express each of the decimal digits with a binary code. In the BCD, with four bits we can represent sixteen numbers (0000 to 1111). But in BCD code only first ten of these are used (0000 to 1001). The remaining six code combinations i.e. 1010 to 1111 are invalid in BCD.<\/p>\n 2. EBCDIC: \nEBCDIC (Extended Binary Coded Decimal Interchange Code is a binary code for alphabetic and numeric characters that IBM developed for its larger operating systems. In an EBCDIC file, each alphabetic or numeric character is represented with an 8-bit binary number. 256 possible characters (letters of the alphabet, numerals, and special characters) are defined.<\/p>\n 3. ASCII code: \nASCII (American Standard Code for Information Interchange) is the most widely used coding system to represent data. ASCII is used on many personal computers and minicomputers. ASCII is a 7-bit code that permits 27<\/sup> = 128 distinct characters.<\/p>\nThe 128 different combinations that can be represented in 7 bits are plenty to allow for all the letters, numbers and special symbols. An eight bit was added. This allowed extra 128 characters to be represented. The extra 128 combinations are used for symbols such as \u00c7, \u00fc, \u00e8, \u00a9, \u00ae, \u00c6, etc.<\/p>\n Question 29. \nExplain the General structure of C++ program with an example. \nAnswer: \n<\/p>\n The various parts of the above program:<\/p>\n \n- headers, which contain information that is either necessary or useful to program. For this program, the header is needed.<\/li>\n
- The next line \/\/ main() is where program execution begins. is a single-line comment available in C++. Single-line comments begin with \/\/ and stop at the end of the line.<\/li>\n
- The line int main() is the main function where program execution begins.<\/li>\n
- The pair of { } indicates the body of the main function.<\/li>\n
- The next line cout<< \u201cThis is my first C++ program.\u201d; causes the message \u201cThis is my first C++ program\u201d to be displayed on the screen.<\/li>\n
- The next line return 0; terminates main( )function and causes it to return the value 0 to 1
\nthe calling process.<\/li>\n<\/ul>\n<\/p>\n Question 30. \nWrite the differences between<\/p>\n 1. if statement \n2. if-else statement with an example for each.<\/p>\n Answer: \nExample: \n \nResult: \nB is greater than A<\/p>\n In the above example the condition in the if statement returns a true value so the text “B is greater than A” is displayed. If value of ‘a’ is greater than value of ‘b’ then no message is displayed.<\/p>\n Example: \n \nResult: \nB is greater than A<\/p>\n In the above example the “if condition is true then the message ‘A’ is greater than B” is displayed and in the above program, condition is false so the code in the “else” part is executed.<\/p>\n Question 31. \nIllustrate with the help of syntax, differences between While and Do-While looping statements in C++. \nAnswer: \nThe syntax of a while loop in C++ is:<\/p>\n while(condition) \n{ \nstatement(s); \n}<\/p>\n | |