SlideShare a Scribd company logo
1 of 49
XII CBSE
Previous Year
Question Paper
QUESTION NO
1 (F)
2 or 3 Marks
1. (f) What are Nested Structures ? Give an
example. Delhi 2006 2
(f) —
Note: Students are exposed to the concept of
“Structures” and “Nested
Loops”, but not exposed specifically to the concept of
“Nested structures”.
So benefit of doubt should be given to the students.
(2 marks for correct definition or example)
OR
(Full 2 marks to be awarded to the students who
have scored at least
1 mark in the entire Q. No. 1 i.e. from 1(a) to 1(f))
2. (f) What is a default constructor ? How does
it differ from destructor ? OD 2006 2
(f) A constructor that accepts no parameters is
called the default constructor. The compiler
supplies a default constructor, if a class has no
explicit constructor defined. It initializes the data
members by a dummy value. It is also used to
create objects with default values.
Destructor is used to destroy the objects and
deallocate the memory resources that have been
allocated by a constructor. It has same name as
the class preceded by tilde (~). It takes no
arguments and no return types can be
specified.
(1 mark for each correct definition /
example of default constructor)
(1 mark for any difference / correct
definition / correct example for
destructor)
3. (f) In the following C++ program what is the
expected value of Myscore from Options (i) to
(iv) given below. Justify your answer.
Delhi 2007 2
#include<stdlib.h>
#include<iostream.h>
void main( )
{
randomize();
int Score[] = {25,20,34,56, 72, 63}, Myscore;
Myscore = Score[2 + random(2)];
3. (f) In the following C++ program what is the
expected value of Myscore from Options (i) to
(iv) given below. Justify your answer.
Delhi 2007 2
cout<<Myscore<<endl; }
(i) 25
(ii) 34
(iii) 20
(iv) None of the above
(f) (ii) 34
(1 Mark for the correct answer)
(1 Mark for the correct justification)
4. (f) In the following C++ program what is the
expected value of MyMarks from Options (i)
to (iv) given below. Justify answer.
OD 2007 2
#include<stdlib.h >
# include<iostream.h>
void main ()
{
randomize ();
int Marks [ ]= {99, 92, 94, 96, 93, 95},
MyMarks;
MyMarks = Marks [1 + random (2) ];
4. (f) In the following C++ program what is the
expected value of MyMarks from Options (i)
to (iv) given below. Justify answer.
OD 2007 2
cout<<MyMarks<<endl;
}
(i) 99 (ii) 94
(iii) 96 (iv) None of the above
(f)
(ii) 94
(1 Mark for correct answer)
(1 Mark for correct justification)
5 (f) In the following program, find the correct
possible output(s) from the options:
Delhi 2008 2
#include<stdlib.h>
#include<iostream.h>
void main ( )
{
randomize ( ) ;
char City [ ] [10] = {“DEL”, “CHN”, “KOL”,
“BOM”, “BNG”};
int Fly;
5 (f) In the following program, find the correct
possible output(s) from the options:
Delhi 2008 2
for (int I=0;I<3;I++)
{
Fly=random (2)+ 1;
cout<<City[Fly]<<”:” ;
} }
outputs:
(i) DEL:CHN:KOL:
(ii) CHN:KOL:CHN:
(iii) KOL:BOM:BNG:
(iv) KOL:CHN :KOL:
Ans:
(ii) & (iv)
(2 Marks for mentioning both correct options)
OR
(1 Mark for mentioning anyone correct option)
6 (f) In the following program, find the correct
possible output(s) from the options:
OD 2008 2
#include<stdlib.h>
#include<iostream.h>
void main ( )
{
randomize() ;
char Area [ ] [10] = {‘‘NORTH”, ‘‘SOUTH”,
“EAST”, “WEST”} ;
int ToGo;
for (int I=0; 1<3; 1++)
{
6 (f) In the following program, find the correct
possible output(s) from the options:
OD 2008 2
ToGo = random(2) +1;
cout<<Area [ToGo]<<” : “;
}
}
outputs:
(i) SOUTH:EAST:SOUTH:
(ii) NORTH:SOUTH:EAST:
(iii) SOUTH:EAST:WEST:
(iv) SOUTH:EAST:EAST:
Ans:
(i) and (iv)
(2 Mark for the correct answer)
OR
(1 Mark for anyone of the option)
7 (f) Study the following program and select
the possible output from it :
Delhi 2009 2
#include <iostream.h>
#include <stdlib.h>
const int LIMIT = 4 ;
void main ( )
{
randomize ( ) ;
int Points;
Points = 100 + random(LIMIT) ;
for (int P=Points ; P>=100 ; P– –)
7 (f) Study the following program and select
the possible output from it :
Delhi 2009 2
cout<<P<<“#” ;
cout<<endl;
}
(i) 103#102#101#100#
(ii) 100#101#102#103#
(iii) 100#101#102#103#104#
(iv) 104#103#102#101#100#
Ans
(i) 103#102#101#100#
(2 Marks for mentioning correct option)
Note: No Marks to be awarded for any other
answer
8 (f) Study the following program and select
the possible output from it :
OD 2009 2
#include <iostream.h>
#include <stdlib.h>
const int MAX=3 ;
void main ( )
{
randomize( ) ;
int Number ;
Number = 50 + random{MAX) ;
for (int P=Number; P>=50; P– –)
8 (f) Study the following program and select
the possible output from it :
OD 2009 2
cout<<p<< “ # ” ;
cout<<endl;
}
(i) 53#52#51#50#
(ii) 50#51#52#
(iii) 50#51#
(iv) 51#50#
Ans
(iv) 51#50#
(2 Marks for mentioning correct option)
Note: No Marks to be awarded for any other
answer
9. (f) The following code is from a game, which
generates a set of 4 random numbers. Yallav
is playing this game, help him to identify the
correct option(s) out of the four choices given
below as the possible set of such numbers
generated from the program code so that he
wins the game. Justify your answer.
Delhi 2010 2
#include <iostream.h>
#include <stdlib.h>
const int LOW=15;
void main ( )
{
randomize( ) ;
int POINT=5, Number;
for (int 1=1;I<=4;I++)
{
Number=LOW+random(POINT) ;
cout<<Number<<“:” ;
POINT--;
} }
(i) 19:16:15:18:
(ii) 14:18:15:16:
(iii) 19:16:14:18:
(iv) 19:16:15:16:
Ans. (iv) 19:16:15:16:
Justification is as follows:
I POINT Number
Minimum Maximum
1 5 15 19
2 4 15 18
3 3 15 17
4 2 15 16
The only option that satisfies these values is
option (iv).
(1 Mark for mentioning correct option)
(1 Mark for any valid justification)
Note: Only ½ Mark to be given if only options (i) & (iv) are
mentioned as correct options; no other combination of options
is acceptable;
10 (f) The following code is from a game,
which generates a set of 4 random numbers.
Praful is playing this game, help him to identify
the correct option(s) out of the four choices
given below as the possible set of such
numbers generated from the program code so
that he wins the game. Justify your answer.
OD2010 2
#include <iostream.h>
#include <stdlib.h>
const int LOW=25;
void main ()
{
randomize();
int P01NT=5,Number;
for (int I=1;I<=4;I++)
{
Number=LOW+random(POINT);
Cout<<Number<<“:”;
P0INT--;
}
}
(i) 29:26:25:28:
(ii) 24:28:25:26:
(iii) 29:26:24:28:
(iv) 29:26:25:26:
Ans. (iv) 29:26:25:26:
Justification is as follows:
I POINT Number
Minimum Maximum
1 5 25 29
2 4 25 28
3 3 25 27
4 2 25 26
The only option that satisfies these values is option (iv).
(1 Mark for mentioning correct option)
(1 Mark for any valid justification)
Note: Only ½ Mark to be given if only options (i) & (iv) are
mentioned as
correct options; no other combination of options is acceptable;
11 (f) Go through the C++ code shown below,
and find out the possible output or outputs
from the suggested Output Options (i) to (iv).
Also, write the least value and highest value,
which can be assigned to the variable Guess.
Delhi 2011 2
#include <iostream.h>
#include <stdlib.h>
void main ( )
{
randomize ( ) ;
int Guess, High=4;
11 (f) Go through the C++ code shown below,
and find out the possible output or outputs
from the suggested Output Options (i) to (iv).
Also, write the least value and highest value,
which can be assigned to the variable Guess.
Delhi 2011 2
for{int C=Guess ; C<=55 ; C++)
cout<<C<<"#" ;
}
(i) 50 # 51 # 52 # 53 # 54 # 55 #
(ii) 52 # 53 # 54 # 55
(iii) 53 # 54 #
(iv) 51 # 52 # 53 # 54 # 55
Ans
(i) 50 # 51 # 52 # 53 # 54 # 55 #
Least value 50
Highest value 53
(1 Mark for mentioning correct option (i))
( ½ Mark for mentioning correct Least value
of Guess)
(½ Mark for mentioning correct Highest value
of Guess)
12 (f) Go through the C++ code shown below,
and find out the possible output or outputs
from the suggested Output Options (i) to (iv).
Also, write the minimum and maximum values,
which can be assigned to the variable MyNum.
OD 2011 2
#include<iostream.h>
#include <stdlib.h>
void main ( )
{
randomize ( ) ;
int MyNum, Max=5;
MyNum = 20 + random (Max) ;
12 (f) Go through the C++ code shown below,
and find out the possible output or outputs
from the suggested Output Options (i) to (iv).
Also, write the minimum and maximum values,
which can be assigned to the variable MyNum.
OD 2011 2
for (int N=MyNum; N<=25;N++)
cout<N<"*";
}
(i) 20*21*22*23*24*25
(ii) 22*23*24*25*
(iii) 23*24*
(iv) 21*22*23*24*25
Ans
ii) 22*23*24*25*
Minimum value 20
Maximum value 24
(1 Marks for mentioning correct option)
(½ Mark for mentioning correct minimum value
of MyNum)
(½ Marie for mentioning correct maximum
value of MyNum)
13 (f) In the following program, if the value of N
given by the user is 15, what maximum and
minimum values the program could possibly
display? SAMPLE PAPER 2009 SET I 2
#include <iostream.h>
#include <stdlib.h>
void main()
{
int N,Guessme;
randomize();
cin>>N;
Guessme=random(N)+10;
cout<<Guessme<<endl;
}
Answer:
Maximum Value: 24 Minimum Value: 10
(1 Mark for writing correct minimum value)
(1 Mark for writing correct maximum value)
14(f)In the following program, if the value of N
given by the user is 20, what maximum and
minimum values the program could possibly
display? SAMPLE PAPER 2009 SET II
2
#include <iostream.h>
#include <stdlib.h>
void main()
{
int N,Guessnum;
randomize();
cin>>N;
Guessnum=random(N-10)+10;
cout<<Guessnum<<endl;
}
Answer:
Maximum Value: 19 Minimum Value: 10
(1 Mark for writing correct minimum value)
(1 Mark for writing correct maximum value)
15 (f) In the following program, if the value of Guess
entered by the user is 65, what will be the expected
output(s) from the following options (i), (ii), (iii) and
(iv)?
SAMPLE PAPER 2010 SET I 2
#include <iostream.h>
#include <stdlib.h>
void main()
{
int Guess;
randomize();
cin>>Guess;
for (int I=1;I<=4;I++)
{
15 (f) In the following program, if the value of Guess
entered by the user is 65, what will be the expected
output(s) from the following options (i), (ii), (iii) and
(iv)?
SAMPLE PAPER 2010 SET I 2
New=Guess+random(I);
cout<<(char)New;
}
}
(i) ABBC
(ii) ACBA
(iii) BCDA
(iv) CABD
(f) (i) ABBC 2
(2 Marks for mentioning correct option)
16 (f) In the following program, if the value of
N given by the user is 20, what maximum
and minimum values the program could
possibly display?
SAMPLE PAPER 2010 SET II 2
#include <iostream.h>
#include <stdlib.h>
void main()
{
int N,Guessnum;
randomize();
cin>>N;
16 (f) In the following program, if the value of
N given by the user is 20, what maximum
and minimum values the program could
possibly display?
SAMPLE PAPER 2010 SET II 2
Guessnum=random(N-10)+10;
cout<<Guessnum<<endl;
}
ANS: (f)
Maximum Value: 19 Minimum Value: 10
(2 Marks for correct values)
SAMPLE PAPER 2012 SET I 2
SAMPLE PAPER 2012 SET I 2
SAMPLE PAPER 2012 SET II 2
SAMPLE PAPER 2012 SET II 2
THAN
K
YOU

More Related Content

What's hot

CIS 115 Effective Communication - tutorialrank.com
CIS 115  Effective Communication - tutorialrank.comCIS 115  Effective Communication - tutorialrank.com
CIS 115 Effective Communication - tutorialrank.comBartholomew18
 
Develop Embedded Software Module-Session 3
Develop Embedded Software Module-Session 3Develop Embedded Software Module-Session 3
Develop Embedded Software Module-Session 3Naveen Kumar
 
Class xi sample paper (Computer Science)
Class xi sample paper (Computer Science)Class xi sample paper (Computer Science)
Class xi sample paper (Computer Science)MountAbuRohini
 
Develop Embedded Software Module-Session 2
Develop Embedded Software Module-Session 2Develop Embedded Software Module-Session 2
Develop Embedded Software Module-Session 2Naveen Kumar
 
Cis 115 Extraordinary Success/newtonhelp.com
Cis 115 Extraordinary Success/newtonhelp.com  Cis 115 Extraordinary Success/newtonhelp.com
Cis 115 Extraordinary Success/newtonhelp.com amaranthbeg143
 
Computer Science Sample Paper 2015
Computer Science Sample Paper 2015Computer Science Sample Paper 2015
Computer Science Sample Paper 2015Poonam Chopra
 
Python programming workshop session 2
Python programming workshop session 2Python programming workshop session 2
Python programming workshop session 2Abdul Haseeb
 
Sample Paper 2 Class XI (Computer Science)
Sample Paper 2 Class XI (Computer Science)Sample Paper 2 Class XI (Computer Science)
Sample Paper 2 Class XI (Computer Science)Poonam Chopra
 
CS Sample Paper 1
CS Sample Paper 1CS Sample Paper 1
CS Sample Paper 1kvs
 
CIS 115 Achievement Education--cis115.com
CIS 115 Achievement Education--cis115.comCIS 115 Achievement Education--cis115.com
CIS 115 Achievement Education--cis115.comagathachristie170
 
12th CBSE Practical File
12th CBSE Practical File12th CBSE Practical File
12th CBSE Practical FileAshwin Francis
 
2014 computer science_question_paper
2014 computer science_question_paper2014 computer science_question_paper
2014 computer science_question_papervandna123
 
CIS 115 Education Counseling--cis115.com
CIS 115 Education Counseling--cis115.comCIS 115 Education Counseling--cis115.com
CIS 115 Education Counseling--cis115.comclaric59
 
Programming with c language practical manual
Programming with c language practical manualProgramming with c language practical manual
Programming with c language practical manualAnil Bishnoi
 
IP Sample paper 2 Class XI
IP Sample paper 2 Class XI IP Sample paper 2 Class XI
IP Sample paper 2 Class XI Poonam Chopra
 
CIS 115 Education for Service--cis115.com
CIS 115 Education for Service--cis115.com  CIS 115 Education for Service--cis115.com
CIS 115 Education for Service--cis115.com williamwordsworth10
 

What's hot (20)

CIS 115 Effective Communication - tutorialrank.com
CIS 115  Effective Communication - tutorialrank.comCIS 115  Effective Communication - tutorialrank.com
CIS 115 Effective Communication - tutorialrank.com
 
Develop Embedded Software Module-Session 3
Develop Embedded Software Module-Session 3Develop Embedded Software Module-Session 3
Develop Embedded Software Module-Session 3
 
Class xi sample paper (Computer Science)
Class xi sample paper (Computer Science)Class xi sample paper (Computer Science)
Class xi sample paper (Computer Science)
 
Develop Embedded Software Module-Session 2
Develop Embedded Software Module-Session 2Develop Embedded Software Module-Session 2
Develop Embedded Software Module-Session 2
 
Cis 115 Extraordinary Success/newtonhelp.com
Cis 115 Extraordinary Success/newtonhelp.com  Cis 115 Extraordinary Success/newtonhelp.com
Cis 115 Extraordinary Success/newtonhelp.com
 
Computer Science Sample Paper 2015
Computer Science Sample Paper 2015Computer Science Sample Paper 2015
Computer Science Sample Paper 2015
 
Qno 1 (e)
Qno 1 (e)Qno 1 (e)
Qno 1 (e)
 
Python programming workshop session 2
Python programming workshop session 2Python programming workshop session 2
Python programming workshop session 2
 
Sample Paper 2 Class XI (Computer Science)
Sample Paper 2 Class XI (Computer Science)Sample Paper 2 Class XI (Computer Science)
Sample Paper 2 Class XI (Computer Science)
 
CS Sample Paper 1
CS Sample Paper 1CS Sample Paper 1
CS Sample Paper 1
 
PECCS 2014
PECCS 2014PECCS 2014
PECCS 2014
 
CIS 115 Achievement Education--cis115.com
CIS 115 Achievement Education--cis115.comCIS 115 Achievement Education--cis115.com
CIS 115 Achievement Education--cis115.com
 
Qno 1 (c)
Qno 1 (c)Qno 1 (c)
Qno 1 (c)
 
Cs practical file
Cs practical fileCs practical file
Cs practical file
 
12th CBSE Practical File
12th CBSE Practical File12th CBSE Practical File
12th CBSE Practical File
 
2014 computer science_question_paper
2014 computer science_question_paper2014 computer science_question_paper
2014 computer science_question_paper
 
CIS 115 Education Counseling--cis115.com
CIS 115 Education Counseling--cis115.comCIS 115 Education Counseling--cis115.com
CIS 115 Education Counseling--cis115.com
 
Programming with c language practical manual
Programming with c language practical manualProgramming with c language practical manual
Programming with c language practical manual
 
IP Sample paper 2 Class XI
IP Sample paper 2 Class XI IP Sample paper 2 Class XI
IP Sample paper 2 Class XI
 
CIS 115 Education for Service--cis115.com
CIS 115 Education for Service--cis115.com  CIS 115 Education for Service--cis115.com
CIS 115 Education for Service--cis115.com
 

Viewers also liked (20)

8 Pointers
8 Pointers8 Pointers
8 Pointers
 
4 Classes & Objects
4 Classes & Objects4 Classes & Objects
4 Classes & Objects
 
Qno 1 (b)
Qno 1 (b)Qno 1 (b)
Qno 1 (b)
 
Qno 2 (a)
Qno 2 (a)Qno 2 (a)
Qno 2 (a)
 
Qno 2 (b)
Qno 2 (b)Qno 2 (b)
Qno 2 (b)
 
6 Inheritance
6 Inheritance6 Inheritance
6 Inheritance
 
Qno 2 (c)
Qno 2 (c)Qno 2 (c)
Qno 2 (c)
 
Qno 3 (a)
Qno 3 (a)Qno 3 (a)
Qno 3 (a)
 
9 Arrays
9 Arrays9 Arrays
9 Arrays
 
Computer Overview
Computer OverviewComputer Overview
Computer Overview
 
10 Linked Lists Sacks and Queues
10 Linked Lists Sacks and Queues10 Linked Lists Sacks and Queues
10 Linked Lists Sacks and Queues
 
User Defined Functions
User Defined FunctionsUser Defined Functions
User Defined Functions
 
Structures
StructuresStructures
Structures
 
Getting Started with C++
Getting Started with C++Getting Started with C++
Getting Started with C++
 
Stacks & Queues By Ms. Niti Arora
Stacks & Queues By Ms. Niti AroraStacks & Queues By Ms. Niti Arora
Stacks & Queues By Ms. Niti Arora
 
Pointer in c++ part1
Pointer in c++ part1Pointer in c++ part1
Pointer in c++ part1
 
C++ Notes by Hisham Ahmed Rizvi for Class 12th Board Exams
C++ Notes by Hisham Ahmed Rizvi for Class 12th Board ExamsC++ Notes by Hisham Ahmed Rizvi for Class 12th Board Exams
C++ Notes by Hisham Ahmed Rizvi for Class 12th Board Exams
 
Linked list
Linked listLinked list
Linked list
 
CBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL PresentationCBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL Presentation
 
CBSE XII Boolean Algebra
CBSE XII Boolean AlgebraCBSE XII Boolean Algebra
CBSE XII Boolean Algebra
 

Similar to XII CBSE Previous Year Question Paper QUESTION NO 1 (F) 2 or 3 MarksBased on the given document, here is a concise SEO-optimized title of less than 40 characters:TITLECBSE Class 12 Previous Year QPs Solved Q1(F) 2-3 Marks

computer science sample papers 2
computer science sample papers 2computer science sample papers 2
computer science sample papers 2Swarup Kumar Boro
 
CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011Deepak Singh
 
Question Paper Code 065 informatic Practice New CBSE - 2021
Question Paper Code 065 informatic Practice New CBSE - 2021 Question Paper Code 065 informatic Practice New CBSE - 2021
Question Paper Code 065 informatic Practice New CBSE - 2021 FarhanAhmade
 
Cis 115 Education Organization / snaptutorial.com
Cis 115 Education Organization / snaptutorial.comCis 115 Education Organization / snaptutorial.com
Cis 115 Education Organization / snaptutorial.comBaileya126
 
Module wise format oops questions
Module wise format oops questionsModule wise format oops questions
Module wise format oops questionsSANTOSH RATH
 
Cis 115 Education Organization -- snaptutorial.com
Cis 115   Education Organization -- snaptutorial.comCis 115   Education Organization -- snaptutorial.com
Cis 115 Education Organization -- snaptutorial.comDavisMurphyB99
 
Cis 115 Effective Communication / snaptutorial.com
Cis 115  Effective Communication / snaptutorial.comCis 115  Effective Communication / snaptutorial.com
Cis 115 Effective Communication / snaptutorial.comBaileyao
 
CIS 115 Exceptional Education - snaptutorial.com
CIS 115   Exceptional Education - snaptutorial.comCIS 115   Exceptional Education - snaptutorial.com
CIS 115 Exceptional Education - snaptutorial.comDavisMurphyB33
 
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docxSpring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docxrafbolet0
 
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12chinthala Vijaya Kumar
 
Cis 115 Enhance teaching / snaptutorial.com
Cis 115  Enhance teaching / snaptutorial.comCis 115  Enhance teaching / snaptutorial.com
Cis 115 Enhance teaching / snaptutorial.comHarrisGeorg51
 
Computer science ms
Computer science msComputer science ms
Computer science msB Bhuvanesh
 
CIS 115 Education in iCounseling ---cis115.com
CIS 115 Education in  iCounseling ---cis115.comCIS 115 Education in  iCounseling ---cis115.com
CIS 115 Education in iCounseling ---cis115.comclaric59
 
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paperInformatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paperHarish Gyanani
 
Binary addition using class concept in c++
Binary addition using class concept in c++Binary addition using class concept in c++
Binary addition using class concept in c++Swarup Boro
 
90 Informatics Practices.pdf
90 Informatics Practices.pdf90 Informatics Practices.pdf
90 Informatics Practices.pdfvikas500500
 

Similar to XII CBSE Previous Year Question Paper QUESTION NO 1 (F) 2 or 3 MarksBased on the given document, here is a concise SEO-optimized title of less than 40 characters:TITLECBSE Class 12 Previous Year QPs Solved Q1(F) 2-3 Marks (20)

computer science sample papers 2
computer science sample papers 2computer science sample papers 2
computer science sample papers 2
 
CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011
 
Question Paper Code 065 informatic Practice New CBSE - 2021
Question Paper Code 065 informatic Practice New CBSE - 2021 Question Paper Code 065 informatic Practice New CBSE - 2021
Question Paper Code 065 informatic Practice New CBSE - 2021
 
Cbse marking scheme 2006 2011
Cbse marking scheme 2006  2011Cbse marking scheme 2006  2011
Cbse marking scheme 2006 2011
 
Cis 115 Education Organization / snaptutorial.com
Cis 115 Education Organization / snaptutorial.comCis 115 Education Organization / snaptutorial.com
Cis 115 Education Organization / snaptutorial.com
 
CBSE 12 ip 2018 sample paper
CBSE 12 ip 2018 sample paperCBSE 12 ip 2018 sample paper
CBSE 12 ip 2018 sample paper
 
Module wise format oops questions
Module wise format oops questionsModule wise format oops questions
Module wise format oops questions
 
Cis 115 Education Organization -- snaptutorial.com
Cis 115   Education Organization -- snaptutorial.comCis 115   Education Organization -- snaptutorial.com
Cis 115 Education Organization -- snaptutorial.com
 
Cis 115 Effective Communication / snaptutorial.com
Cis 115  Effective Communication / snaptutorial.comCis 115  Effective Communication / snaptutorial.com
Cis 115 Effective Communication / snaptutorial.com
 
CIS 115 Exceptional Education - snaptutorial.com
CIS 115   Exceptional Education - snaptutorial.comCIS 115   Exceptional Education - snaptutorial.com
CIS 115 Exceptional Education - snaptutorial.com
 
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docxSpring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docx
 
operators.ppt
operators.pptoperators.ppt
operators.ppt
 
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
 
Cis 115 Enhance teaching / snaptutorial.com
Cis 115  Enhance teaching / snaptutorial.comCis 115  Enhance teaching / snaptutorial.com
Cis 115 Enhance teaching / snaptutorial.com
 
Computer science ms
Computer science msComputer science ms
Computer science ms
 
Review version 4
Review version 4Review version 4
Review version 4
 
CIS 115 Education in iCounseling ---cis115.com
CIS 115 Education in  iCounseling ---cis115.comCIS 115 Education in  iCounseling ---cis115.com
CIS 115 Education in iCounseling ---cis115.com
 
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paperInformatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
 
Binary addition using class concept in c++
Binary addition using class concept in c++Binary addition using class concept in c++
Binary addition using class concept in c++
 
90 Informatics Practices.pdf
90 Informatics Practices.pdf90 Informatics Practices.pdf
90 Informatics Practices.pdf
 

More from Praveen M Jigajinni

Chapter 09 design and analysis of algorithms
Chapter 09  design and analysis of algorithmsChapter 09  design and analysis of algorithms
Chapter 09 design and analysis of algorithmsPraveen M Jigajinni
 
Chapter 06 constructors and destructors
Chapter 06 constructors and destructorsChapter 06 constructors and destructors
Chapter 06 constructors and destructorsPraveen M Jigajinni
 
Chapter 04 object oriented programming
Chapter 04 object oriented programmingChapter 04 object oriented programming
Chapter 04 object oriented programmingPraveen M Jigajinni
 
Chapter 8 getting started with python
Chapter 8 getting started with pythonChapter 8 getting started with python
Chapter 8 getting started with pythonPraveen M Jigajinni
 
Chapter 7 basics of computational thinking
Chapter 7 basics of computational thinkingChapter 7 basics of computational thinking
Chapter 7 basics of computational thinkingPraveen M Jigajinni
 
Chapter 6 algorithms and flow charts
Chapter 6  algorithms and flow chartsChapter 6  algorithms and flow charts
Chapter 6 algorithms and flow chartsPraveen M Jigajinni
 

More from Praveen M Jigajinni (20)

Chapter 09 design and analysis of algorithms
Chapter 09  design and analysis of algorithmsChapter 09  design and analysis of algorithms
Chapter 09 design and analysis of algorithms
 
Chapter 08 data file handling
Chapter 08 data file handlingChapter 08 data file handling
Chapter 08 data file handling
 
Chapter 07 inheritance
Chapter 07 inheritanceChapter 07 inheritance
Chapter 07 inheritance
 
Chapter 06 constructors and destructors
Chapter 06 constructors and destructorsChapter 06 constructors and destructors
Chapter 06 constructors and destructors
 
Chapter 05 classes and objects
Chapter 05 classes and objectsChapter 05 classes and objects
Chapter 05 classes and objects
 
Chapter 04 object oriented programming
Chapter 04 object oriented programmingChapter 04 object oriented programming
Chapter 04 object oriented programming
 
Chapter 03 python libraries
Chapter 03 python librariesChapter 03 python libraries
Chapter 03 python libraries
 
Chapter 02 functions -class xii
Chapter 02   functions -class xiiChapter 02   functions -class xii
Chapter 02 functions -class xii
 
Unit 3 MongDB
Unit 3 MongDBUnit 3 MongDB
Unit 3 MongDB
 
Chapter 17 Tuples
Chapter 17 TuplesChapter 17 Tuples
Chapter 17 Tuples
 
Chapter 15 Lists
Chapter 15 ListsChapter 15 Lists
Chapter 15 Lists
 
Chapter 14 strings
Chapter 14 stringsChapter 14 strings
Chapter 14 strings
 
Chapter 13 exceptional handling
Chapter 13 exceptional handlingChapter 13 exceptional handling
Chapter 13 exceptional handling
 
Chapter 10 data handling
Chapter 10 data handlingChapter 10 data handling
Chapter 10 data handling
 
Chapter 9 python fundamentals
Chapter 9 python fundamentalsChapter 9 python fundamentals
Chapter 9 python fundamentals
 
Chapter 8 getting started with python
Chapter 8 getting started with pythonChapter 8 getting started with python
Chapter 8 getting started with python
 
Chapter 7 basics of computational thinking
Chapter 7 basics of computational thinkingChapter 7 basics of computational thinking
Chapter 7 basics of computational thinking
 
Chapter 6 algorithms and flow charts
Chapter 6  algorithms and flow chartsChapter 6  algorithms and flow charts
Chapter 6 algorithms and flow charts
 
Chapter 5 boolean algebra
Chapter 5 boolean algebraChapter 5 boolean algebra
Chapter 5 boolean algebra
 
Chapter 4 number system
Chapter 4 number systemChapter 4 number system
Chapter 4 number system
 

Recently uploaded

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Recently uploaded (20)

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

XII CBSE Previous Year Question Paper QUESTION NO 1 (F) 2 or 3 MarksBased on the given document, here is a concise SEO-optimized title of less than 40 characters:TITLECBSE Class 12 Previous Year QPs Solved Q1(F) 2-3 Marks

  • 1. XII CBSE Previous Year Question Paper QUESTION NO 1 (F) 2 or 3 Marks
  • 2. 1. (f) What are Nested Structures ? Give an example. Delhi 2006 2 (f) — Note: Students are exposed to the concept of “Structures” and “Nested Loops”, but not exposed specifically to the concept of “Nested structures”. So benefit of doubt should be given to the students. (2 marks for correct definition or example) OR (Full 2 marks to be awarded to the students who have scored at least 1 mark in the entire Q. No. 1 i.e. from 1(a) to 1(f))
  • 3. 2. (f) What is a default constructor ? How does it differ from destructor ? OD 2006 2 (f) A constructor that accepts no parameters is called the default constructor. The compiler supplies a default constructor, if a class has no explicit constructor defined. It initializes the data members by a dummy value. It is also used to create objects with default values. Destructor is used to destroy the objects and deallocate the memory resources that have been allocated by a constructor. It has same name as
  • 4. the class preceded by tilde (~). It takes no arguments and no return types can be specified. (1 mark for each correct definition / example of default constructor) (1 mark for any difference / correct definition / correct example for destructor)
  • 5. 3. (f) In the following C++ program what is the expected value of Myscore from Options (i) to (iv) given below. Justify your answer. Delhi 2007 2 #include<stdlib.h> #include<iostream.h> void main( ) { randomize(); int Score[] = {25,20,34,56, 72, 63}, Myscore; Myscore = Score[2 + random(2)];
  • 6. 3. (f) In the following C++ program what is the expected value of Myscore from Options (i) to (iv) given below. Justify your answer. Delhi 2007 2 cout<<Myscore<<endl; } (i) 25 (ii) 34 (iii) 20 (iv) None of the above
  • 7. (f) (ii) 34 (1 Mark for the correct answer) (1 Mark for the correct justification)
  • 8. 4. (f) In the following C++ program what is the expected value of MyMarks from Options (i) to (iv) given below. Justify answer. OD 2007 2 #include<stdlib.h > # include<iostream.h> void main () { randomize (); int Marks [ ]= {99, 92, 94, 96, 93, 95}, MyMarks; MyMarks = Marks [1 + random (2) ];
  • 9. 4. (f) In the following C++ program what is the expected value of MyMarks from Options (i) to (iv) given below. Justify answer. OD 2007 2 cout<<MyMarks<<endl; } (i) 99 (ii) 94 (iii) 96 (iv) None of the above
  • 10. (f) (ii) 94 (1 Mark for correct answer) (1 Mark for correct justification)
  • 11. 5 (f) In the following program, find the correct possible output(s) from the options: Delhi 2008 2 #include<stdlib.h> #include<iostream.h> void main ( ) { randomize ( ) ; char City [ ] [10] = {“DEL”, “CHN”, “KOL”, “BOM”, “BNG”}; int Fly;
  • 12. 5 (f) In the following program, find the correct possible output(s) from the options: Delhi 2008 2 for (int I=0;I<3;I++) { Fly=random (2)+ 1; cout<<City[Fly]<<”:” ; } } outputs: (i) DEL:CHN:KOL: (ii) CHN:KOL:CHN: (iii) KOL:BOM:BNG: (iv) KOL:CHN :KOL:
  • 13. Ans: (ii) & (iv) (2 Marks for mentioning both correct options) OR (1 Mark for mentioning anyone correct option)
  • 14. 6 (f) In the following program, find the correct possible output(s) from the options: OD 2008 2 #include<stdlib.h> #include<iostream.h> void main ( ) { randomize() ; char Area [ ] [10] = {‘‘NORTH”, ‘‘SOUTH”, “EAST”, “WEST”} ; int ToGo; for (int I=0; 1<3; 1++) {
  • 15. 6 (f) In the following program, find the correct possible output(s) from the options: OD 2008 2 ToGo = random(2) +1; cout<<Area [ToGo]<<” : “; } } outputs: (i) SOUTH:EAST:SOUTH: (ii) NORTH:SOUTH:EAST: (iii) SOUTH:EAST:WEST: (iv) SOUTH:EAST:EAST:
  • 16. Ans: (i) and (iv) (2 Mark for the correct answer) OR (1 Mark for anyone of the option)
  • 17. 7 (f) Study the following program and select the possible output from it : Delhi 2009 2 #include <iostream.h> #include <stdlib.h> const int LIMIT = 4 ; void main ( ) { randomize ( ) ; int Points; Points = 100 + random(LIMIT) ; for (int P=Points ; P>=100 ; P– –)
  • 18. 7 (f) Study the following program and select the possible output from it : Delhi 2009 2 cout<<P<<“#” ; cout<<endl; } (i) 103#102#101#100# (ii) 100#101#102#103# (iii) 100#101#102#103#104# (iv) 104#103#102#101#100#
  • 19. Ans (i) 103#102#101#100# (2 Marks for mentioning correct option) Note: No Marks to be awarded for any other answer
  • 20. 8 (f) Study the following program and select the possible output from it : OD 2009 2 #include <iostream.h> #include <stdlib.h> const int MAX=3 ; void main ( ) { randomize( ) ; int Number ; Number = 50 + random{MAX) ; for (int P=Number; P>=50; P– –)
  • 21. 8 (f) Study the following program and select the possible output from it : OD 2009 2 cout<<p<< “ # ” ; cout<<endl; } (i) 53#52#51#50# (ii) 50#51#52# (iii) 50#51# (iv) 51#50#
  • 22. Ans (iv) 51#50# (2 Marks for mentioning correct option) Note: No Marks to be awarded for any other answer
  • 23. 9. (f) The following code is from a game, which generates a set of 4 random numbers. Yallav is playing this game, help him to identify the correct option(s) out of the four choices given below as the possible set of such numbers generated from the program code so that he wins the game. Justify your answer. Delhi 2010 2 #include <iostream.h> #include <stdlib.h> const int LOW=15;
  • 24. void main ( ) { randomize( ) ; int POINT=5, Number; for (int 1=1;I<=4;I++) { Number=LOW+random(POINT) ; cout<<Number<<“:” ; POINT--; } } (i) 19:16:15:18: (ii) 14:18:15:16: (iii) 19:16:14:18: (iv) 19:16:15:16:
  • 25. Ans. (iv) 19:16:15:16: Justification is as follows: I POINT Number Minimum Maximum 1 5 15 19 2 4 15 18 3 3 15 17 4 2 15 16 The only option that satisfies these values is option (iv). (1 Mark for mentioning correct option) (1 Mark for any valid justification) Note: Only ½ Mark to be given if only options (i) & (iv) are mentioned as correct options; no other combination of options is acceptable;
  • 26. 10 (f) The following code is from a game, which generates a set of 4 random numbers. Praful is playing this game, help him to identify the correct option(s) out of the four choices given below as the possible set of such numbers generated from the program code so that he wins the game. Justify your answer. OD2010 2 #include <iostream.h> #include <stdlib.h> const int LOW=25;
  • 27. void main () { randomize(); int P01NT=5,Number; for (int I=1;I<=4;I++) { Number=LOW+random(POINT); Cout<<Number<<“:”; P0INT--; } } (i) 29:26:25:28: (ii) 24:28:25:26: (iii) 29:26:24:28: (iv) 29:26:25:26:
  • 28. Ans. (iv) 29:26:25:26: Justification is as follows: I POINT Number Minimum Maximum 1 5 25 29 2 4 25 28 3 3 25 27 4 2 25 26 The only option that satisfies these values is option (iv). (1 Mark for mentioning correct option) (1 Mark for any valid justification) Note: Only ½ Mark to be given if only options (i) & (iv) are mentioned as correct options; no other combination of options is acceptable;
  • 29. 11 (f) Go through the C++ code shown below, and find out the possible output or outputs from the suggested Output Options (i) to (iv). Also, write the least value and highest value, which can be assigned to the variable Guess. Delhi 2011 2 #include <iostream.h> #include <stdlib.h> void main ( ) { randomize ( ) ; int Guess, High=4;
  • 30. 11 (f) Go through the C++ code shown below, and find out the possible output or outputs from the suggested Output Options (i) to (iv). Also, write the least value and highest value, which can be assigned to the variable Guess. Delhi 2011 2 for{int C=Guess ; C<=55 ; C++) cout<<C<<"#" ; } (i) 50 # 51 # 52 # 53 # 54 # 55 # (ii) 52 # 53 # 54 # 55 (iii) 53 # 54 # (iv) 51 # 52 # 53 # 54 # 55
  • 31. Ans (i) 50 # 51 # 52 # 53 # 54 # 55 # Least value 50 Highest value 53 (1 Mark for mentioning correct option (i)) ( ½ Mark for mentioning correct Least value of Guess) (½ Mark for mentioning correct Highest value of Guess)
  • 32. 12 (f) Go through the C++ code shown below, and find out the possible output or outputs from the suggested Output Options (i) to (iv). Also, write the minimum and maximum values, which can be assigned to the variable MyNum. OD 2011 2 #include<iostream.h> #include <stdlib.h> void main ( ) { randomize ( ) ; int MyNum, Max=5; MyNum = 20 + random (Max) ;
  • 33. 12 (f) Go through the C++ code shown below, and find out the possible output or outputs from the suggested Output Options (i) to (iv). Also, write the minimum and maximum values, which can be assigned to the variable MyNum. OD 2011 2 for (int N=MyNum; N<=25;N++) cout<N<"*"; } (i) 20*21*22*23*24*25 (ii) 22*23*24*25* (iii) 23*24* (iv) 21*22*23*24*25
  • 34. Ans ii) 22*23*24*25* Minimum value 20 Maximum value 24 (1 Marks for mentioning correct option) (½ Mark for mentioning correct minimum value of MyNum) (½ Marie for mentioning correct maximum value of MyNum)
  • 35. 13 (f) In the following program, if the value of N given by the user is 15, what maximum and minimum values the program could possibly display? SAMPLE PAPER 2009 SET I 2 #include <iostream.h> #include <stdlib.h> void main() { int N,Guessme; randomize(); cin>>N; Guessme=random(N)+10; cout<<Guessme<<endl; }
  • 36. Answer: Maximum Value: 24 Minimum Value: 10 (1 Mark for writing correct minimum value) (1 Mark for writing correct maximum value)
  • 37. 14(f)In the following program, if the value of N given by the user is 20, what maximum and minimum values the program could possibly display? SAMPLE PAPER 2009 SET II 2 #include <iostream.h> #include <stdlib.h> void main() { int N,Guessnum; randomize(); cin>>N; Guessnum=random(N-10)+10; cout<<Guessnum<<endl; }
  • 38. Answer: Maximum Value: 19 Minimum Value: 10 (1 Mark for writing correct minimum value) (1 Mark for writing correct maximum value)
  • 39. 15 (f) In the following program, if the value of Guess entered by the user is 65, what will be the expected output(s) from the following options (i), (ii), (iii) and (iv)? SAMPLE PAPER 2010 SET I 2 #include <iostream.h> #include <stdlib.h> void main() { int Guess; randomize(); cin>>Guess; for (int I=1;I<=4;I++) {
  • 40. 15 (f) In the following program, if the value of Guess entered by the user is 65, what will be the expected output(s) from the following options (i), (ii), (iii) and (iv)? SAMPLE PAPER 2010 SET I 2 New=Guess+random(I); cout<<(char)New; } } (i) ABBC (ii) ACBA (iii) BCDA (iv) CABD
  • 41. (f) (i) ABBC 2 (2 Marks for mentioning correct option)
  • 42. 16 (f) In the following program, if the value of N given by the user is 20, what maximum and minimum values the program could possibly display? SAMPLE PAPER 2010 SET II 2 #include <iostream.h> #include <stdlib.h> void main() { int N,Guessnum; randomize(); cin>>N;
  • 43. 16 (f) In the following program, if the value of N given by the user is 20, what maximum and minimum values the program could possibly display? SAMPLE PAPER 2010 SET II 2 Guessnum=random(N-10)+10; cout<<Guessnum<<endl; }
  • 44. ANS: (f) Maximum Value: 19 Minimum Value: 10 (2 Marks for correct values)
  • 45. SAMPLE PAPER 2012 SET I 2
  • 46. SAMPLE PAPER 2012 SET I 2
  • 47. SAMPLE PAPER 2012 SET II 2
  • 48. SAMPLE PAPER 2012 SET II 2