SlideShare a Scribd company logo
XII CBSE
Previous Year
Question Paper
QUESTION NO
1 (a)
1 OR 2 Marks
1
1. (a) Name the header file to
which the following belong
1
(i) abs( )
(ii) isupper( ) 2006
Delhi
1. (a) (i) math.h (ii) ctype.h
2
1. (a) Name the header file to which
the following belong :
1
(i) pow()
(ii) random() 2006
OD
1. (a) (i) math.h / complex.h (ii)
3
1. (a) Differentiate between a Logical
Error and Syntax Error. Also give
suitable examples of each in C++. 2
2007 Delhi
1. (a) Logical Error:
Error occurred due to incorrect logic applied by the
programmer.
Syntax Error:
Error occurred due to not following the proper
grammar/syntax of the language
OR
Error occurred due to violating rules of the
programming language
Example:
//Program to find area and perimeter of rectangle
void main()
{
int A,B,AR,P;
A=10;
B=20;
AR=2*(A*B); //Logical Error – Wrong Formula
P=2*(A+B);
cout<<A<<P>>endl; //Syntax Error – Use of >> with cout
}
(½ Mark for each correct explanation of Logical Error and Syntax
Error)
(½ Mark for each correct example of Logical Error and Syntax
Error)
OR
(Full 2 Marks for correct examples demonstrating the difference
between Logical Error and Syntax Error)
Note: Only 1 Mark to be awarded if Explanation is given without
supporting example.
4
1. (a) Differentiate between a Run Time
Error and Syntax Error. Also give suitable
examples of each in C++. 2
2007 OD
1. (a) Run Time Error : Error occurring in a program during its
execution. Program execution halts when such an error is
encountered.
Example:
int A,B,C;
cin>>A>>B;
C=A/B;//Runtime error if value of B is zero.
Syntax Error: Error occurred due to wrong syntax of language
detected by the compiler during compilation.
Example:
cout>>”A C++ Program”;
(½ Mark for each correct explanation of Runtime Error and Syntax
Error)
(½ Mark for each correct example of Runtime Error
and Syntax Error)
OR
(Full 2 Marks for correct examples demonstrating the
difference
between Runtime Error and Syntax Error)
OR
(Only 1 Mark to be awarded if Explanation with out
supporting
examples)
5
1. (a) What is the difference between #define
and const? Explain with suitable example. 2
2008 D
#define: It is a pre-processor directive in C++ for creating a Macro.
Example:
#define sqr(i) i*i
const: It is an Access Modifier in C++ that assigns a constant (non
modifiable) value to a variable. Any attempt in modifying the value
assigned to such a variable is reported as an error by the compiler.
Example:
const float Pi = 3.14;
(½ Mark for each correct explanation of #define and const)
(½ Mark for each correct example of #define and const)
OR
(Full 2 Marks for correct examples demonstrating the difference
between #define and const)
OR
(Only 1 Mark to be awarded if Explanation without supporting
examples)
6
(a) What is the purpose of using a typedef command in C++.
Explain with suitable example. 2
2008 OD
Ans: Typedef:
This keyword allows creating synonyms or aliases for
previously defined data types The general form of typedef is
typedef old_name new_name;
OR
typedef is used for renaming a data type.
Example:
typedef char STR [80]; OR typedef signed char SMALLNUM;
OR typedef float REAL; OR typedef long int BIGNUM;
OR typedef int MAT[2][3] ;
(1 Mark for definition of typedef)
(1 Mark for example of typedef)
OR
(Full 2 Marks for an example with an appropriate explanation)
7
1. (a) What is the difference between call by
value and call by reference? Give an
example in C++ to illustrate both. 2
2009 D
Call by value is used to create a temporary copy of
the data coming from the actual parameter into the
formal parameter. The changes done in the function
in formal parameter are not reflected back in the
calling environment. It does not use ‘&’ sign.
Call by reference is used to share the same memory
location for actual and formal parameters and so
changes done in the function are reflected back in
the calling environment. It uses ‘&’ sign.
void Compute(int A, int &B)
{
A++;
B++;
cout<<”In the function”<<endl;
cout<<”A=”<<A<<“&”<<“B=”<<B<<endl;
}
void main ()
{
int I=50,J=25;
cout<<”Before function call “<<endl;
cout<<”I=”<<I<<”&”<<”J=”<<J <<endl;
Compute (I,J) ;
cout<<”After function call “<<endl;
cout<<I=”<<I<<”&”<<”J=”<<J <<endl;
}
OUTPUT
Before function call
I=50&J=25
In the function
A=51&B=26
After function call
I=50&J=26
(½ Mark for each correct explanation of Call by Value and Call by
Reference)
(½ Mark for each correct example of Call by Value and Call by
Reference)
OR
(Full 2 Marks for correct examples demonstrating the difference
between
Call by Value and Call by Reference)
OR
(Only 1 Mark to be awarded if Explanation without supporting
examples)
Note: Output is optional
8
1. (a) What is the difference between
Actual Parameter and Formal Parameter?
Give an example in C++ to illustrate both
types of parameters.
2
2009 ODA parameter used in the function call is known as Actual
Parameter. It is used to send the data to function. A
parameter used in the function definition is known as
Formal Parameter, It is used to accept the data from actual
parameter.
void Seventimes(int A)//A is formal parameter
{
cout<<7*A;
}
void main ()
{
int P=6;
Seventimes(P);//p is actual parameter
}
(½ Mark for each correct explanation of Actual
Parameter and Formal Parameter)
(½ Mark for each correct example of Actual Parameter
and Formal Parameter)
OR
(Full 2 Marks for correct examples demonstrating the
difference between Actual Parameter and Formal
Parameter)
OR
(Only 1 Mark to be awarded for Explanation given
without supporting examples)
9
1. (a) What is the difference between automatic
type conversion and type casting? Also, give a
suitable C++ code to illustrate both. 2
2010 D
Automatic Type Conversion: it is an implicit process of conversion
of a data from one type to another. For example
int N = 65;
char C = N; // Automatic type conversion
cout<<C;
OUTPUT:
A
Type Casting: It is an explicit process of conversion of a data from
one type to another. For example
int A=1, B=2;
float C = (float)A/B; //Type Casting
cout<<C;
OUTPUT:
0.5
(½ Mark for each correct explanation of Automatic Type
Conversion and Type Casting)
(½ Mark for each correct example of Automatic Type
Conversion and Type Casting)
OR
(Full 2 Marks for correct example(s) demonstrating the
meaning of / difference between Automatic Type
Conversion and Type Casting)
OR
(Only 1 Mack to be awarded if Explanation without
supporting examples)
Note: Output is optional
10
1. (a) What is the difference between call by
value and call by reference? Give an
example in C++ to illustrate both. 2
2010 OD
Call by value is used to create a temporary copy of
the data coming from the actual parameter into the
formal parameter. The changes done in the
function in formal parameter are not reflected back
in the calling environment. It does not use ‘&’ sign.
Call by reference is used to share the same
memory location for actual and formal parameters
and so changes done in the function are reflected
back in the calling environment. It uses ‘&’ sign.
void Compute(int A, int &B)
{
A++;
B++;
cout<<”In the function”<<endl;
cout<<”A=”<<A<<“&”<<“B=”<<B<<endl;
}
void main ()
{
int I=50,J=25;
cout<<”Before function call “<<endl;
cout<<”I=”<<I<<”&”<<”J=”<<J <<endl;
Compute (I,J) ;
cout<<”After function call “<<endl;
cout<<I=”<<I<<”&”<<”J=”<<J <<endl;
}
OUTPUT
Before function call
I=50&J=25
In the function
A=51&B=26
After function call
I=50&J=26
(½ Mark for each correct explanation of Call by Value and Call by
Reference)
(½ Mark for each correct example of Call by Value and Call by
Reference)
OR
(Full 2 Marks for correct examples demonstrating the difference
between
Call by Value and Call by Reference)
OR
(Only 1 Mark to be awarded if Explanation without supporting
examples)
Note: Output is optional
11
1. (a) What is the difference between Local
Variable and Global Variable? Also, give a suitable
C++ code to illustrate both. 2
2011 D
Local Variables: Local variables are those variables
which are declared within a function or a compound
statement and these variables can only be used within
that function/scope.
Global Variables: Global variables are those variables
which are not declared within any function or scope. So,
these variables can be accessed by any function of the
program
Example
#include<iostream.h>
#include<conio.h.>
int G; // Global variable declared
void Fun ( )
{
int L = 25; // Local variable of function Fun ( ) assigned value 25
G=5; // Global Variable is accessed and assigned value 5
Cout<<G<<endl; // Value of global variable is displayed as 5
Cout<<L<<endl; // Value of local variable is displayed as 25
}
void main ( )
{
Fun ( ) ; // Function call
G = G + 5; // Global variable is incremented by 5
cout<<G<<endl; // Global variable is displayed as 10
}
(½ Mark for each correct explanation of Local Variable and Global
Variable)
(½ Mark for each correct example of Local variable and Global Variable)
OR
(Full 2 Maries for correct example(s) demonstrating the meaning of /
difference between Local Variable and Global Variable) OR
(Only 1 Mark to be awarded if Explanation without supporting examples)
12
1. (a) What is the difference between automatic
type conversion and type casting? Also, give a
suitable C++ code to illustrate both. 2
2011 OD
Automatic Type Conversion: it is an implicit process of conversion
of a data from one type to another. For example
int N = 65;
char C = N; // Automatic type conversion
cout<<C;
OUTPUT:
A
Type Casting: It is an explicit process of conversion of a data from
one type to another. For example
int A=1, B=2;
float C = (float)A/B; //Type Casting
cout<<C;
OUTPUT:
0.5
(½ Mark for each correct explanation of Automatic Type
Conversion and Type Casting)
(½ Mark for each correct example of Automatic Type
Conversion and Type Casting)
OR
(Full 2 Marks for correct example(s) demonstrating the
meaning of / difference between Automatic Type
Conversion and Type Casting)
OR
(Only 1 Mack to be awarded if Explanation without
supporting examples)
Note: Output is optional
13
1. (a) What is the difference between Global Variable and Local Variable?
Sample Paper Set I 2009
Global Variable Local Variable
It is a variable, which is declared outside all
the functions
It is accessible throughout the program
It is a variable, which is declared with
in a function or with in a compound
statement
It is accessible only within a
function/compound statement in which
it is declared.
Example :
#include <iostream.h>
float NUM=900; //NUM is a global variable
void LOCAL(int T)
{
int Total=0; //Total is a local variable
for (int I=0;I<T;I++)
Total+=I;
cout<<NUM+Total;
}
void main()
{
LOCAL(45);
}
14
1.
(a) What is the difference between Object Oriented
Programming and Procedural Programming? 2
Sample Paper Set II 2009
Object Oriented
Programming
Procedural
Programming
Emphasis on Data
Follows Bottom-Up approach in
program design
Data hiding feature prevents
accidental change in data
Features like data
encapsulation, polymorphism,
inheritance are present
Emphasis on doing things
(functions)
Follows Top-down
approach in program design
Presence of Global
variables increase chances
of accidental change in data
Such features are not
available
15
1. (a) What is the difference between Global Variable and Local Variable?
(Sample Paper 2010 (Repeated it was asked in Sample Paper Set 1 2009) )
Global Variable Local Variable
It is a variable, which is declared outside all
the functions
It is accessible throughout the program
It is a variable, which is declared with
in a function or with in a compound
statement
It is accessible only within a
function/compound statement in which
it is declared.
Example :
#include <iostream.h>
float NUM=900; //NUM is a global variable
void LOCAL(int T)
{
int Total=0; //Total is a local variable
for (int I=0;I<T;I++)
Total+=I;
cout<<NUM+Total;
}
void main()
{
LOCAL(45);
}
16
Sample Paper Set II - 2010 (asked in 2009 OD)
Actual Parameter Formal Parameter
It is a parameter, which is used in function
call to send the value from the calling
environment.
It is the parameter, which is
used in function header, to
receive the value from the
actual parameter.
Example :
#include <iostream.h>
void Calc ( int T ) // T is formal parameter
{
cout<< 5 * T;
}
void main ( )
{
int A=45;
Calc ( A ); // A is actual parameter
}
(1 Mark for stating difference)
( 1 Mark for the suitable example)
OR
(Full 2 Marks for explanation of differences with the help of example)
( 1 Mark for the example)
1 ( a ) What is the difference between Actual Parameter and Formal
Parameters ? Also, give a suitable C++ code to illustrate both. 2
17
Sample Paper Set I - 2012
Post-increment Pre-increment
++ is an increment operator to increment
the value of a variable by one , when used
after the operand it is known as post –
increment operator.
When it is used before an operand to
increment its value by one, it is called
pre – increment operator.
Example :
#include <iostream.h>
void main ( )
{
int NUM=9;
cout<<++NUM ; // 10 will be displayed
cout<<NUM++ ; // 10 will be displayed
Cout<< NUM ; // 11 will be displayed
}
(1 Mark for stating difference)
( 1 Mark for the suitable example)
OR
(Full 2 Marks for explanation of differences with the help of example)
( 1 Mark for the example)
1 (a) Differentiate between the post-increment and pre-increment
operators. Also, give suitable C++ code to illustrate both.
18
Sample Paper Set II - 2010 (asked in 2009 OD and Sample Paper 2010 Set II)
Actual Parameter Formal Parameter
It is a parameter, which is used in function
call to send the value from the calling
environment.
It is the parameter, which is
used in function header, to
receive the value from the
actual parameter.
Example :
#include <iostream.h>
void Calc ( int T ) // T is formal parameter
{
cout<< 5 * T;
}
void main ( )
{
int A=45;
Calc ( A ); // A is actual parameter
}
(1 Mark for stating difference)
( 1 Mark for the suitable example)
OR
(Full 2 Marks for explanation of differences with the help of example)
( 1 Mark for the example)
1 ( a ) What is the difference between Actual Parameter and Formal
Parameters ? Also, give a suitable C++ code to illustrate both. 2
19
1. (a) What is the difference between automatic
type conversion and type casting? Also, give a
suitable C++ code to illustrate both. 2
2012 OD ( Repeated, asked in the year 2010 Delhi Paper)
Automatic Type Conversion: it is an implicit process of conversion
of a data from one type to another. For example
int N = 65;
char C = N; // Automatic type conversion
cout<<C;
OUTPUT:
A
Type Casting: It is an explicit process of conversion of a data from
one type to another. For example
int A=1, B=2;
float C = (float)A/B; //Type Casting
cout<<C;
OUTPUT:
0.5
(½ Mark for each correct explanation of Automatic Type
Conversion and Type Casting)
(½ Mark for each correct example of Automatic Type
Conversion and Type Casting)
OR
(Full 2 Marks for correct example(s) demonstrating the
meaning of / difference between Automatic Type
Conversion and Type Casting)
OR
(Only 1 Mack to be awarded if Explanation without
supporting examples)
Note: Output is optional
THAN
K
YOU

More Related Content

What's hot

Computer science ms
Computer science msComputer science ms
Computer science ms
B Bhuvanesh
 
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
 
computer science sample papers 2
computer science sample papers 2computer science sample papers 2
computer science sample papers 2
Swarup Kumar Boro
 
2014 computer science_question_paper
2014 computer science_question_paper2014 computer science_question_paper
2014 computer science_question_paper
vandna123
 
Data Structure in C (Lab Programs)
Data Structure in C (Lab Programs)Data Structure in C (Lab Programs)
Data Structure in C (Lab Programs)
Saket Pathak
 
Python programming workshop session 2
Python programming workshop session 2Python programming workshop session 2
Python programming workshop session 2
Abdul Haseeb
 
Computer Programming- Lecture 9
Computer Programming- Lecture 9Computer Programming- Lecture 9
Computer Programming- Lecture 9
Dr. Md. Shohel Sayeed
 
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
 
Computer Programming- Lecture 10
Computer Programming- Lecture 10Computer Programming- Lecture 10
Computer Programming- Lecture 10
Dr. Md. Shohel Sayeed
 
1z0 851 exam-java standard edition 6 programmer certified professional
1z0 851 exam-java standard edition 6 programmer certified professional1z0 851 exam-java standard edition 6 programmer certified professional
1z0 851 exam-java standard edition 6 programmer certified professional
Isabella789
 
Lecture 12: Classes and Files
Lecture 12: Classes and FilesLecture 12: Classes and Files
Lecture 12: Classes and Files
Dr. Md. Shohel Sayeed
 
Computer Programming- Lecture 7
Computer Programming- Lecture 7Computer Programming- Lecture 7
Computer Programming- Lecture 7
Dr. Md. Shohel Sayeed
 
Ds lab handouts
Ds lab handoutsDs lab handouts
Ds lab handoutsAyesha Bhatti
 
12th CBSE Practical File
12th CBSE Practical File12th CBSE Practical File
12th CBSE Practical File
Ashwin Francis
 
Computer Programming- Lecture 4
Computer Programming- Lecture 4Computer Programming- Lecture 4
Computer Programming- Lecture 4
Dr. Md. Shohel Sayeed
 
Python programming workshop session 3
Python programming workshop session 3Python programming workshop session 3
Python programming workshop session 3
Abdul Haseeb
 
Python programming workshop session 4
Python programming workshop session 4Python programming workshop session 4
Python programming workshop session 4
Abdul Haseeb
 
Maharishi University of Management (MSc Computer Science test questions)
Maharishi University of Management (MSc Computer Science test questions)Maharishi University of Management (MSc Computer Science test questions)
Maharishi University of Management (MSc Computer Science test questions)
Dharma Kshetri
 

What's hot (20)

Computer science ms
Computer science msComputer science ms
Computer science ms
 
Class xi sample paper (Computer Science)
Class xi sample paper (Computer Science)Class xi sample paper (Computer Science)
Class xi sample paper (Computer Science)
 
Qno 1 (f)
Qno 1 (f)Qno 1 (f)
Qno 1 (f)
 
computer science sample papers 2
computer science sample papers 2computer science sample papers 2
computer science sample papers 2
 
2014 computer science_question_paper
2014 computer science_question_paper2014 computer science_question_paper
2014 computer science_question_paper
 
Data Structure in C (Lab Programs)
Data Structure in C (Lab Programs)Data Structure in C (Lab Programs)
Data Structure in C (Lab Programs)
 
Python programming workshop session 2
Python programming workshop session 2Python programming workshop session 2
Python programming workshop session 2
 
Sample paper i.p
Sample paper i.pSample paper i.p
Sample paper i.p
 
Computer Programming- Lecture 9
Computer Programming- Lecture 9Computer Programming- Lecture 9
Computer Programming- Lecture 9
 
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)
 
Computer Programming- Lecture 10
Computer Programming- Lecture 10Computer Programming- Lecture 10
Computer Programming- Lecture 10
 
1z0 851 exam-java standard edition 6 programmer certified professional
1z0 851 exam-java standard edition 6 programmer certified professional1z0 851 exam-java standard edition 6 programmer certified professional
1z0 851 exam-java standard edition 6 programmer certified professional
 
Lecture 12: Classes and Files
Lecture 12: Classes and FilesLecture 12: Classes and Files
Lecture 12: Classes and Files
 
Computer Programming- Lecture 7
Computer Programming- Lecture 7Computer Programming- Lecture 7
Computer Programming- Lecture 7
 
Ds lab handouts
Ds lab handoutsDs lab handouts
Ds lab handouts
 
12th CBSE Practical File
12th CBSE Practical File12th CBSE Practical File
12th CBSE Practical File
 
Computer Programming- Lecture 4
Computer Programming- Lecture 4Computer Programming- Lecture 4
Computer Programming- Lecture 4
 
Python programming workshop session 3
Python programming workshop session 3Python programming workshop session 3
Python programming workshop session 3
 
Python programming workshop session 4
Python programming workshop session 4Python programming workshop session 4
Python programming workshop session 4
 
Maharishi University of Management (MSc Computer Science test questions)
Maharishi University of Management (MSc Computer Science test questions)Maharishi University of Management (MSc Computer Science test questions)
Maharishi University of Management (MSc Computer Science test questions)
 

Viewers also liked

SEDES DE LA XIII ONEM
SEDES DE LA XIII ONEMSEDES DE LA XIII ONEM
SEDES DE LA XIII ONEM
Gerson Ames
 
ĂłLeo de coco para atletas
ĂłLeo de coco para atletasĂłLeo de coco para atletas
ĂłLeo de coco para atletas
Óleo de Coco
 
Coaching Clinic Tahap ke-2 Hari ke-5 Jakarta Football Festival - GrabBike Rus...
Coaching Clinic Tahap ke-2 Hari ke-5 Jakarta Football Festival - GrabBike Rus...Coaching Clinic Tahap ke-2 Hari ke-5 Jakarta Football Festival - GrabBike Rus...
Coaching Clinic Tahap ke-2 Hari ke-5 Jakarta Football Festival - GrabBike Rus...
Uni Papua Football
 
Search Engine Advertising
Search Engine AdvertisingSearch Engine Advertising
Search Engine AdvertisingNextBee Media
 
Learning Method
Learning MethodLearning Method
Learning Method晟 沈
 
Progetto parco pubblico Esame corso garden design I progetto di giardino pubb...
Progetto parco pubblico Esame corso garden design I progetto di giardino pubb...Progetto parco pubblico Esame corso garden design I progetto di giardino pubb...
Progetto parco pubblico Esame corso garden design I progetto di giardino pubb...
NAD Nuova Accademia del Design
 
Mixing Mill - A story of woes to wows!!
Mixing Mill - A story of woes to wows!!Mixing Mill - A story of woes to wows!!
Mixing Mill - A story of woes to wows!!
Rubber & Tyre Machinery World
 
RESULTADO DIRECTORES DE UGEL
RESULTADO DIRECTORES DE UGELRESULTADO DIRECTORES DE UGEL
RESULTADO DIRECTORES DE UGEL
Gerson Ames
 
Progetto garden design di Alberto Farè Esame corso garden design 50 ore per c...
Progetto garden design di Alberto Farè Esame corso garden design 50 ore per c...Progetto garden design di Alberto Farè Esame corso garden design 50 ore per c...
Progetto garden design di Alberto Farè Esame corso garden design 50 ore per c...
NAD Nuova Accademia del Design
 
Examinaos si esta en la fe
Examinaos si esta en la feExaminaos si esta en la fe
Examinaos si esta en la fe
Jose Cambero 2
 
Chapter 2.datatypes and operators
Chapter 2.datatypes and operatorsChapter 2.datatypes and operators
Chapter 2.datatypes and operators
Jasleen Kaur (Chandigarh University)
 
2Âş sec registro-lectura entrada 1 y 2
2Âş sec registro-lectura entrada 1 y 22Âş sec registro-lectura entrada 1 y 2
2Âş sec registro-lectura entrada 1 y 2
Gerson Ames
 
Los principios del tesoro celestial
Los principios del tesoro celestialLos principios del tesoro celestial
Los principios del tesoro celestial
ebenezermd
 
C++ functions
C++ functionsC++ functions
C++ functions
Dawood Jutt
 
Tolerance Stackups Using Oracle Crystal Ball
Tolerance Stackups Using Oracle Crystal BallTolerance Stackups Using Oracle Crystal Ball
Tolerance Stackups Using Oracle Crystal Ball
Ramon Balisnomo
 
Function C++
Function C++ Function C++
Function C++
Shahzad Afridi
 
PresentaciĂłn0
PresentaciĂłn0PresentaciĂłn0
PresentaciĂłn0CONASIN PERU
 

Viewers also liked (20)

SEDES DE LA XIII ONEM
SEDES DE LA XIII ONEMSEDES DE LA XIII ONEM
SEDES DE LA XIII ONEM
 
ĂłLeo de coco para atletas
ĂłLeo de coco para atletasĂłLeo de coco para atletas
ĂłLeo de coco para atletas
 
Alaska
AlaskaAlaska
Alaska
 
Coaching Clinic Tahap ke-2 Hari ke-5 Jakarta Football Festival - GrabBike Rus...
Coaching Clinic Tahap ke-2 Hari ke-5 Jakarta Football Festival - GrabBike Rus...Coaching Clinic Tahap ke-2 Hari ke-5 Jakarta Football Festival - GrabBike Rus...
Coaching Clinic Tahap ke-2 Hari ke-5 Jakarta Football Festival - GrabBike Rus...
 
Search Engine Advertising
Search Engine AdvertisingSearch Engine Advertising
Search Engine Advertising
 
Learning Method
Learning MethodLearning Method
Learning Method
 
Progetto parco pubblico Esame corso garden design I progetto di giardino pubb...
Progetto parco pubblico Esame corso garden design I progetto di giardino pubb...Progetto parco pubblico Esame corso garden design I progetto di giardino pubb...
Progetto parco pubblico Esame corso garden design I progetto di giardino pubb...
 
-REPORT1_GEO (1)
-REPORT1_GEO (1)-REPORT1_GEO (1)
-REPORT1_GEO (1)
 
Mixing Mill - A story of woes to wows!!
Mixing Mill - A story of woes to wows!!Mixing Mill - A story of woes to wows!!
Mixing Mill - A story of woes to wows!!
 
RESULTADO DIRECTORES DE UGEL
RESULTADO DIRECTORES DE UGELRESULTADO DIRECTORES DE UGEL
RESULTADO DIRECTORES DE UGEL
 
Progetto garden design di Alberto Farè Esame corso garden design 50 ore per c...
Progetto garden design di Alberto Farè Esame corso garden design 50 ore per c...Progetto garden design di Alberto Farè Esame corso garden design 50 ore per c...
Progetto garden design di Alberto Farè Esame corso garden design 50 ore per c...
 
Examinaos si esta en la fe
Examinaos si esta en la feExaminaos si esta en la fe
Examinaos si esta en la fe
 
Chapter 2.datatypes and operators
Chapter 2.datatypes and operatorsChapter 2.datatypes and operators
Chapter 2.datatypes and operators
 
2Âş sec registro-lectura entrada 1 y 2
2Âş sec registro-lectura entrada 1 y 22Âş sec registro-lectura entrada 1 y 2
2Âş sec registro-lectura entrada 1 y 2
 
Los principios del tesoro celestial
Los principios del tesoro celestialLos principios del tesoro celestial
Los principios del tesoro celestial
 
C++ functions
C++ functionsC++ functions
C++ functions
 
Tolerance Stackups Using Oracle Crystal Ball
Tolerance Stackups Using Oracle Crystal BallTolerance Stackups Using Oracle Crystal Ball
Tolerance Stackups Using Oracle Crystal Ball
 
Function C++
Function C++ Function C++
Function C++
 
PresentaciĂłn0
PresentaciĂłn0PresentaciĂłn0
PresentaciĂłn0
 
Sesion 6
Sesion 6Sesion 6
Sesion 6
 

Similar to Qno 1 (a)

2.overview of c#
2.overview of c#2.overview of c#
2.overview of c#Raghu nath
 
Qno1
Qno1Qno1
Qno1
kvs
 
Ch2 introduction to c
Ch2 introduction to cCh2 introduction to c
Ch2 introduction to cHattori Sidek
 
C++ Functions.ppt
C++ Functions.pptC++ Functions.ppt
C++ Functions.ppt
WaheedAnwar20
 
C++ Overview PPT
C++ Overview PPTC++ Overview PPT
C++ Overview PPT
Thooyavan Venkatachalam
 
C++
C++C++
Intro
IntroIntro
Object Oriented Technologies
Object Oriented TechnologiesObject Oriented Technologies
Object Oriented Technologies
Umesh Nikam
 
Generalized Functors - Realizing Command Design Pattern in C++
Generalized Functors - Realizing Command Design Pattern in C++Generalized Functors - Realizing Command Design Pattern in C++
Generalized Functors - Realizing Command Design Pattern in C++
ppd1961
 
Functions
FunctionsFunctions
Functions
PatriciaPabalan
 
FUNCTIONS, CLASSES AND OBJECTS.pptx
FUNCTIONS, CLASSES AND OBJECTS.pptxFUNCTIONS, CLASSES AND OBJECTS.pptx
FUNCTIONS, CLASSES AND OBJECTS.pptx
DeepasCSE
 
Microcontroller lec 3
Microcontroller  lec 3Microcontroller  lec 3
Microcontroller lec 3
Ibrahim Reda
 
C++ Overview
C++ OverviewC++ Overview
C++ Overviewkelleyc3
 
Programming in C
Programming in CProgramming in C
Programming in C
Nishant Munjal
 
Pointers and call by value, reference, address in C
Pointers and call by value, reference, address in CPointers and call by value, reference, address in C
Pointers and call by value, reference, address in C
Syed Mustafa
 
Oops presentation
Oops presentationOops presentation
Oops presentation
sushamaGavarskar1
 
Qe Reference
Qe ReferenceQe Reference
Qe ReferenceSusan Gold
 
Advanced Digital Design With The Verilog HDL
Advanced Digital Design With The Verilog HDLAdvanced Digital Design With The Verilog HDL
Advanced Digital Design With The Verilog HDL
Tony Lisko
 
Managing I/O in c++
Managing I/O in c++Managing I/O in c++
Managing I/O in c++
Pranali Chaudhari
 

Similar to Qno 1 (a) (20)

2.overview of c#
2.overview of c#2.overview of c#
2.overview of c#
 
Qno1
Qno1Qno1
Qno1
 
C++ Question
C++ QuestionC++ Question
C++ Question
 
Ch2 introduction to c
Ch2 introduction to cCh2 introduction to c
Ch2 introduction to c
 
C++ Functions.ppt
C++ Functions.pptC++ Functions.ppt
C++ Functions.ppt
 
C++ Overview PPT
C++ Overview PPTC++ Overview PPT
C++ Overview PPT
 
C++
C++C++
C++
 
Intro
IntroIntro
Intro
 
Object Oriented Technologies
Object Oriented TechnologiesObject Oriented Technologies
Object Oriented Technologies
 
Generalized Functors - Realizing Command Design Pattern in C++
Generalized Functors - Realizing Command Design Pattern in C++Generalized Functors - Realizing Command Design Pattern in C++
Generalized Functors - Realizing Command Design Pattern in C++
 
Functions
FunctionsFunctions
Functions
 
FUNCTIONS, CLASSES AND OBJECTS.pptx
FUNCTIONS, CLASSES AND OBJECTS.pptxFUNCTIONS, CLASSES AND OBJECTS.pptx
FUNCTIONS, CLASSES AND OBJECTS.pptx
 
Microcontroller lec 3
Microcontroller  lec 3Microcontroller  lec 3
Microcontroller lec 3
 
C++ Overview
C++ OverviewC++ Overview
C++ Overview
 
Programming in C
Programming in CProgramming in C
Programming in C
 
Pointers and call by value, reference, address in C
Pointers and call by value, reference, address in CPointers and call by value, reference, address in C
Pointers and call by value, reference, address in C
 
Oops presentation
Oops presentationOops presentation
Oops presentation
 
Qe Reference
Qe ReferenceQe Reference
Qe Reference
 
Advanced Digital Design With The Verilog HDL
Advanced Digital Design With The Verilog HDLAdvanced Digital Design With The Verilog HDL
Advanced Digital Design With The Verilog HDL
 
Managing I/O in c++
Managing I/O in c++Managing I/O in c++
Managing I/O in c++
 

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

Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Lapbook sobre os Regimes TotalitĂĄrios.pdf
Lapbook sobre os Regimes TotalitĂĄrios.pdfLapbook sobre os Regimes TotalitĂĄrios.pdf
Lapbook sobre os Regimes TotalitĂĄrios.pdf
Jean Carlos Nunes PaixĂŁo
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
NelTorrente
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
AG2 Design
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 

Recently uploaded (20)

Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Lapbook sobre os Regimes TotalitĂĄrios.pdf
Lapbook sobre os Regimes TotalitĂĄrios.pdfLapbook sobre os Regimes TotalitĂĄrios.pdf
Lapbook sobre os Regimes TotalitĂĄrios.pdf
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 

Qno 1 (a)

  • 1. XII CBSE Previous Year Question Paper QUESTION NO 1 (a) 1 OR 2 Marks
  • 2. 1 1. (a) Name the header file to which the following belong 1 (i) abs( ) (ii) isupper( ) 2006 Delhi 1. (a) (i) math.h (ii) ctype.h
  • 3. 2 1. (a) Name the header file to which the following belong : 1 (i) pow() (ii) random() 2006 OD 1. (a) (i) math.h / complex.h (ii)
  • 4. 3 1. (a) Differentiate between a Logical Error and Syntax Error. Also give suitable examples of each in C++. 2 2007 Delhi 1. (a) Logical Error: Error occurred due to incorrect logic applied by the programmer. Syntax Error: Error occurred due to not following the proper grammar/syntax of the language OR Error occurred due to violating rules of the programming language
  • 5. Example: //Program to find area and perimeter of rectangle void main() { int A,B,AR,P; A=10; B=20; AR=2*(A*B); //Logical Error – Wrong Formula P=2*(A+B); cout<<A<<P>>endl; //Syntax Error – Use of >> with cout } (½ Mark for each correct explanation of Logical Error and Syntax Error) (½ Mark for each correct example of Logical Error and Syntax Error) OR (Full 2 Marks for correct examples demonstrating the difference between Logical Error and Syntax Error) Note: Only 1 Mark to be awarded if Explanation is given without supporting example.
  • 6. 4 1. (a) Differentiate between a Run Time Error and Syntax Error. Also give suitable examples of each in C++. 2 2007 OD 1. (a) Run Time Error : Error occurring in a program during its execution. Program execution halts when such an error is encountered. Example: int A,B,C; cin>>A>>B; C=A/B;//Runtime error if value of B is zero. Syntax Error: Error occurred due to wrong syntax of language detected by the compiler during compilation. Example: cout>>”A C++ Program”; (½ Mark for each correct explanation of Runtime Error and Syntax Error)
  • 7. (½ Mark for each correct example of Runtime Error and Syntax Error) OR (Full 2 Marks for correct examples demonstrating the difference between Runtime Error and Syntax Error) OR (Only 1 Mark to be awarded if Explanation with out supporting examples)
  • 8. 5 1. (a) What is the difference between #define and const? Explain with suitable example. 2 2008 D #define: It is a pre-processor directive in C++ for creating a Macro. Example: #define sqr(i) i*i const: It is an Access Modifier in C++ that assigns a constant (non modifiable) value to a variable. Any attempt in modifying the value assigned to such a variable is reported as an error by the compiler. Example: const float Pi = 3.14; (½ Mark for each correct explanation of #define and const) (½ Mark for each correct example of #define and const) OR (Full 2 Marks for correct examples demonstrating the difference between #define and const) OR (Only 1 Mark to be awarded if Explanation without supporting examples)
  • 9. 6 (a) What is the purpose of using a typedef command in C++. Explain with suitable example. 2 2008 OD Ans: Typedef: This keyword allows creating synonyms or aliases for previously defined data types The general form of typedef is typedef old_name new_name; OR typedef is used for renaming a data type. Example: typedef char STR [80]; OR typedef signed char SMALLNUM; OR typedef float REAL; OR typedef long int BIGNUM; OR typedef int MAT[2][3] ; (1 Mark for definition of typedef) (1 Mark for example of typedef) OR (Full 2 Marks for an example with an appropriate explanation)
  • 10. 7 1. (a) What is the difference between call by value and call by reference? Give an example in C++ to illustrate both. 2 2009 D Call by value is used to create a temporary copy of the data coming from the actual parameter into the formal parameter. The changes done in the function in formal parameter are not reflected back in the calling environment. It does not use ‘&’ sign. Call by reference is used to share the same memory location for actual and formal parameters and so changes done in the function are reflected back in the calling environment. It uses ‘&’ sign.
  • 11. void Compute(int A, int &B) { A++; B++; cout<<”In the function”<<endl; cout<<”A=”<<A<<“&”<<“B=”<<B<<endl; } void main () { int I=50,J=25; cout<<”Before function call “<<endl; cout<<”I=”<<I<<”&”<<”J=”<<J <<endl; Compute (I,J) ; cout<<”After function call “<<endl; cout<<I=”<<I<<”&”<<”J=”<<J <<endl; }
  • 12. OUTPUT Before function call I=50&J=25 In the function A=51&B=26 After function call I=50&J=26 (½ Mark for each correct explanation of Call by Value and Call by Reference) (½ Mark for each correct example of Call by Value and Call by Reference) OR (Full 2 Marks for correct examples demonstrating the difference between Call by Value and Call by Reference) OR (Only 1 Mark to be awarded if Explanation without supporting examples) Note: Output is optional
  • 13. 8 1. (a) What is the difference between Actual Parameter and Formal Parameter? Give an example in C++ to illustrate both types of parameters. 2 2009 ODA parameter used in the function call is known as Actual Parameter. It is used to send the data to function. A parameter used in the function definition is known as Formal Parameter, It is used to accept the data from actual parameter. void Seventimes(int A)//A is formal parameter { cout<<7*A; }
  • 14. void main () { int P=6; Seventimes(P);//p is actual parameter } (½ Mark for each correct explanation of Actual Parameter and Formal Parameter) (½ Mark for each correct example of Actual Parameter and Formal Parameter) OR (Full 2 Marks for correct examples demonstrating the difference between Actual Parameter and Formal Parameter) OR (Only 1 Mark to be awarded for Explanation given without supporting examples)
  • 15. 9 1. (a) What is the difference between automatic type conversion and type casting? Also, give a suitable C++ code to illustrate both. 2 2010 D Automatic Type Conversion: it is an implicit process of conversion of a data from one type to another. For example int N = 65; char C = N; // Automatic type conversion cout<<C; OUTPUT: A Type Casting: It is an explicit process of conversion of a data from one type to another. For example
  • 16. int A=1, B=2; float C = (float)A/B; //Type Casting cout<<C; OUTPUT: 0.5 (½ Mark for each correct explanation of Automatic Type Conversion and Type Casting) (½ Mark for each correct example of Automatic Type Conversion and Type Casting) OR (Full 2 Marks for correct example(s) demonstrating the meaning of / difference between Automatic Type Conversion and Type Casting) OR (Only 1 Mack to be awarded if Explanation without supporting examples) Note: Output is optional
  • 17. 10 1. (a) What is the difference between call by value and call by reference? Give an example in C++ to illustrate both. 2 2010 OD Call by value is used to create a temporary copy of the data coming from the actual parameter into the formal parameter. The changes done in the function in formal parameter are not reflected back in the calling environment. It does not use ‘&’ sign. Call by reference is used to share the same memory location for actual and formal parameters and so changes done in the function are reflected back in the calling environment. It uses ‘&’ sign.
  • 18. void Compute(int A, int &B) { A++; B++; cout<<”In the function”<<endl; cout<<”A=”<<A<<“&”<<“B=”<<B<<endl; } void main () { int I=50,J=25; cout<<”Before function call “<<endl; cout<<”I=”<<I<<”&”<<”J=”<<J <<endl; Compute (I,J) ; cout<<”After function call “<<endl; cout<<I=”<<I<<”&”<<”J=”<<J <<endl; }
  • 19. OUTPUT Before function call I=50&J=25 In the function A=51&B=26 After function call I=50&J=26 (½ Mark for each correct explanation of Call by Value and Call by Reference) (½ Mark for each correct example of Call by Value and Call by Reference) OR (Full 2 Marks for correct examples demonstrating the difference between Call by Value and Call by Reference) OR (Only 1 Mark to be awarded if Explanation without supporting examples) Note: Output is optional
  • 20. 11 1. (a) What is the difference between Local Variable and Global Variable? Also, give a suitable C++ code to illustrate both. 2 2011 D Local Variables: Local variables are those variables which are declared within a function or a compound statement and these variables can only be used within that function/scope. Global Variables: Global variables are those variables which are not declared within any function or scope. So, these variables can be accessed by any function of the program
  • 21. Example #include<iostream.h> #include<conio.h.> int G; // Global variable declared void Fun ( ) { int L = 25; // Local variable of function Fun ( ) assigned value 25 G=5; // Global Variable is accessed and assigned value 5 Cout<<G<<endl; // Value of global variable is displayed as 5 Cout<<L<<endl; // Value of local variable is displayed as 25 } void main ( ) { Fun ( ) ; // Function call G = G + 5; // Global variable is incremented by 5 cout<<G<<endl; // Global variable is displayed as 10 } (½ Mark for each correct explanation of Local Variable and Global Variable) (½ Mark for each correct example of Local variable and Global Variable) OR (Full 2 Maries for correct example(s) demonstrating the meaning of / difference between Local Variable and Global Variable) OR (Only 1 Mark to be awarded if Explanation without supporting examples)
  • 22. 12 1. (a) What is the difference between automatic type conversion and type casting? Also, give a suitable C++ code to illustrate both. 2 2011 OD Automatic Type Conversion: it is an implicit process of conversion of a data from one type to another. For example int N = 65; char C = N; // Automatic type conversion cout<<C; OUTPUT: A Type Casting: It is an explicit process of conversion of a data from one type to another. For example
  • 23. int A=1, B=2; float C = (float)A/B; //Type Casting cout<<C; OUTPUT: 0.5 (½ Mark for each correct explanation of Automatic Type Conversion and Type Casting) (½ Mark for each correct example of Automatic Type Conversion and Type Casting) OR (Full 2 Marks for correct example(s) demonstrating the meaning of / difference between Automatic Type Conversion and Type Casting) OR (Only 1 Mack to be awarded if Explanation without supporting examples) Note: Output is optional
  • 24. 13 1. (a) What is the difference between Global Variable and Local Variable? Sample Paper Set I 2009 Global Variable Local Variable It is a variable, which is declared outside all the functions It is accessible throughout the program It is a variable, which is declared with in a function or with in a compound statement It is accessible only within a function/compound statement in which it is declared. Example : #include <iostream.h> float NUM=900; //NUM is a global variable void LOCAL(int T) { int Total=0; //Total is a local variable for (int I=0;I<T;I++) Total+=I; cout<<NUM+Total; } void main() { LOCAL(45); }
  • 25. 14 1. (a) What is the difference between Object Oriented Programming and Procedural Programming? 2 Sample Paper Set II 2009 Object Oriented Programming Procedural Programming Emphasis on Data Follows Bottom-Up approach in program design Data hiding feature prevents accidental change in data Features like data encapsulation, polymorphism, inheritance are present Emphasis on doing things (functions) Follows Top-down approach in program design Presence of Global variables increase chances of accidental change in data Such features are not available
  • 26. 15 1. (a) What is the difference between Global Variable and Local Variable? (Sample Paper 2010 (Repeated it was asked in Sample Paper Set 1 2009) ) Global Variable Local Variable It is a variable, which is declared outside all the functions It is accessible throughout the program It is a variable, which is declared with in a function or with in a compound statement It is accessible only within a function/compound statement in which it is declared. Example : #include <iostream.h> float NUM=900; //NUM is a global variable void LOCAL(int T) { int Total=0; //Total is a local variable for (int I=0;I<T;I++) Total+=I; cout<<NUM+Total; } void main() { LOCAL(45); }
  • 27. 16 Sample Paper Set II - 2010 (asked in 2009 OD) Actual Parameter Formal Parameter It is a parameter, which is used in function call to send the value from the calling environment. It is the parameter, which is used in function header, to receive the value from the actual parameter. Example : #include <iostream.h> void Calc ( int T ) // T is formal parameter { cout<< 5 * T; } void main ( ) { int A=45; Calc ( A ); // A is actual parameter } (1 Mark for stating difference) ( 1 Mark for the suitable example) OR (Full 2 Marks for explanation of differences with the help of example) ( 1 Mark for the example) 1 ( a ) What is the difference between Actual Parameter and Formal Parameters ? Also, give a suitable C++ code to illustrate both. 2
  • 28. 17 Sample Paper Set I - 2012 Post-increment Pre-increment ++ is an increment operator to increment the value of a variable by one , when used after the operand it is known as post – increment operator. When it is used before an operand to increment its value by one, it is called pre – increment operator. Example : #include <iostream.h> void main ( ) { int NUM=9; cout<<++NUM ; // 10 will be displayed cout<<NUM++ ; // 10 will be displayed Cout<< NUM ; // 11 will be displayed } (1 Mark for stating difference) ( 1 Mark for the suitable example) OR (Full 2 Marks for explanation of differences with the help of example) ( 1 Mark for the example) 1 (a) Differentiate between the post-increment and pre-increment operators. Also, give suitable C++ code to illustrate both.
  • 29. 18 Sample Paper Set II - 2010 (asked in 2009 OD and Sample Paper 2010 Set II) Actual Parameter Formal Parameter It is a parameter, which is used in function call to send the value from the calling environment. It is the parameter, which is used in function header, to receive the value from the actual parameter. Example : #include <iostream.h> void Calc ( int T ) // T is formal parameter { cout<< 5 * T; } void main ( ) { int A=45; Calc ( A ); // A is actual parameter } (1 Mark for stating difference) ( 1 Mark for the suitable example) OR (Full 2 Marks for explanation of differences with the help of example) ( 1 Mark for the example) 1 ( a ) What is the difference between Actual Parameter and Formal Parameters ? Also, give a suitable C++ code to illustrate both. 2
  • 30. 19 1. (a) What is the difference between automatic type conversion and type casting? Also, give a suitable C++ code to illustrate both. 2 2012 OD ( Repeated, asked in the year 2010 Delhi Paper) Automatic Type Conversion: it is an implicit process of conversion of a data from one type to another. For example int N = 65; char C = N; // Automatic type conversion cout<<C; OUTPUT: A Type Casting: It is an explicit process of conversion of a data from one type to another. For example
  • 31. int A=1, B=2; float C = (float)A/B; //Type Casting cout<<C; OUTPUT: 0.5 (½ Mark for each correct explanation of Automatic Type Conversion and Type Casting) (½ Mark for each correct example of Automatic Type Conversion and Type Casting) OR (Full 2 Marks for correct example(s) demonstrating the meaning of / difference between Automatic Type Conversion and Type Casting) OR (Only 1 Mack to be awarded if Explanation without supporting examples) Note: Output is optional