D.A.V PUBLIC SCHOOLS, RANCHI ZONE FIRST SUMMATIVE ASSESSMENT CLASS - XI COMPUTER SCIENCE

Similar documents
BRAIN INTERNATIONAL SCHOOL. Term-I Class XI Sub: Computer Science Revision Worksheet

CAMBRIDGE SCHOOL, NOIDA ASSIGNMENT 1, TOPIC: C++ PROGRAMMING CLASS VIII, COMPUTER SCIENCE

BLUE PRINT SUBJECT: - COMPUTER SCIENCE(083) CLASS-XI. Unit Wise Marks

Sample Paper Class XI Subject Computer Sience UNIT TEST II

I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK a) What is the difference between Hardware and Software? Give one example for each.

AHLCON PUBLIC SCHOOL, MAYUR VIHAR I, DELHI ASSIGNMENT CLASS XI Session Chapter 1: Computer Overview

ADARSH VIDYA KENDRA NAGERCOIL COMPUTER SCIENCE. Grade: IX C++ PROGRAMMING. Department of Computer Science 1

ASSIGNMENT CLASS-11 COMPUTER SCIENCE [C++]

BRAIN INTERNATIONAL SCHOOL Term-II Class-XI Sub:- Computer Science Revision Sheet

16. What is the significance of the break statement in a switch block?

1. Answer the following : a) What do you mean by Open Source Software. Give an example. (2)

COMPUTER SCIENCE (083)

Scheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C

KENDRIYA VIDYALAYA SANGATHAN, GUWAHATI REGION HALF-YEARLY EXAMINATION-2015 CLASS XI : COMPUTER SCIENCE Time Allotted : 3 hrs. Max.

COMPUTER SCIENCE (083)

SBOA SCHOOL & JUNIOR COLLEGE, CHENNAI 101 COMPUTER SCIENCE CLASS: XI HALF YEARLY EXAMINATION MAX MARKS:70 CODE - A DURATION : 3 Hours

Downloaded from

CLASS-XI COMPUTER SCIENCE

The Hyderabad Public School, Begumpet, Hyderabad, A.P

UNIT- 3 Introduction to C++

WT I (SET-I) Date: Class XI Sec. Time: 1 Hr. 10 min. Computer Science M.M.: 30

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

Lecture 4. 1 Statements: 2 Getting Started with C++: LESSON FOUR

Chapter 1. Computer Overview

Question Bank (SPA SEM II)

Basic Source Character Set for C++ Language:

Control Structure and Loop Statements

Downloaded from

C++ is case sensitive language, meaning that the variable first_value, First_Value or FIRST_VALUE will be treated as different.

PART I. Part II Answer to all the questions 1. What is meant by a token? Name the token available in C++.

I Internal Examination Sept Class: - BCA I Subject: - Principles of Programming Lang. (BCA 104) MM: 40 Set: A Time: 1 ½ Hrs.

CSci 1113 Midterm 1. Name: Student ID:

C Programming Multiple. Choice

CHAPTER 4 FUNCTIONS. 4.1 Introduction

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100

CHAPTER-6 GETTING STARTED WITH C++

DEPARTMENT OF MATHS, MJ COLLEGE

COMPUTER APPLICATION

Multiple Choice Questions ( 1 mark)

Dept. of Computer Sc., SDP College for Women, Ludhiana

INDIAN SCHOOL SOHAR FIRST TERM EXAM ( ) INFORMATICS PRACTICES

DELHI PUBLIC SCHOOL TAPI

6.096 Introduction to C++ January (IAP) 2009

OBJECT ORIENTED PROGRAMMING. Ms. Ajeta Nandal C.R.Polytechnic,Rohtak

Split up Syllabus (Session )

Questions Bank. 14) State any four advantages of using flow-chart

Downloaded from

Differentiate Between Keywords and Identifiers

A Freshman C++ Programming Course

void main() { int global=7 ; func( ::global,global) ; cout<<global<<, <<::global<< \n ; func(global,::global) ; cout<<global<<, <<::global<< \n ; }

'C' Programming Language

Creating a C++ Program

VARIABLE, OPERATOR AND EXPRESSION [SET 1]

C++ Programs(CONDITIONAL CONSTRUCTS & LOOPS)

Sample Paper - II Subject Computer Science

Character Set. The character set of C represents alphabet, digit or any symbol used to represent information. Digits 0, 1, 2, 3, 9

Presented By : Gaurav Juneja

Java Notes. 10th ICSE. Saravanan Ganesh

Data type of a pointer must be same as the data type of the variable to which the pointer variable is pointing. Here are a few examples:

2. Distinguish between a unary, a binary and a ternary operator. Give examples of C++ operators for each one of them.

C++ character set Letters:- A-Z, a-z Digits:- 0 to 9 Special Symbols:- space + - / ( ) [ ] =! = < >, $ # ; :? & White Spaces:- Blank Space, Horizontal

The Hyderabad Public School Begumpet, Hyderabad, A.P.

Computers Programming Course 7. Iulian Năstac

Fundamentals of C. Structure of a C Program

(i) Describe in detail about the classification of computers with their features and limitations(10)

m) sin() n) endl o) getch() p) cout

BITG 1233: Introduction to C++

Examination for the Second Term - Academic Year H Mid-Term. Name of student: ID: Sr. No.

I BCA[ ] SEMESTER I CORE: C PROGRAMMING - 106A Multiple Choice Questions.

b) Give the output of the following program: 6,70,70 2,70 210,282,59290

C C++ C++! "# C++ ++

VOLUME II CHAPTER 9 INTRODUCTION TO C++ HANDS ON PRACTICE PROGRAMS

2.1. Chapter 2: Parts of a C++ Program. Parts of a C++ Program. Introduction to C++ Parts of a C++ Program

PROGRAMMING FUNDAMENTALS

UNIT IV INTRODUCTION TO C

IECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23.

3. Functions. Modular programming is the dividing of the entire problem into small sub problems that can be solved by writing separate programs.

A First Program - Greeting.cpp

St. Teresa School A Temple of Learning Shakti Khand II, Indirapuram, Ghaziabad Holiday Assignment ( ) Class: XI

خ ث ح 13:10 14:00 خ ث ح 51:51 16:11 ر ن 09:41 11:11 ر ن

C++ PROGRAMMING SKILLS Part 2 Programming Structures

Operators and Expressions in C & C++ Mahesh Jangid Assistant Professor Manipal University, Jaipur

Additional Questions

Name :. Roll No. :... Invigilator s Signature :.. CS/B.TECH (NEW)/SEM-2/CS-201/ BASIC COMPUTATION & PRINCIPLES OF COMPUTER PROGRAMMING

Programming - 1. Computer Science Department 011COMP-3 لغة البرمجة 1 لطالب كلية الحاسب اآللي ونظم المعلومات 011 عال- 3

P.E.S. INSTITUTE OF TECHNOLOGY BANGALORE SOUTH CAMPUS 1 ST INTERNAL ASSESMENT TEST (SCEME AND SOLUTIONS)

SHARDA UNIVERSITY SCHOOL OF ENGINEERING & TECHNOLOGY Mid Term Examination, (Odd Term, ) SOLUTION

1. a) What #include statement do you put at the top of a program that does uses cin, cout or endl?

Introduction to Algorithms and Programming (COMP151)

Basic program The following is a basic program in C++; Basic C++ Source Code Compiler Object Code Linker (with libraries) Executable

3-Rewrite the following program code using a Switch statement: 2

Topics: Material through example 19 (types, operators, expressions, functions, selection, loops, arrays)

Kapi ap l S e S hgal P T C p t u er. r S. c S ienc n e A n A k n leshw h ar ar Guj u arat C C h - 8

Computers Programming Course 5. Iulian Năstac

Tribhuvan University Institute of Science and Technology 2065

Decision Making and Branching

PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Basic Science and Humanities

CSCE Practice Midterm. Data Types

MA 511: Computer Programming Lecture 3: Partha Sarathi Mandal

vinodsrivastava.wordpress.com Question Bank Term-1

Transcription:

D.A.V PUBLIC SCHOOLS, RANCHI ZONE FIRST SUMMATIVE ASSESSMENT 2011-2012 CLASS - XI COMPUTER SCIENCE Q1. Input a number and then print the sum of the digits. [4] Q2. Input a number and then print its reverse. [4] Q3. Input a number and then check whether it is prime or not. [4] Q4. Input 10 numbers in an array and then print the largest number [4] Q5. WAP which will accept a character and then check whether the character is an alphabet, a number or a special symbol. [4] Q6. WAP which will accept 16 number in a 20 array size 4x4 and then print the sum of diagonal elements (Both Left and Right) [4] Q7. How you can provide alternatives names for a data-type. Describe using example. [4] Q8. What is the difference between entry controlled and exit controlled loop. Q9. Differentiate between POST increment and PRE increment operators using example. Q10. Differentiate between the statement 1 and 2 [1] int x = 5; x+=5; 11---------------- Statement 1 x=+5; 11---------------- Statement 2 Q11 Differentiate between the statement 1 and 2 [1] signed int x ; 11---------------- Statement 1 unsigned int x ; 11---------------- Statement 2 Q12. Guess the output r1+3+3+3=1 0] void maino int x =5,y=7; x=(y=y+x,x=x+y); cout«x«" " «y; W) void maino int y,z; int x[]=2,5,8,4; for (y=o;y<=3;y++) for( z=o;z<=y;z++) x[z]= x[z]+y; for (y=o;y<=3;y++) cout«x[y]; void maino. int x=l,y=2,z=3; for ( ; x<=4;x++) for (y=4;y>=x;y--) cout«z; z++; cout«endl; void maino int x=5, y=2; y=x++ + ++x + y++; cout«x«y«endl; x= x+y; y=x+y; cout«x++«x++«endl; cout«++y«++y«endl;

Q13 Convert the following decimal numbers into binary: i) 255 ii) 106 iii) 84.5 014 Convert the following binary numbers into decimal: Q15 i) 10110 ii) 101011 iii) 1110~OO.011 Convert (11011010101110h to hexadecimal 016 Convert 488C 16 to binary. Q17 Convert FACE 16 to binary. Q18 Convert A2F 1 6 to octal. Q19 Q20 What is the function of Memory? What are its measuring units? What are the three types of computers? Q21. What are the characteristics of a good program? Q22. Differentiate between Run Time Errors and Logical Errors Q23 Why do we use comments? Q24. What is the use of indentation? Explain. Q25. What is meant by Top down design? Q26. Find the error(s) Viod maino for (y=1; y<=10;y++) cout»y+10;..

-, ~n-.~g - to~6.-' ~.- <""?- Class:XI - ~. 21~']h J"--0r.or)/O~> (0/ (Jol 0))2(1;' ~ h taj< AA 1(r;tr\A- I l 0 IV r-,. " ba~ Put) ~ ~chool, Ranch. Zone c!cl-jj-:>sj. D, '. ~ st Term Examination 2012-2013 RDf)"..,O?:!I. Sub: Computer Science Time: 3 Hr M.M : 70 1.a) What are the different hardware components of computer. X ~Write the names of any four Antivirus Software? c) Differentiate between dot matrix and inkjet printer. d) Write difference between binary and decimal no. system. e) Expand the following: (i) ASCII (ii) ISCII f) Convert following decimal no. into its equivalent binary no (i) (106)10 (ii) (41.25)10 g) Convert the following into decimal equivalent: (i) (10101.011h.2/.31-5(ii) (111011h h) Convert the octal number (127.3)8 into its decimal equivalent. i) Write the binary equivalent of the hexadecimal (BAD)16 (J 0 I) / 0 I 0 I J 0 V S [1] [1] t.4z 2,~ What is pre-processor directive? Discuss its use in C++. b)'. Name the header files under which the following functions run: i) powo ii) c1rscro c) Rewrite the corrected version after removing the error(s) from the given program: (Underline each correction] #include <isotream.h> #include <conio.h> void maino ---7 ~~~ ~'h) grscro; in t a b c= 50000' ~J' I unsigned int.x = -~4; cout«"enter three nos \n" cin»a»b» G;. sum = a + b + c; cout«x«pow(a,b); [1] Write the output after carefully studying the following code: void maino.. int X[6] = 22,3;4:7;12,65,a=0; while(a<=5) if(x[a]%2==0) cout«x[a] - 2«endl; a++; cout«a«end/; 3~ b) c) 4.a) Write a program to input a number and then print its reverse. (Example: if input number is 356 : output will be 653 Write importance of documentation and indentation of a C++ program. Give example. What is the difference between Runtime errors and Syntax errors? Explain the stages of program development process. Why is main( ) function essential for all C++ programs? [3] [4]

What is the difference between unary and binary operators? What is the difference between 'A' and "A"? Explain briefly about basic and derived data types with suitable example. What is wrong with following declarations: AC;onst float pi;. ii) int x = 50000; iii) char st = uashwin" iv) int y = 2.8; Evaluate int X = a++ + ++a - --b + b-- + ++b + b++ + a++ + ++b if a = 2 and b= 3. Write output of : cout«a++ + ++a + a++ + ++a - --a; if a = 3. lv Write the output if a = 2 and b = 5 : i) cout«++a; -.3 ii) cout«b++; ~ fa = 2, b= 3 and c = 4,what is the value of Ans = (a+b»c && (c-a) > b II a= ::b. y 9 )1 [1] [1] [1].~~.-;~._,. Convert the following if-else statement into conditional statement (ternary operator if(msalary >=25000) tax = salary *.10; else tax = 0; What will be output of following code if a is entered as i) 5 and ii) 0 int a,b=3; cin»a; if(a) b = at+ - 1; cout«"a="«a«end/; cout«'b="«b«endl; Write the output of following program(all header files are present) int i=0,a=1,b=2,c=3,d=4; while(i<=5) switchi++ ) case 1 ~ ++a; break; case 2: ++a; case 3: ++b; break; I\:~ case 4: ++c; case 5: 'f ++d; default: ++d; i++; cout«a«" u«b«" U «c«" u«d«" u«i«endj;,.' #

N~i11 be the output of following two code fragments if the input for a and b is given as i) a = 30, b = 30 and ii) a = 60, b = 70. : '! INersion-1 INersion-2, int i=20,j=10; int i=10,j=20; if(a<100) if(a<100) ++j; cout«i«" if(b>50) ++i; u«j«endl; if(b>50) ++i; else ++j; ~) cout«i«" u«j«endl; 6.a) Write a program which will store 10 numbers~n an array and then print the largest number from the array [4] b) Write a program which will store 10 numbers in an array and then count total odd numbers present in the array. [4]

/ DAV Public School, Ranchi Zone 1st Term Examination 2010-2011 Class:XI Sub: Computer Science Answer all the questions: 1.a) Write differences b~tween interpreter and compiler. b) Briefly explain ab0tf. 3 rd and 4 th generation of computer. c) What is analog ailf digital computer? Give 1 example for each types. d) Differentiate between impact and non impact printer with example. e) Explain about super computers developed by India. (2] 2.a) What is pre-processor directive? Discuss its use in C++. b) Name the header files under which the following functions run : [1] i) gets() ii) getch() c) Rewrite the corrected version after removing the eitor(s) from the given program: [Underline each correction].- #include <isotream.h> #include <conio.h>. void main () Clrscr(); int a,b,c= 50000; unsigned int x = -34; cout«"enter three nob \n" cin»a»b; sum = a + b + c; cout«x«pow(a,p); I - - Write the output after carefully studying the following code: void main () int X[6] = 22,3,4,7,12,65,a=0; while (a<=5) if(x[a]%2==0) cout«x[a) - 2«endl; cout«a«endl; Write a program to print sum of following: S =_(1)+ (1+2) +(1+2+3 N) Write a program to input a no. and print the sum of all digits of the no. (Example: ifno. is 356 : (3 + 5 + 6 = 14)

3.a) Why is maino function essential for all C++ programs? b) Discuss ways to give comments in a program. Show it with example. c). What is the difference between unary and binary operators? Justify with example. d) What are punctuators in C++? Write names and uses of two. e) What is the difference between 'r' and "r"? f Explain briefly about basic and derived data types.write two names of basic and derived data types. g) What is wrong with following declarations: [4] i) const float pi; ii) int x = 50000; iii) char st[20] = "Ash win" iv) unsigned int x = -45; g) Evaluate int X = art + ++a - --b + b-- + ++b + b++ + a++ + ++b if a = 2 and b= 3. [1] h) Write equivalent statement in C++ for: a 2 + b 3 + c 4 + ut + 'li ae [1] i) Write the output if a = 2 and b = 5: i) cout«++a; ii) cout«b++; [I] j) Ifa = 2, b= 3 and c = 4,what is the value of Ans:= (a+b»c && (c-a) > b II a= =b. [1] 4.a) What is the difference between while and do while loops? Justify with example. b) Convert the following if-else statement into single conditional statement: if(msalary>=25000) tax salary *.10; What will be output of following code if a is input as i) 5 and ii) 0 int a,b=3; cin»a; if (a) b = a++ - 1; cout«ua=u«a«endl; cout«ub=u«b«endl; What will be the output of following two code fragments: //Version-1 //Version-2 int i=20,j=10; int i=10,j=20; if(a<100) if(a<100) if (b>50) i'f(b>50) ++i; ++j; cout«i«u "«j«endl; else ++j; cout«i«u "«j«endl; If the input given is i) a = 30, b = 30 and ii) a = 60, b = 70. Study the following code carefully and rewrite it in for loop: int x = 5; while(x>=-5) cout«x«endl; x-=5; cout«x;

Write the output of following program(all header files are present) int i=o,a=o,b=o,c=o,d=o; while (i<=5) switch(i++) case 1 break; case 2 ++a; case 3 ++b; break; case 4 ++c; case 5 ++d; default : ++d; i++; cout«a«u "«b«u " «c«u "«d«u "«i«endl; 5.a) What is an array? Discuss its need in e++. Show example to justify. b) An array of integers Num[500] stores numbers which contains odd nos., even nos. and also nos. completely divisible by 5 and 7. Write a program to print [4J i) the total nos. of odd nos. ii) total nos. of even nos and iii) nos. completely divisible by 5 and 7. c) An organization stores salary of 1000 employees and wants to know how many employees are drawing salary more than 25000. If the employees are drawing more than Rs. 25000.00 tax is calculated as 10% of salary and deduction is made while salary is paid. Write a program in e++ to store salaries of 1000 employees and.change the value by deducting 10% of the salary if it exceeds Rs 25000.00. [4] [Ex: if salary is 30000.0Q. then it will be 30000.00-3000.00 = 27000.00]