SlideShare a Scribd company logo
Sample Paper 2
CLASS-XI
Subject : Computer Science (083)
Time: 3Hours Max. Marks: 70
Note. (i) All questions are compulsory.
(ii) Programming Language: C++
Q1.
a) What is computer? What are the characteristics of Computers? 2
b)What is an operating system? What are its functions? 2
c) What is the difference between Data and Information? 2
d) (i) Storage of 2 MB means the following number of kilobytes : 2
1) 2000 2) 1964 3) 2082 4) 2048
(ii) One Terabyte (TB) is equivalent to
1) 210 Bytes 2)220 Bytes 3) 230 Bytes 4) None of these.
e) What is difference between RAM and ROM? 2
f) Define System Software and what are its two main types?
Give examples. 2
g) What is Booting? 1
h) Which of the following are hardware and software? 1
(i) Transistor (ii) Internet Explorer (iii) Compiler (iv) FORTRAN 1
i) Expand the following: 2
i) CPU ii) EPROM iii) MICR iv) DVD-RW
Q2
a) What is the difference between Local Variable and Global Variable? 2
b) What is the difference between entry control and exit control loop
and give the example of each ? 2
c) What will be the size of following constants? 0.5x2=1
i) “class11tha1” ii) ‘n’
d) Write the corresponding C++ expressions for the following mathematical
expressions: 0.5x2=1
i) ut+ ft2 (ii) v-w/(a+b)9
e)Evaluate the following, where a, b, c are integers and d, f are floating point
numbers. 0.5x2=1
The value of a=16, b=4 and d=5
i) f = a * b + a/b ii) c = d+a + b % a
Q3
a) What is the output of the following? 2
i) # include<iostream.h>
void main ( )
{
int i=0;
for (i=1; i<=30;i++)
{
cout<<i<<endl;
i=i+2;
}
}
ii) #include<iostream.h> 2
void main()
{
int j=1,s=0;
while(j<10)
{
cout<<j<<”+”;
s=s+j;
j=j+j%3;
}
cout<<”=”<<s;
}
iii) What will be the output of the following program segment? 2
If input is as: (a) u (b) s (c) a (d) v
cin >>ch;
switch (ch)
{ case ‘u’: cout<<”Computer Science”;
case ‘s’: cout<<”Mathematics”;
break;
case ‘a’:
cout<<”Accoutant”; break;
default: cout<<” wrong choice”;
}
iv) Determine the output: 2
for(i=10;i<=100;i+=10)
{
j=i/2;
cout<<j<<””;
}
v)What output will be the following code fragment produce?
void main( )
{
int val, res, n=2000;
cin>>val;
res = n+val >2750 ? 1400:1200;
cout<<res;
}
(i) if val=3000 (ii) if val=2000 (iii) if val=1500 3
Q4.
a) Find the error from the following code segment and rewrite the corrected
code underlining the correction made. 2
# include<iostream.h>
#include<stdio.h>
void main ( )
{
struct Movie
{ char movie_name[20];
char movie_type;
int cost=100;
}M;
gets(movie_name);
gets(movie_type);
}
b) Convert the following code segment into switch case construct. 2
void main( )
{
int ch;
cin>>ch;
if(ch = = ‘p’)
{
cout<<“ Physics”;
}
else if(ch = = ‘e’)
{
cout<<“English ”;
}
else if(ch= =’c’)
{
cout<<“Computer Science”;
}
else
{
cout<<“Invalid Choice”;
}
}
c) Convert the following code segment into do while loop. 2
#include<iostream.h>
void main()
{ int i,sum=0;
for(i=1;i<=10;++i)
{
sum=sum+i;
cout<<”n”<<i;
}
cout<<”sum of all numbers:”<<sum<<endl;
}
Q5
a)Which header files are required for the following?Write their 4
use also
i)puts () ii) sqrt( ) iii) isalpha( ) iv) strlen( )
Q6
a) Write a C++ program to calculate the simple interest using function. 2
b) Write a C++ program to check a number for Armstrong or not. 2
c) Write a C++ program to enter any 20 number and find the sum of only
odd number by using array 2
d) Write a C++ program to design a menu for calculator and calculate the
following operations : 3
1 for addition, 2 for subtraction,3 for multiplication, 4 for division,
5 for exit the program.
e) What is difference between structure and union. 2
f) An array stores details of 20 students(rollno,name and marks in five
subjects).Write a program to create such an array and print out a list
of students who failed in more than one subjects.
Assume 40% as pass marks 2
Q7.
a)What do you mean by syntax error and semantics errors? 2
b)Why are logical errors harder to locate? 2
c)Define source code and object code? 2
d). What is bug in program? 1
e)What is prettyprinting ? 1
f)What is the significance of documentation in program? 1
g)What do you understand by run time error and give example? 1

More Related Content

PDF
Class xi sample paper (Computer Science)
PDF
Computer Science Sample Paper 2015
PDF
CBSE Question Paper Computer Science with C++ 2011
PDF
Sample Paper Class XI (Informatics Practices)
PDF
IP Sample paper 2 Class XI
PDF
CBSE Sample Paper IP
DOCX
Sample paper i.p
PDF
Redo midterm
Class xi sample paper (Computer Science)
Computer Science Sample Paper 2015
CBSE Question Paper Computer Science with C++ 2011
Sample Paper Class XI (Informatics Practices)
IP Sample paper 2 Class XI
CBSE Sample Paper IP
Sample paper i.p
Redo midterm

What's hot (20)

PDF
CDAC CCAT examination important question
PDF
Computer science-2010-cbse-question-paper
PDF
Core java
PDF
Cplus plus abd datastructure
PDF
Aloha paper for cdac ccpp
PDF
important C questions and_answers praveensomesh
PDF
C and data structure
RTF
CBSE Grade12, Computer Science, Sample Question Paper
PDF
Computer science sqp
PDF
GUESS FUNDAMENTAL PAPER FOE CCAT Feb 2014
PDF
C multiple choice questions and answers pdf
PDF
Oops Paper
PPTX
Object Oriented Programming - Value Types & Reference Types
DOCX
Xiicsmonth
PDF
CS Sample Paper 1
 
PPTX
Java Quiz
PDF
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
PDF
FP305 data structure june 2012
DOCX
Java level 1 Quizzes
PDF
6th Semester (Dec-2015; Jan-2016) Computer Science and Information Science En...
CDAC CCAT examination important question
Computer science-2010-cbse-question-paper
Core java
Cplus plus abd datastructure
Aloha paper for cdac ccpp
important C questions and_answers praveensomesh
C and data structure
CBSE Grade12, Computer Science, Sample Question Paper
Computer science sqp
GUESS FUNDAMENTAL PAPER FOE CCAT Feb 2014
C multiple choice questions and answers pdf
Oops Paper
Object Oriented Programming - Value Types & Reference Types
Xiicsmonth
CS Sample Paper 1
 
Java Quiz
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FP305 data structure june 2012
Java level 1 Quizzes
6th Semester (Dec-2015; Jan-2016) Computer Science and Information Science En...
Ad

Viewers also liked (10)

PDF
C++ questions And Answer
DOCX
Assignment c++12
PDF
Scan0011
PDF
Cbse class 10 computer science sample paper sa1 2014 (1)
PDF
Python for class 11 (CBSE Computer science sub code 083)
PDF
PDF
Revision notes for exam 2011 computer science with C++
PDF
computer science sample papers 3
PDF
+2 Computer Science - Volume II Notes
RTF
1st Year English Book Notes (HSSC-I)
C++ questions And Answer
Assignment c++12
Scan0011
Cbse class 10 computer science sample paper sa1 2014 (1)
Python for class 11 (CBSE Computer science sub code 083)
Revision notes for exam 2011 computer science with C++
computer science sample papers 3
+2 Computer Science - Volume II Notes
1st Year English Book Notes (HSSC-I)
Ad

Similar to Sample Paper 2 Class XI (Computer Science) (20)

PDF
CAPE Computer Science Unit 1 Paper 1 - Practice Paper
PPTX
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
PDF
Sample Questions for XII Computer Science (2).pdf
PDF
200 mcq c++(Ankit dubey)
PDF
NIMI COPA Question Bank Mock Test App MCQ
PDF
Model question paper_mc0061
PDF
CBSE XI COMPUTER SCIENCE
PPTX
lecture 2.2.2 2D array.pptx IUGLFHLHFJFY
PDF
Question Paper Code 065 informatic Practice New CBSE - 2021
PDF
C mcq practice test 4
PDF
DIGITAL FLUENCY MULTIPLE QUESTION ANSWERS
PPTX
Part - 2 Cpp programming Solved MCQ
PDF
LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdf
PDF
Latest mcqs
DOCX
CXC CSEC Information Technology Multiple Choice Questions
PDF
Bt0062 fundamentals of it model question paper
PDF
Gate-Cs 1994
PDF
DAC CCAT GUESS PAPER Jun-Jul 2013
PDF
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
DOCX
ExamName___________________________________MULTIPLE CH.docx
CAPE Computer Science Unit 1 Paper 1 - Practice Paper
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
Sample Questions for XII Computer Science (2).pdf
200 mcq c++(Ankit dubey)
NIMI COPA Question Bank Mock Test App MCQ
Model question paper_mc0061
CBSE XI COMPUTER SCIENCE
lecture 2.2.2 2D array.pptx IUGLFHLHFJFY
Question Paper Code 065 informatic Practice New CBSE - 2021
C mcq practice test 4
DIGITAL FLUENCY MULTIPLE QUESTION ANSWERS
Part - 2 Cpp programming Solved MCQ
LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdf
Latest mcqs
CXC CSEC Information Technology Multiple Choice Questions
Bt0062 fundamentals of it model question paper
Gate-Cs 1994
DAC CCAT GUESS PAPER Jun-Jul 2013
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
ExamName___________________________________MULTIPLE CH.docx

Recently uploaded (20)

PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
Complications of Minimal Access Surgery at WLH
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Updated Idioms and Phrasal Verbs in English subject
PDF
RMMM.pdf make it easy to upload and study
PPTX
Lesson notes of climatology university.
Microbial diseases, their pathogenesis and prophylaxis
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
LDMMIA Reiki Yoga Finals Review Spring Summer
What if we spent less time fighting change, and more time building what’s rig...
Complications of Minimal Access Surgery at WLH
UNIT III MENTAL HEALTH NURSING ASSESSMENT
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
History, Philosophy and sociology of education (1).pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Supply Chain Operations Speaking Notes -ICLT Program
Orientation - ARALprogram of Deped to the Parents.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Final Presentation General Medicine 03-08-2024.pptx
Updated Idioms and Phrasal Verbs in English subject
RMMM.pdf make it easy to upload and study
Lesson notes of climatology university.

Sample Paper 2 Class XI (Computer Science)

  • 1. Sample Paper 2 CLASS-XI Subject : Computer Science (083) Time: 3Hours Max. Marks: 70 Note. (i) All questions are compulsory. (ii) Programming Language: C++ Q1. a) What is computer? What are the characteristics of Computers? 2 b)What is an operating system? What are its functions? 2 c) What is the difference between Data and Information? 2 d) (i) Storage of 2 MB means the following number of kilobytes : 2 1) 2000 2) 1964 3) 2082 4) 2048 (ii) One Terabyte (TB) is equivalent to 1) 210 Bytes 2)220 Bytes 3) 230 Bytes 4) None of these. e) What is difference between RAM and ROM? 2 f) Define System Software and what are its two main types? Give examples. 2 g) What is Booting? 1 h) Which of the following are hardware and software? 1 (i) Transistor (ii) Internet Explorer (iii) Compiler (iv) FORTRAN 1 i) Expand the following: 2 i) CPU ii) EPROM iii) MICR iv) DVD-RW Q2 a) What is the difference between Local Variable and Global Variable? 2 b) What is the difference between entry control and exit control loop and give the example of each ? 2 c) What will be the size of following constants? 0.5x2=1 i) “class11tha1” ii) ‘n’ d) Write the corresponding C++ expressions for the following mathematical expressions: 0.5x2=1 i) ut+ ft2 (ii) v-w/(a+b)9 e)Evaluate the following, where a, b, c are integers and d, f are floating point numbers. 0.5x2=1 The value of a=16, b=4 and d=5 i) f = a * b + a/b ii) c = d+a + b % a
  • 2. Q3 a) What is the output of the following? 2 i) # include<iostream.h> void main ( ) { int i=0; for (i=1; i<=30;i++) { cout<<i<<endl; i=i+2; } } ii) #include<iostream.h> 2 void main() { int j=1,s=0; while(j<10) { cout<<j<<”+”; s=s+j; j=j+j%3; } cout<<”=”<<s; } iii) What will be the output of the following program segment? 2 If input is as: (a) u (b) s (c) a (d) v cin >>ch; switch (ch) { case ‘u’: cout<<”Computer Science”; case ‘s’: cout<<”Mathematics”; break; case ‘a’: cout<<”Accoutant”; break; default: cout<<” wrong choice”; }
  • 3. iv) Determine the output: 2 for(i=10;i<=100;i+=10) { j=i/2; cout<<j<<””; } v)What output will be the following code fragment produce? void main( ) { int val, res, n=2000; cin>>val; res = n+val >2750 ? 1400:1200; cout<<res; } (i) if val=3000 (ii) if val=2000 (iii) if val=1500 3 Q4. a) Find the error from the following code segment and rewrite the corrected code underlining the correction made. 2 # include<iostream.h> #include<stdio.h> void main ( ) { struct Movie { char movie_name[20]; char movie_type; int cost=100; }M; gets(movie_name); gets(movie_type); }
  • 4. b) Convert the following code segment into switch case construct. 2 void main( ) { int ch; cin>>ch; if(ch = = ‘p’) { cout<<“ Physics”; } else if(ch = = ‘e’) { cout<<“English ”; } else if(ch= =’c’) { cout<<“Computer Science”; } else { cout<<“Invalid Choice”; } } c) Convert the following code segment into do while loop. 2 #include<iostream.h> void main() { int i,sum=0; for(i=1;i<=10;++i) { sum=sum+i; cout<<”n”<<i; } cout<<”sum of all numbers:”<<sum<<endl; } Q5 a)Which header files are required for the following?Write their 4
  • 5. use also i)puts () ii) sqrt( ) iii) isalpha( ) iv) strlen( ) Q6 a) Write a C++ program to calculate the simple interest using function. 2 b) Write a C++ program to check a number for Armstrong or not. 2 c) Write a C++ program to enter any 20 number and find the sum of only odd number by using array 2 d) Write a C++ program to design a menu for calculator and calculate the following operations : 3 1 for addition, 2 for subtraction,3 for multiplication, 4 for division, 5 for exit the program. e) What is difference between structure and union. 2 f) An array stores details of 20 students(rollno,name and marks in five subjects).Write a program to create such an array and print out a list of students who failed in more than one subjects. Assume 40% as pass marks 2 Q7. a)What do you mean by syntax error and semantics errors? 2 b)Why are logical errors harder to locate? 2 c)Define source code and object code? 2 d). What is bug in program? 1 e)What is prettyprinting ? 1 f)What is the significance of documentation in program? 1 g)What do you understand by run time error and give example? 1