CBSE Computer Science sample paper1 Class XI 2011
http://www.cbseguess.com/-------------------------------------------------------------------------------------------------------www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com Sample Paper – 2011 Class – XI Subject -Computer Science -----------------------------------------------------------------------------------------------------------------------General Instructions: 1. All Questions are compulsory. 2. Programming Language is C++. ------------------------------------------------------------------------------------------------------------------------1. i) State the basic units of the computer and give function of each of the unit . 2 ii) What is difference between interpreter and complier? 2 iii) Explain briefly the major innovations in generations of computer. 3 iv) write short on booting process 2 v) Expand the following: BIOS, ASCII 1 2 . i) Define operating system ?Give the 2 examples of operating systems 2 ii) What are the functions of the operating system? 3 iii) Write the 4-examples of DOS commands. 2 iv)Explain the different types of Operating Systems 3 3. i) What are the difference between a keyword and an identifier? 2 ii) How will you include comments in c++? How many types of comments are there in c++ language? 2 iii) Why include iostream.h in c++ programming 2 iv) What do you mean by cascading ?.Give the examples. 2 v) What are the differences between syntax and runtime errors? Give example. 2 4. i) Write a short notes on Fundamental data types . 3 ii) What is type coasting ? Explain with example. 2 iii) Distinguish between a unary, binary and a ternary operator. Give example of c++ operators for each one of them. 3 iv) Write the equivalent C++ expression for the following expressions: 2 a) x2 b) p+q/(r+s)4 5. i) Define Flow chart and Algorithm . 2 ii) Draw a flowchart that picks the largest of three given numbers 3 iii) Write an algorithm to find whether a given number is odd or even 3 iv) Draw the symbol used in the flow chart for connector and comments(annotations) 2 6. i) Name the header files required for successful execution of a program that uses the following components: 1 i) getch() ii) ceil( ) http://www.cbseguess.com/-------------------------------------------------------------------------------------------------------www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com ii) Write a program in C++ to accept marks in five subjects for a student and display the average mark. 3 iii) Write a program in c++ to convert temperature in Celcious to Fahrenheit? 3 iv) What will be the output of the following code fragment? 3 . . . int year; cin>> year; if((year % 100= =0) && (year%400= =0)) { cout<<”Leap”; } else cout<<” Not a century year. If the input given is i) 2000 ii) 1900 iii) 1971 7. i) Predict and correct the logical error present in the following code fragment: 1 if(k=1) cout<<”ONE”; else cout<<” NOT ONE”; ii) Write a program to calculate the area of a circle or triangle or rectangle according to the choice given by the user. 3 iii) Write a program to print whether a given character is an uppercase or lowercase or a digit or any other character. Use ASCII for it .The ASCII codes are as given below : 4 Characters ASCII range ‘ o’ -‘9’ 48 -57 ‘A’ -‘Z’ 65 -90 ‘a’ -‘z’ 97 -122 Other characters 0 -125 excluding the above mentioned Codes iv) Convert the following conditional statement into its equivalent if-else statement. N=((a
Description
This content is useful for CBSE Students
Presentation Transcript
Your Facebook Friends on WizIQ