III. Answer any Five of the following Questions. Each question carries three marks: (5 \u00d7 3 = 15)<\/span><\/p>\nQuestion 19.
\nWhat are impact printers? Briefly explain any one impact printer.
\nAnswer:
\nImpact printers form characters or images by striking at a mechanism such as a print hammer or wheel against an inked ribbon, leaving an image on the paper.<\/p>\n
Question 20.
\nConvert the following:
\nAnswer:
\n<\/p>\n
Question 21.
\nWrite the features of UNIX operating system.
\nAnswer:
\nThe features of the UNIX operating system are:<\/p>\n
1. Multi-tasking:
\nMore than one program can be run at a time<\/p>\n
2. Portability:
\nOnly the kernel (<10%) is written in assembler tools for program development a wide range of support tools (debuggers, compilers). The system is written in high-level language making it easier to read, understand, changed and, therefore move to other machines.<\/p>\n
3. Machine-independence:
\nThe System hides the machine architecture from the user, making it easier to write applications that can run on micros, mins, and mainframes.<\/p>\n
4. Multi-User Operations:
\nUNIX is a multi-user system designed to support a group of users simultaneously. The system allows for the sharing of processing power and peripheral resources, while at the same time providing excellent security features.<\/p>\n
5. Hierarchical File System:
\nUNIX uses a hierarchical file structure to store information. This structure has the maximum flexibility in grouping information in a way that reflectsits natural state. It allows for easy maintenance and efficient implementation.<\/p>\n
<\/p>\n
Question 22.
\nWhat is looping? Write the syntax and example for while loop construct.
\nAnswer:
\nA \u2018while\u2019 loop statement repeatedly executes a statement or sequence of statements written in the flower brackets as long as a given condition returns the value \u2018true\u2019.
\nSyntax:
\nThe syntax of a \u2018while\u2019 loop in C++ is:
\nwhile(condition)
\n{
\nstatement (s) ;
\n}
\nHere the condition may be any expression, and for true is any non zero value. The loop iterates while the condition is true. When the condition becomes false, program control passes to the line immediately following the loop. During the first attempt, when the condition is tested and the result is false, the loop body will be skipped and the first statement after the \u2018while\u2019 loop will be executed.
\nExample:
\n
\nWhen the above code is executed, it produces the following result:
\nvalue of a: 10
\nvalue of a: 11
\nvalue of a: 12
\nvalue of a: 13
\nvalue of a: 14<\/p>\n
Question 23.
\nExplain any three mathematical functions in C++.
\nAnswer:
\n1. a cos() function:
\nIt is a mathematical function that returns the arc cosine value for the given argument. The argument value must be in the range -1 to 1, otherwise, a domain error is triggered.
\nSyntax: float acos ( float arg);<\/p>\n
2. cos() function:
\nIt is a mathematical function that returns the cosine Value for the given radians.
\nSyntax: float cos( float arg );<\/p>\n
3. ceil() function:
\nIt is a mathematical function that returns the smallest integer value that is not less than the specified number. In other words, it returns the Round-Up value of a given number.
\nSyntax: float ceil( float num);<\/p>\n
4. exp() function:
\nIt is a mathematical function that returns the natural logarithm base \u201ce\u201d raised to the power equal to the argument.
\nSyntax: float exp( float num);<\/p>\n
5. sqrt() function:
\nIt is a mathematical function that returns the square root of the given \u201cnum\u201d value.
\nSyntax: float sqrt( float num);<\/p>\n
<\/p>\n
Question 24.
\nWhat is the use of cin function? Write its syntax and example.
\nAnswer:
\n1. Input Operator:
\nThe statement cin>> num;
\nis an input statement and causes the program to wait for the user to type in a number. The operator >>is known as extraction or get from the operator. It takes the value from the keyboard and assigns it to the variable on its right.<\/p>\n
2. Output Operator:
\nThe statement cout<< \u201c the numbers\u201d;uses the cout identifier that represents the standard output stream ( screen) in C++. The operator < – Sounds incomplete -Author.<\/p>\n
Question 25.
\nWhat is array? Write a program segment to read and print the elements of one
\ndimensional array.
\nAnswer:
\nArray is a group of similar elements that share a common name.
\nUsing \u2018for\u2019 loop:
\nint age [10], i;
\nfor(i=0; i<10; i++) { cin>>age[i];
\n}
\nfor(i=0;i<10;i++)
\ncout<<age[i]; Question 26. Which operator is used to access the elements of a structure? Write its syntax and example. Answer: The accessing of data of the members is done by using the following format: structure variable.member name for example cin>>s1.rollno>>s1.age>>s1.name>>s1.marks;<\/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.
\nDiscuss the characteristics of a computer.
\nAnswer:
\n1. Speed:
\nComputers are fast in doing calculations. The speed of the computer is measured in terms of No. of million instructions per second (MIPS).<\/p>\n
2. Storage Capacity:
\nComputers come with a very large amount of memory space. They can hold a lot of data. Computers can extract a particular piece of information from a large amount of available data within a very short time.<\/p>\n
3. Diligence:
\nAfter doing work for some time, humans become tired but computers do not become tired. They work continuously. In fact, Computers which control telephone exchanges, are never shut down. This is called diligence.<\/p>\n
4. Accuracy:
\nThe results that the computers produce are accurately provided that the input data and programs are reliable.<\/p>\n
Question 28.
\nHow do you find the 1\u2019s complement of a number? Subtract 14(10)<\/sub> – 25(10)<\/sub> using l\u2019s complement.
\nAnswer:
\nThe 1\u2019s complement of a number is formed by changing all 1\u2019s to 0\u2019s and all 0\u2019s to 1\u2019s.<\/p>\nNow find 1\u2019s complement of 10100 which is 01011(2)<\/sub> = -11(10)
\n
\n<\/sub><\/p>\n <\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
Question 29.
\nWrite a flow chart to generate the Fibonacci series up to the given limit.
\nAnswer:
\n<\/p>\n
Question 30.
\nWhat are identifiers? Write the rules of naming identifiers in C++.
\nAnswer:
\nThe identifier is a sequence of characters taken from the C++ character set. The rules for the formation of an identifier are:<\/p>\n
\n- It can consist of alphabets, digits and\/or underscores.<\/li>\n
- It must not start with a digit<\/li>\n
- C++ is case sensitive, that is upper and lower case letters are considered as different from each other.<\/li>\n
- It should not be a reserved keyword.<\/li>\n<\/ul>\n
Question 31.
\nExplain switch statement with a suitable example in C++.
\nAnswer:
\n\u2018 Switch\u2019 statement compares the value of an expression against a list of integers or character constants. The list of constants are listed using the \u201ccase\u201d statement along with a \u201cbreak\u201d statement to end the execution.
\nExample:
\n
\n
\nResult:
\nEnter the day of the week between 1-7::7
\nSunday<\/p>\n
In the above Control Structure example, the \u201cswitch\u201d statement is used to find the day of the week from the integer input got from the user. The value present in the day is compared for equality with constants written in the word case. Since no equality is achieved in the above example (from 1 to 6), when 7 is entered default is selected and gives \u201cSunday\u201d as a result.<\/p>\n
<\/p>\n
Question 32.
\nWrite an algorithm to check the given number is a power of 2.<\/p>\n
\n- Step 1: start<\/li>\n
- Step 2: input n<\/li>\n
- Step 3: let temp = n<\/li>\n
- Step 4: let status =1<\/li>\n<\/ul>\n
<\/p>\n
Question 33.
\nHow do you access the elements of a two dimensional array? Write the syntax and example for two dimensional array initialization.
\nAnswer:
\nThe row index and column index number of two dimensional array along with array name is “r” used to access the elements of a two dimensional array.<\/p>\n
Question 34.
\nWhat is recursive function? Give the syntax and example for it.
\nAnswer:
\n1. A function that calls itself directly or indirectly, again and again, is called recursive functions and the process is termed as recursion.<\/p>\n
2. A function is called \u2018recursive\u2019 if a statement within the body of that function calls the same function.<\/p>\n
3. The most common example of a recursive function is the calculation of the factorial of a number. i.e., n! = (n) * (n-1)<\/p>\n
In the above formula, the second part (n-1)! is calling the formula again.
\nProgram:
\n
\n<\/p>\n
In the above example, the calling function main () gives the function call to fact () and co, To jumps from main () function to called function fact(). The argument \u2018n\u2019 value is compared with the base class \u2018if (n == 1)\u2019 if \u2018true\u2019 control will return back to calling function main().<\/p>\n
If \u2018False\u2019, control will execute the statement which is after \u2018else\u2019 x = n * fact ( n – 1);. here a function call is given to fact (n-1) with the parameter (n-1). Now the calling function is fact() and called function is also fact( ). The recursion ends when value of \u2018n\u2019 is 1 then the statement return (1) is initiated.<\/p>\n
<\/p>\n
Question 35.
\nWhat is a spread sheet? Explain any four formatting options in ESS.
\nAnswer:
\nA spread sheet is a document which is divided into rows and columns to store data such as items of an inventory, income, and expenses, salary statement, etc.<\/p>\n
Question 36.
\nExplain any five statistical functions in ESS.
\nAnswer:
\n1. = average() is a statistical functions that computes average of a series.
\n2. = max() function is used to find the maximum value of a series.
\n3. = min() function is used the find the minimum value of a series.
\n4. = count () function is used the return the number of values present in a series.
\n5. = stdev() function estimates the standard deviation based on a sample.<\/p>\n
Question 37.
\nExplain the different internet services.
\nAnswer:
\nThe services of internet are email, voice mail chat, Bullet inboard, newsgroup, FTP, WWW, etc.,<\/p>\n
1. email:
\nIt is a system for exchanging written, voice and video messages through a computer network. Some uses of email are as follows;<\/p>\n
\n- Messages can be sent 24 \u00d7 7 at any convenient time that suits the user.<\/li>\n
- Messages reach the recipient\u2019s mailbox within minutes.<\/li>\n
- Delivery of the messages can be confirmed.<\/li>\n<\/ul>\n
2. Voice Mail:
\nVoice mail messages are stored on hard disk drives, a media generally used by computers. Messages are recorded in digitized from the natural human voice. To retrieve messages, a user calls the system from any phone, logs on, and their messages can be retrieved immediately.<\/p>\n
3. Chat:
\nIt is an online communication between two users, through a computer on the internet. Once a chat has been initiated, either user can enter text by typing on the keyboard and the entered text will appear on the other user\u2019s monitor. Most networks and online services offer a chat facility.<\/p>\n
4. Bulletin Board:
\nIt is an electronic message center where people can post public messages, messages are placed on the computer so people can leave them for other people to read and see and erase when the need is oyen it is used, For example, to advertise things to buy or sell, announce events, or provide information.<\/p>\n
5. FTP:
\nIt is a standard network protocol used to exchange and manipulate files over a TCP\/ IP based network, such as the Internet. FTP is most commonly used to download a file from a server using the Internet or to upload a file to a server.<\/p>\n
6. Telnet:
\nTelnet stands for \u2018telecommunications network\u2019, and was built to be a form of remote control to manage mainframe computers from distant terminals. Telnet is a text-only protocol, and to user cannot see graphics or fancy images while working with Telnet, nor will they be able to transfer files with Telnet. Telnet is used to communicate with other computers and machines in a text-based manner.<\/p>\n","protected":false},"excerpt":{"rendered":"
Students can Download 1st PUC Computer Science Previous Year Question Paper March 2016 (North), Karnataka 1st PUC Computer Science Model Question Papers with Answers helps you to revise the complete Karnataka State Board Syllabus and score more marks in your examinations. Karnataka 1st PUC Computer Science Previous Year Question Paper March 2016 (North) Time: 3:15 …<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[81],"tags":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/kseebsolutions.guru\/wp-json\/wp\/v2\/posts\/17402"}],"collection":[{"href":"https:\/\/kseebsolutions.guru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kseebsolutions.guru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kseebsolutions.guru\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/kseebsolutions.guru\/wp-json\/wp\/v2\/comments?post=17402"}],"version-history":[{"count":0,"href":"https:\/\/kseebsolutions.guru\/wp-json\/wp\/v2\/posts\/17402\/revisions"}],"wp:attachment":[{"href":"https:\/\/kseebsolutions.guru\/wp-json\/wp\/v2\/media?parent=17402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kseebsolutions.guru\/wp-json\/wp\/v2\/categories?post=17402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kseebsolutions.guru\/wp-json\/wp\/v2\/tags?post=17402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}