CBSE Class 11 Computer Science Sample Paper 2013 (4)


Sample Paper - IV

Subject – Computer Science

Time: 3Hours

Maximum Marks: 70

Note. (i) All questions are compulsory.


a.Differentiate between primary memory and secondary memory.. Give examples of each type of memory. 

A)The memory inside the CPU is primary memory (main memory) and the memory outside it is known as secondary(auxiliary) memory.

Primary Memory: RAM (Random Access Memory) and ROM (Read only Memory) comes under primary memory. RAM is volatile memory and ROM is non volatile memory. All the data and programs must be stored in RAM for execution. But the content of RAM is not permanent. Eg: RAM, ROM.

Secondary Memory: Since primary memory has a limited storage capacity and is not permanent, secondary storage devices are used to store large amount of data permanently. There are various types of secondary devices available these days. Eg: Hard disks, Floppy disks ----- Magnetic Media CD ROMS, DVDs ----- Optical Media

b. What is the difference between semantics error and syntax error? Give an example of each.

A) 1.Syntax Errors: Syntax errors occur when rules of a programming language are misused. Syntax refers to formal rules governing the construction of valid statements in a language. Eg: int a,b //Did not keep ; (semicolon) at the end of statement.

2.Semantics Error: Semantic errors occur when statements are not meaningful. Semantics refers to the set of rules which give the meaning of a statement. Eg: X * Y = Z;

(Siva plays Guitar is Syntactically and Semantically correct but Guitar plays Siva is Syntactically correct but Semantically incorrect).

c. What do you meant by a lexical unit? Give an example. 

A) Token: The smallest individual unit in a program is known as a token (Lexical Unit). There are 5 types of tokens.

     (i) Keywords     (ii) Identifiers     (iii) Literals     (iv) Punctuators      (v) Operators

d. what is relation between Microprocessor and Microcomputer 

Ans. Microcomputer is a computer that contain a Microprocessor

e. Briefly Distinguish between a general purpose and special purpose computer 


a. what is the shortcut menu ? what is its significance 

b. what is the significance of Recycle Bin 

c. Explain the concept of time sharing 

d. What is meant by the term multiprogramming and multitasking 

e .Explain briefly the function performed by an operating system as processor manager. 


a. 4.Differentiate between object oriented programming and procedural oriented programming with the help of examples of each. 

A. Procedure Oriented Programming: A program in a procedural language is a list of instructions where each statement tells the computer to do something. The focus is on the processing. There is no much security for the data.

Object Oriented Programming: The object oriented approach views a problem in terms of objects involved rather than procedure for doing it. In object oriented programming, object represents an entity that can store data and has its interface through functions

b.Distinguish between if and switch statement. 

A)The if-else and switch both are selection statements and they both let you select an alternative out of given many alternatives by testing an expression. But there are some differences in their operations.

(i) The switch statement differs from the if statement in that switch can only test for equality whereas if can evaluate a relational or logical expression. Ie multiple conditions.

(ii) The switch statement selects its branches by testing the value of same variable whereas the if else construction lets you use a series of expressions that may involve unrelated variables and complex expressions.

(iii) The if-else can handle ranges whereas switch cannot.

c.Differentiate between call by value and call by reference with help of an example. 

A)(i)In call by value, actual arguments will be copied into the formal perameters. In call by reference, formal perameters are references to the actual arguments.

(ii)In call by value, if any modification is occurred to the formal perameter, that change will not reflect back to the actual argument. In call by reference, if any modification is occurred to the formal perameter (reference to the actual argument), the actual argument value will be changed.

(iii) We should go for call by value when we don’t want to modify the original value. We should go for call by value when we want to modify the original value.

(iv) Example:

              void Change(int a, int &b)

                     { a= 2*a;



Here a is called by “call by value” method and b is called by “call by reference” So as the value of a is changed, actual argument for a will not be changed, as the value of b is changed, actual argument for b will be changed

d.Write the names of the header files of the following functions.

              i)getch()                          ii) isalpha()                 iii)strcpy()        iv)sqrt() 

A)          (i) getch( ) - conio.h          (ii)isalpha( ) – ctype.h

             (iii)strcpy( ) - string.h         (iv)sqrt( ) - math.h

Please refer to attached file for CBSE Class 11 Computer Science Sample Paper 2013 (4)

No votes yet
Enter your CBSE Academics username.
Enter the password that accompanies your username.
4 + 1 =