SlideShare a Scribd company logo
XII CBSE
Previous Year
Question Paper
QUESTION NO
1 (C)
2 Marks
1(c) Rewrite the following program after
removing the syntactical error(s), if any.
Underline each correction.
Delhi 2006
2
#include<iostream.h>
void main( )
{ struct STUDENT
{ char stu_name[20];
char stu_sex;
int stu_age=17;
} student;
gets(stu_name);
gets(stu_sex);}
(c) Corrected Program: Delhi 2006
#include<iostream.h>
#include<stdio.h> // Error 1
void main()
{ struct STUDENT
{ char stu_name[20];
char stu_sex;
int stu_age; //Error 2
} student;
gets(student.stu_name); //Error 3
cin>>student.stu_sex; //Error 4
student.stu_age = 17; //Ignored
}
( ½ mark each for removing four errors)OR
(1 Mark to be given for only identification of all the errors without
rectification)
Note: If student replaces gets by cin>> or cin.getline( )and does not
mention <stdio.h> then full marks to be given if other errors are corrected.
(c) Rewrite the following program after
removing the syntactical error(s), if any.
Underline each correction. OD 2006 2
#include <idstream.h>
void main()
{ struct movie
{ char movie_name[20];
char movie_type;
int ticket_cost = 100
}MOVIE;
gets(movie_name);
gets(movie_type);
}
(c) #include<iostream.h>
#include<stdio.h> // Error 1 - needed for gets()
void main()
{
struct movie
{
char movie_name[20];
char movie_type;
int ticket_cost = 100; //Error 2 - assignment not
//possible inside structure definition
}MOVIE;
gets(MOVIE.movie_name);//Error 3 -members must be
//accessed using object
cin>>MOVIE.movie_type; //Error 4 -cant use gets for
//char variable and member must
//be accessed using object.
}
#include<iostream.h>
void main()
{
struct movie
{
char movie_name[20];
char movie_type;
int ticket_cost = 100; //Error 1 – initialization‘ not
//possible inside structure definition
}MOVIE;
cin.getline(MOVIE.movie_name,20);//Error 2 -members must be accessed
using object
cin>>MOVIE.movie_type; //Error 3 -cant use gets for
//char variable and member must
//be accessed using object.
}
(1 mark for identifying and correcting any one Error)
(1 ½ mark for identifying and correcting any two errors)
(2 marks for identifying and correcting more than two errors)
OR
(1 mark for only identifying all errors)
(c) Rewrite the following program after
removing the syntactical error(s), if any.
Underline each correction. Delhi 2007 2
#include <iostream.h>
const int Size 5;
void main()
{
int Array[Size];
Array = {50,40,30,20,10};
for(Ctr=0; Ctr<Size; Ctr++)
cout>>Array[Ctr];
}
(c) #include<iostream.h> Delhi 2007
const int Size =5;
void main( )
{
int Array[Size]={50,40,30,20,10};
for(int Ctr=0;Ctr<Size;Ctr++)
cout<<Array[Ctr];
}
(½ Mark for each correction)
OR
(1 Mark for identifying at least three errors,
without suggesting
correction)
(c) Rewrite the following program after
removing the syntactical error(s) if any.
Underline each correction. OD 2007 2
# include <iostream.h>
const int Max 10;
void main ( )
{
int Numbers [Max];
Numbers = { 20, 50,10, 30,40 } ;
for (Loc= Max-1 ; Loc > = 0 ; Loc - -)
cout>>Numbers [Loc];
}
(c) #include<iostream.h> OD 2007
const int Max = 10; //OR const int Max = 5;
void main()
{
int Numbers[Max]= {20,50,10,30,40};
// OR int Numbers[]= {20,50,10,30,40};
int Loc;
for(Loc=Max-1; Loc>=0; Loc—)
cout<<Numbers[Loc];
}
(½ Marks for each correction)
OR
(1 Mark for identifying at least three errors, without
suggesting
correction)
(c) Rewrite the following program after removing the
syntactical error(s) if any. Underline each correction.
Delhi 2008 2
#include < iostream.h >
void main ( )
{
First = 10, Second = 20;
Jumpto (First; Second);
Jumpto (Second);
}
void Jumpto (int N1, int N2=20)
{
N1 = N1 + N2;
cout<<N1>>N2;
}
#include <iostream.h>
void Jumpto(int N1, int N2=20); // Error 1
void main( )
{
int First = 10, Second = 20; // Error 2
Jumpto(First, Second); // Error 3
Jumpto(Second) ;
}
void Jumpto(int N1, int N2=20)
{
N1 = N1 + N2;
cout<<N1<<N2; // Error 4
}
OR
#include <iostream.h>
void Jumpto(int N1, int N2=20) // Error 1
{
N1 = N1 + N2;
cout<<N1<< N2; // Error 2
}
void main ( )
{
int First = 10, Second = 20; // Error 3
Jumpto(First, Second); // Error 4
Jumpto (Second) ;
}
(½ Mark for each correction)
OR
(1 Mark for identifying at least three errors, without suggesting
correction)
(c) Rewrite the following program after removing the syntax
error(s), if any. Underline each correction. OD 2008 2
#include <iostream.h>
void main ( )
{
One = 10, Two = 20;
Callme (One;Two) ;
Callme (Two) ;
}
void Callme (int Arg1, int Arg2=20)
{
319
Arg1 = Arg1 + Arg2;
cout<<Arg1>> Arg2;
}
#include <iostream.h> OD 2008
void Callme (int,int Arg2=20); //Error 1
void main ()
{
int One=10,Two=20; //Error 2
Callme(One,Two); //Error 3
Callme (Two);
}
void Callme (int Argl, int Arg2=20)
{
Argl=Argl +Arg2 ;
cout<<Argl<<Arg2; //Error 4
}
(½ Mark for each correction)
OR
(1 Mark for only identifying at least three errors, without suggesting
correction)
(c) Rewrite the following program after removing the
syntactical errors (if any). Underline each correction.
Delhi 2009 2
#include [iostream.h]
#include [stdio.h]
class Employee
{
int EmpId = 901;
char EName [20] ;
public
Employee ( ) { }
void Joining () {cin>>EmpId; gets (EName);}
void List ( ) {cout<<EmpId<<“ : ”<<EName<<endl;}
} ;
contd…
void main ( )
{
Employee E ;
Joining.E ( ) ;
E. List ( )
}
Ans Delhi 2009
#include <iostream.h>
#include <stdio.h>
class Employee
{ int EmpId;
char EName[20];
public :
Employee() {EmpId=901;}
void Joining() {cin>>EmpId; gets (EName);}
void List () {cout<<EmpId<<”:
“<<EName<<endl;}
};
void main ()
{ Employee E;
E.Joining ();
E.List ();
}
(½ Mark for writing both header files inside < >)
(½ Mark for removing = 901 from int Empld = 901;)
(½ Mark for writing: after public and; after E.List())
(½ Mark for writing E.Joining ( ); correctly)
Note: ½ mark for identifying any two errors without
valid correction and 1
mark for identifying all five errors without valid
correction
(c) Rewrite the following program after removing the
syntactical errors (if any).Underline each correction.
Outside Delhi 2009 2
include <iostream.h>
include <stdio.h>
class MyStudent
{
int StudentId = 1001;
char Name [20] ;
public
MyStudent( ){ }
void Register ( ) {cin>>StudentId; gets (Name) ;}
void Display ( ) {cout<<StudentId<< “:” <<Name<<end1;}
} ;
contd...
void main ( )
{
MyStudent MS ;
Register.MS( ) ;
MS.Display( ) ;
}
Ans Outside Delhi 2009
# include <iostream.h>
# include <stdio.h>
class MyStudent
{ int StudentId;
char Name[20];
public :
MyStudent() {StudentId = 1001;}
void Register(){ cin>>StudentId; gets (Name);}
void Display ()
{cout«StudentId<<”:“<<Name<<endl;}
};
void main ()
{
MyStudent MS;
MS. Register ();
MS. Display () ;
}
(½ Mark for writing both include as #include)
(½ Mark for removing = 1001 from int StudentId =
1001;)
(½ Mark for writing: after public)
(½ Mark for writing MS. Register ( ) ; correctly)
Note: ½ mark for identifying any two errors without
valid correction and
1 mark for identifying all five errors without valid
correction
(c) Rewrite the following c++ program code after
removing the syntax error(s) (if any). Underline
each correction. Delhi 2010 2
include <iostream.h>
class TRAIN
{
long TrainNo;
char Description[25];
public
void Entry ( )
{
cin >>TrainNo; gets(Description);
}
Void Display ( )
{
cout<<TrainNo<<“:”<<Description<<endl;
}
};
void main( )
{
TRAIN T;
Entry. T( ); Display. T( );
}
Ans. #include<iostream.h>
#include<stdio.h>
class TRAIN
{
long TrainNo;
char Description [25];
public:
void Entry ()
{
cin>>TrainNo; gets (Description);
}
void Display ()
{
cout<<TrainNo<<“:”<<Description<<end1;
}
};
void main ()
{
TRAIN T;
T.Entry(); T.Display();
}
(½ Mark for writing # before include<iostream.h>
(½ Mark for writing # include <stdio.h>
(½ Mark for writing: after public)
(½ Mark for writing T.Entry(); and T.Display(); correctly)
(c) Rewrite the following C++ program code
after removing the syntax error(s) (if any).
Underline each correction. OD 2010 2
include <iostream.h>
class FLIGHT
{
long FlightCode;
char Description[25];
public
void AddInfo()
{
cin>>FlightCode; gets (Description) ;
{
void ShowInfo()
(
cout<<FlightCode<<“:”<<Description<<endl;
}
} ;
void main()
{
FLIGHT F;
AddInfo.F(); ShowInfo.F();
}
Ans. #include <iostream.h> / / Error 1
#include <stdio.h> / / Error 2
class FLIGHT
{
long FlightCode;
char Description[25];
public : / / Error 3
void AddInfo ( )
{
cin>>FlightCode; gets (Description) ;
}
correction)
void ShowInfo ( )
{
cout<<FlightCode<<”:”<<Description<<endl;
}
} ;
void main ( )
{
FLIGHT F;
F.AddInfo( ) ; F. ShowInfo ( ) ; / / Error 4
}
(½ Mark for each correction)
OR
(1 mark for identifying at least three errors, without
suggesting
(c) Rewrite the following program after
removing the syntactical errors (if any).
Underline each correction. Delhi 2011
2
#include[iostream.h]
typedef char Text(80) ;
void main ( )
{
Text T= "Indian";
int Count=strlen(T) ;
cout<<T<<'has'<<Count<< 'characters'
<<end1;
}
Ans #include<iostream.h>
#include<string.h>
typedef char Text [80];
void main ( )
{
Text T= "Indian";
int Count=str1en(T);
cout<<T<< "has" <<Count<<
"cbaracters"<<end1 ;
}
(½ Mark for writing # include<iostream.h>
(½ Mark for writing # include<string.h>
(½ Mark for writing typedef char Text(80];
(½ Mark for writing "has" and "characters")
(c) Rewrite the following program after
removing the syntactical errors (if any).
Underline each correction. OD 2011 2
include<iostream.h>
typedef char [80] String;
void main ( )
{
String S= "Peace";
int L=strlen(S) ;
cout<<S<< 'has'<<L<< 'characters'<<end1;
}
Ans #include<string.h>
#include<iostream.h>
typedef char String [80];
void main ( )
{
String S = "Peace";
int L= strlen(S) ;
cout<<S<< "has" << L <<
"characters"<<end1;
}
(½ Mark for writing # include<string.h>
(½ Mark for adding # before include<iostream.h>
(½ Mark for writing typedef char string[80];)
(½ Mark for writing "has" and "characters")
SAMPLE PAPER 2009 SET I
c) Rewrite the following program after
removing the syntactical errors (if any).
Underline each correction. 2
#include [iostream.h]
class PAYITNOW
{
int Charge;
PUBLIC:
void Raise(){cin>>Charge;}
void Show{cout<<Charge;}
};
CONTD…
SAMPLE PAPER 2009 SET I
void main()
{
PAYITNOW P;
P.Raise();
Show();
}
SAMPLE PAPER 2009 SET I
Answer:
#include <iostream.h>
class PAYITNOW
{
int Charge;
public:
void Raise(){cin>>Charge;}
void Show(){cout<<Charge;}
};
CONTD…
SAMPLE PAPER 2009 SET I
Answer:
void main()
{
PAYITNOW P;
P.Raise();
P.Show();
}
(1/2 Mark for correcting each error)
OR
(1 Mark for identifying all the 4 errors with no
correction)
SAMPLE PAPER 2009 SET II
c) Rewrite the following program after
removing the syntactical errors (if
any). Underline each correction.
2
#include <iostream.h>
struct Pixels
{ int Color,Style;}
void ShowPoint(Pixels P)
{ cout<<P.Color,P.Style<<endl;}
CONTD…
SAMPLE PAPER 2009 SET II
void main()
{
Pixels Point1=(5,3);
ShowPoint(Point1);
Pixels Point2=Point1;
Color.Point1+=2;
ShowPoint(Point2);
}
SAMPLE PAPER 2009 SET II
#include <iostream.h>
struct Pixels
{ int Color,Style;};
void ShowPoint(Pixels P)
{ cout<<P.Color<<P.Style<<endl;}
void main()
{
Pixels Point1={5,3};
ShowPoint(Point1);
Pixels Point2=Point1;
CONTD…
SAMPLE PAPER 2009 SET II
Point1.Color+=2;
ShowPoint(Point2);
}
(1/2 Mark for correcting each error)
OR
(1 Mark for identifying all the 4 errors with no
correction)
(c) Rewrite the following program after
removing the syntactical errors (if any).
Underline each correction. SP 2010 2
#include [iostream.h]
class MEMBER
{
int Mno;float Fees;
PUBLIC:
void Register(){cin>>Mno>>Fees;}
void Display{cout<<Mno<<" : "<<Fees<<endl;}
}; CONTD…..
SAMPLE PAPER 2010 SET I
SAMPLE PAPER 2010 SET I
void main()
{
MEMBER M;
Register();
M.Display();
}
SAMPLE PAPER 2010 SET I
(c)
#include <iostream.h>
class MEMBER
{
int Mno;float Fees;
public:
void Register(){cin>>Mno>>Fees;}
void Display()
{cout<<Mno<<":"<<Fees<<endl;}
};
CONTD….
SAMPLE PAPER 2010 SET I
main()
{
MEMBER M;
M.Register();
M.Display();
}
( ½ Mark each correction)
SAMPLE PAPER 2010 SET II
(c) Rewrite the following program after
removing the syntactical errors (if any).
Underline each correction. SP 2010 2
#include <iostream.h>
struct Pixels
{ int Color,Style;}
void ShowPoint(Pixels P)
{ cout<<P.Color,P.Style<<endl;}
CONTD….
SAMPLE PAPER 2010 SET II
void main()
{
Pixels Point1=(5,3);
ShowPoint(Point1);
Pixels Point2=Point1;
Color.Point1+=2;
ShowPoint(Point2);
}
SAMPLE PAPER 2010 SET II
(c) #include <iostream.h> 2
struct Pixels
{
int Color,Style;
};
void ShowPoint(Pixels P)
{
cout<<P.Color<<P.Style<<endl;
}
Contd…
SAMPLE PAPER 2010 SET II
void main()
{
Pixels Point1={5,3};
ShowPoint(Point1);
Pixels Point2=Point1;
Point1.Color+=2;
ShowPoint(Point2);
}
( ½ Mark for each correction)
SAMPLE PAPER 2012 SET I
SAMPLE PAPER 2012 SET I
SAMPLE PAPER 2012 SET II
SAMPLE PAPER 2012 SET II
Outside Delhi 2012
THAN
K
YOU

More Related Content

What's hot

Analysis of Microsoft Code Contracts
Analysis of Microsoft Code ContractsAnalysis of Microsoft Code Contracts
Analysis of Microsoft Code Contracts
PVS-Studio
 
C language questions_answers_explanation
C language questions_answers_explanationC language questions_answers_explanation
C language questions_answers_explanation
srinath v
 
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
 
Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output) Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output)
Aman Deep
 
Python programming workshop session 2
Python programming workshop session 2Python programming workshop session 2
Python programming workshop session 2
Abdul Haseeb
 
Technical questions for interview c programming
Technical questions for interview  c programmingTechnical questions for interview  c programming
Technical questions for interview c programming
CHANDAN KUMAR
 
CS6311- PROGRAMMING & DATA STRUCTURE II LABORATORY
CS6311- PROGRAMMING & DATA STRUCTURE II LABORATORYCS6311- PROGRAMMING & DATA STRUCTURE II LABORATORY
CS6311- PROGRAMMING & DATA STRUCTURE II LABORATORY
Radha Maruthiyan
 
C programs
C programsC programs
C programs
Vikram Nandini
 
Static and const members
Static and const membersStatic and const members
Static and const members
mohamed sikander
 
C++ project
C++ projectC++ project
C++ project
Sonu S S
 
C # (2)
C # (2)C # (2)
Python programming workshop session 3
Python programming workshop session 3Python programming workshop session 3
Python programming workshop session 3
Abdul Haseeb
 

What's hot (19)

Muzzammilrashid
MuzzammilrashidMuzzammilrashid
Muzzammilrashid
 
Analysis of Microsoft Code Contracts
Analysis of Microsoft Code ContractsAnalysis of Microsoft Code Contracts
Analysis of Microsoft Code Contracts
 
C++ file
C++ fileC++ file
C++ file
 
C language questions_answers_explanation
C language questions_answers_explanationC language questions_answers_explanation
C language questions_answers_explanation
 
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
 
C program
C programC program
C program
 
Qno 1 (a)
Qno 1 (a)Qno 1 (a)
Qno 1 (a)
 
Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output) Practical Class 12th (c++programs+sql queries and output)
Practical Class 12th (c++programs+sql queries and output)
 
Python programming workshop session 2
Python programming workshop session 2Python programming workshop session 2
Python programming workshop session 2
 
informatics practices practical file
informatics practices practical fileinformatics practices practical file
informatics practices practical file
 
Technical questions for interview c programming
Technical questions for interview  c programmingTechnical questions for interview  c programming
Technical questions for interview c programming
 
CS6311- PROGRAMMING & DATA STRUCTURE II LABORATORY
CS6311- PROGRAMMING & DATA STRUCTURE II LABORATORYCS6311- PROGRAMMING & DATA STRUCTURE II LABORATORY
CS6311- PROGRAMMING & DATA STRUCTURE II LABORATORY
 
C programs
C programsC programs
C programs
 
Static and const members
Static and const membersStatic and const members
Static and const members
 
C++ project
C++ projectC++ project
C++ project
 
Bijender (1)
Bijender (1)Bijender (1)
Bijender (1)
 
C # (2)
C # (2)C # (2)
C # (2)
 
Python programming workshop session 3
Python programming workshop session 3Python programming workshop session 3
Python programming workshop session 3
 
39927902 c-labmanual
39927902 c-labmanual39927902 c-labmanual
39927902 c-labmanual
 

Viewers also liked

Programma europeo COSME
Programma europeo COSMEProgramma europeo COSME
Programma europeo COSME
Luigi A. Dell'Aquila
 
Coaching Clinic Tahap ke-2 Hari ke-5
Coaching Clinic Tahap ke-2 Hari ke-5 Coaching Clinic Tahap ke-2 Hari ke-5
Coaching Clinic Tahap ke-2 Hari ke-5
Uni Papua Football
 
Cbse marking scheme 2006 2011
Cbse marking scheme 2006  2011Cbse marking scheme 2006  2011
Cbse marking scheme 2006 2011
Praveen M Jigajinni
 
Pointer level 2
Pointer   level 2Pointer   level 2
Pointer level 2
Mohammed Sikander
 
for loops
for loopsfor loops
for loops
nawaf banjer
 
Variable
VariableVariable
El Hombre Como Líder 57
El Hombre Como Líder  57El Hombre Como Líder  57
El Hombre Como Líder 57
Tabernáculo De Adoración Adonay
 
αυτό τον μήνα
αυτό τον μήνααυτό τον μήνα
αυτό τον μήναAlex MasterMind
 
Questions typedef and macros
Questions typedef and macrosQuestions typedef and macros
Questions typedef and macros
Mohammed Sikander
 
Social Media & Social Business 시대, Agency는 무엇을 준비해야 하는가?
Social Media & Social Business 시대, Agency는 무엇을 준비해야 하는가?Social Media & Social Business 시대, Agency는 무엇을 준비해야 하는가?
Social Media & Social Business 시대, Agency는 무엇을 준비해야 하는가?kevin lee
 
Plan diagnostica 3. grado
Plan diagnostica 3. gradoPlan diagnostica 3. grado
Plan diagnostica 3. grado
Jesus Contreras Baez
 
How Far Will ‘IT’ Go? Could AI One Day Replace Teachers?
How Far Will ‘IT’ Go? Could AI One Day Replace Teachers? How Far Will ‘IT’ Go? Could AI One Day Replace Teachers?
How Far Will ‘IT’ Go? Could AI One Day Replace Teachers?
Mark Brown
 
Arrays in C++
Arrays in C++Arrays in C++
Arrays in C++
Ilio Catallo
 
El camino descendente.
El camino descendente.El camino descendente.
El camino descendente.
Ernesto García
 
C programming
C programmingC programming
C++ classes
C++ classesC++ classes
C++ classes
Aayush Patel
 
MVC for Desktop Application - Part 3
MVC for Desktop Application - Part 3MVC for Desktop Application - Part 3
MVC for Desktop Application - Part 3
晟 沈
 
Asuhan kebidanan pada ibu hamil normal. PKK 1
Asuhan kebidanan pada ibu hamil normal. PKK 1Asuhan kebidanan pada ibu hamil normal. PKK 1
Asuhan kebidanan pada ibu hamil normal. PKK 1
Ratna Imas Indriyani (Ratna Fadhilah Al-mumtazah)
 
c++ programming Unit 2 basic structure of a c++ program
c++ programming Unit 2 basic structure of a c++ programc++ programming Unit 2 basic structure of a c++ program
c++ programming Unit 2 basic structure of a c++ program
AAKASH KUMAR
 

Viewers also liked (20)

Programma europeo COSME
Programma europeo COSMEProgramma europeo COSME
Programma europeo COSME
 
Coaching Clinic Tahap ke-2 Hari ke-5
Coaching Clinic Tahap ke-2 Hari ke-5 Coaching Clinic Tahap ke-2 Hari ke-5
Coaching Clinic Tahap ke-2 Hari ke-5
 
Cbse marking scheme 2006 2011
Cbse marking scheme 2006  2011Cbse marking scheme 2006  2011
Cbse marking scheme 2006 2011
 
Pointer level 2
Pointer   level 2Pointer   level 2
Pointer level 2
 
for loops
for loopsfor loops
for loops
 
Epk
EpkEpk
Epk
 
Variable
VariableVariable
Variable
 
El Hombre Como Líder 57
El Hombre Como Líder  57El Hombre Como Líder  57
El Hombre Como Líder 57
 
αυτό τον μήνα
αυτό τον μήνααυτό τον μήνα
αυτό τον μήνα
 
Questions typedef and macros
Questions typedef and macrosQuestions typedef and macros
Questions typedef and macros
 
Social Media & Social Business 시대, Agency는 무엇을 준비해야 하는가?
Social Media & Social Business 시대, Agency는 무엇을 준비해야 하는가?Social Media & Social Business 시대, Agency는 무엇을 준비해야 하는가?
Social Media & Social Business 시대, Agency는 무엇을 준비해야 하는가?
 
Plan diagnostica 3. grado
Plan diagnostica 3. gradoPlan diagnostica 3. grado
Plan diagnostica 3. grado
 
How Far Will ‘IT’ Go? Could AI One Day Replace Teachers?
How Far Will ‘IT’ Go? Could AI One Day Replace Teachers? How Far Will ‘IT’ Go? Could AI One Day Replace Teachers?
How Far Will ‘IT’ Go? Could AI One Day Replace Teachers?
 
Arrays in C++
Arrays in C++Arrays in C++
Arrays in C++
 
El camino descendente.
El camino descendente.El camino descendente.
El camino descendente.
 
C programming
C programmingC programming
C programming
 
C++ classes
C++ classesC++ classes
C++ classes
 
MVC for Desktop Application - Part 3
MVC for Desktop Application - Part 3MVC for Desktop Application - Part 3
MVC for Desktop Application - Part 3
 
Asuhan kebidanan pada ibu hamil normal. PKK 1
Asuhan kebidanan pada ibu hamil normal. PKK 1Asuhan kebidanan pada ibu hamil normal. PKK 1
Asuhan kebidanan pada ibu hamil normal. PKK 1
 
c++ programming Unit 2 basic structure of a c++ program
c++ programming Unit 2 basic structure of a c++ programc++ programming Unit 2 basic structure of a c++ program
c++ programming Unit 2 basic structure of a c++ program
 

Similar to Qno 1 (c)

Computer science-2010-cbse-question-paper
Computer science-2010-cbse-question-paperComputer science-2010-cbse-question-paper
Computer science-2010-cbse-question-paperDeepak Singh
 
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
Deepak Singh
 
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
rafbolet0
 
CLASS XII COMPUTER SCIENCE MONTHLY TEST PAPER
CLASS XII COMPUTER SCIENCE MONTHLY TEST  PAPERCLASS XII COMPUTER SCIENCE MONTHLY TEST  PAPER
CLASS XII COMPUTER SCIENCE MONTHLY TEST PAPER
Rc Os
 
Cs pritical file
Cs pritical fileCs pritical file
Cs pritical file
Mitul Patel
 
Cbse question-paper-computer-science-2009
Cbse question-paper-computer-science-2009Cbse question-paper-computer-science-2009
Cbse question-paper-computer-science-2009Deepak Singh
 
Assignement of programming & problem solving u.s ass.(1)
Assignement of programming & problem solving u.s ass.(1)Assignement of programming & problem solving u.s ass.(1)
Assignement of programming & problem solving u.s ass.(1)
Syed Umair
 
Xiicsmonth
XiicsmonthXiicsmonth
Xiicsmonth
rishikasahu1908
 
CS Sample Paper 1
CS Sample Paper 1CS Sample Paper 1
CS Sample Paper 1
kvs
 
Managing console
Managing consoleManaging console
Managing console
Shiva Saxena
 
C++ practical
C++ practicalC++ practical
C++ practical
Rahul juneja
 
computer science sample papers 2
computer science sample papers 2computer science sample papers 2
computer science sample papers 2
Swarup Kumar Boro
 
pointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjb
pointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjbpointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjb
pointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjb
TUSHARGAURAV11
 
pointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjb
pointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjbpointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjb
pointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjb
TUSHARGAURAV11
 
Module wise format oops questions
Module wise format oops questionsModule wise format oops questions
Module wise format oops questionsSANTOSH RATH
 
C++ in 10 Hours.pdf.pdf
C++ in 10 Hours.pdf.pdfC++ in 10 Hours.pdf.pdf
C++ in 10 Hours.pdf.pdf
SumitSingh813090
 
To write a program that implements the following C++ concepts 1. Dat.pdf
To write a program that implements the following C++ concepts 1. Dat.pdfTo write a program that implements the following C++ concepts 1. Dat.pdf
To write a program that implements the following C++ concepts 1. Dat.pdf
SANDEEPARIHANT
 
Fun with Lambdas: C++14 Style (part 1)
Fun with Lambdas: C++14 Style (part 1)Fun with Lambdas: C++14 Style (part 1)
Fun with Lambdas: C++14 Style (part 1)
Sumant Tambe
 

Similar to Qno 1 (c) (20)

Computer science-2010-cbse-question-paper
Computer science-2010-cbse-question-paperComputer science-2010-cbse-question-paper
Computer science-2010-cbse-question-paper
 
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
 
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
 
CLASS XII COMPUTER SCIENCE MONTHLY TEST PAPER
CLASS XII COMPUTER SCIENCE MONTHLY TEST  PAPERCLASS XII COMPUTER SCIENCE MONTHLY TEST  PAPER
CLASS XII COMPUTER SCIENCE MONTHLY TEST PAPER
 
Cs pritical file
Cs pritical fileCs pritical file
Cs pritical file
 
Cbse question-paper-computer-science-2009
Cbse question-paper-computer-science-2009Cbse question-paper-computer-science-2009
Cbse question-paper-computer-science-2009
 
Assignement of programming & problem solving u.s ass.(1)
Assignement of programming & problem solving u.s ass.(1)Assignement of programming & problem solving u.s ass.(1)
Assignement of programming & problem solving u.s ass.(1)
 
Xiicsmonth
XiicsmonthXiicsmonth
Xiicsmonth
 
CS Sample Paper 1
CS Sample Paper 1CS Sample Paper 1
CS Sample Paper 1
 
Managing console
Managing consoleManaging console
Managing console
 
C++ practical
C++ practicalC++ practical
C++ practical
 
C exam
C examC exam
C exam
 
Quiz 10 cp_sol
Quiz 10 cp_solQuiz 10 cp_sol
Quiz 10 cp_sol
 
computer science sample papers 2
computer science sample papers 2computer science sample papers 2
computer science sample papers 2
 
pointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjb
pointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjbpointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjb
pointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjb
 
pointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjb
pointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjbpointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjb
pointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjb
 
Module wise format oops questions
Module wise format oops questionsModule wise format oops questions
Module wise format oops questions
 
C++ in 10 Hours.pdf.pdf
C++ in 10 Hours.pdf.pdfC++ in 10 Hours.pdf.pdf
C++ in 10 Hours.pdf.pdf
 
To write a program that implements the following C++ concepts 1. Dat.pdf
To write a program that implements the following C++ concepts 1. Dat.pdfTo write a program that implements the following C++ concepts 1. Dat.pdf
To write a program that implements the following C++ concepts 1. Dat.pdf
 
Fun with Lambdas: C++14 Style (part 1)
Fun with Lambdas: C++14 Style (part 1)Fun with Lambdas: C++14 Style (part 1)
Fun with Lambdas: C++14 Style (part 1)
 

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

Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
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
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 
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
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
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 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET 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
 
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
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
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 Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
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
 
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
 

Recently uploaded (20)

Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
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...
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 
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
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
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 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET 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 ...
 
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
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
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 Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
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
 
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
 

Qno 1 (c)

  • 1. XII CBSE Previous Year Question Paper QUESTION NO 1 (C) 2 Marks
  • 2. 1(c) Rewrite the following program after removing the syntactical error(s), if any. Underline each correction. Delhi 2006 2 #include<iostream.h> void main( ) { struct STUDENT { char stu_name[20]; char stu_sex; int stu_age=17; } student; gets(stu_name); gets(stu_sex);}
  • 3. (c) Corrected Program: Delhi 2006 #include<iostream.h> #include<stdio.h> // Error 1 void main() { struct STUDENT { char stu_name[20]; char stu_sex; int stu_age; //Error 2 } student; gets(student.stu_name); //Error 3 cin>>student.stu_sex; //Error 4 student.stu_age = 17; //Ignored } ( ½ mark each for removing four errors)OR (1 Mark to be given for only identification of all the errors without rectification) Note: If student replaces gets by cin>> or cin.getline( )and does not mention <stdio.h> then full marks to be given if other errors are corrected.
  • 4. (c) Rewrite the following program after removing the syntactical error(s), if any. Underline each correction. OD 2006 2 #include <idstream.h> void main() { struct movie { char movie_name[20]; char movie_type; int ticket_cost = 100 }MOVIE; gets(movie_name); gets(movie_type); }
  • 5. (c) #include<iostream.h> #include<stdio.h> // Error 1 - needed for gets() void main() { struct movie { char movie_name[20]; char movie_type; int ticket_cost = 100; //Error 2 - assignment not //possible inside structure definition }MOVIE; gets(MOVIE.movie_name);//Error 3 -members must be //accessed using object cin>>MOVIE.movie_type; //Error 4 -cant use gets for //char variable and member must //be accessed using object. }
  • 6. #include<iostream.h> void main() { struct movie { char movie_name[20]; char movie_type; int ticket_cost = 100; //Error 1 – initialization‘ not //possible inside structure definition }MOVIE; cin.getline(MOVIE.movie_name,20);//Error 2 -members must be accessed using object cin>>MOVIE.movie_type; //Error 3 -cant use gets for //char variable and member must //be accessed using object. } (1 mark for identifying and correcting any one Error) (1 ½ mark for identifying and correcting any two errors) (2 marks for identifying and correcting more than two errors) OR (1 mark for only identifying all errors)
  • 7. (c) Rewrite the following program after removing the syntactical error(s), if any. Underline each correction. Delhi 2007 2 #include <iostream.h> const int Size 5; void main() { int Array[Size]; Array = {50,40,30,20,10}; for(Ctr=0; Ctr<Size; Ctr++) cout>>Array[Ctr]; }
  • 8. (c) #include<iostream.h> Delhi 2007 const int Size =5; void main( ) { int Array[Size]={50,40,30,20,10}; for(int Ctr=0;Ctr<Size;Ctr++) cout<<Array[Ctr]; } (½ Mark for each correction) OR (1 Mark for identifying at least three errors, without suggesting correction)
  • 9. (c) Rewrite the following program after removing the syntactical error(s) if any. Underline each correction. OD 2007 2 # include <iostream.h> const int Max 10; void main ( ) { int Numbers [Max]; Numbers = { 20, 50,10, 30,40 } ; for (Loc= Max-1 ; Loc > = 0 ; Loc - -) cout>>Numbers [Loc]; }
  • 10. (c) #include<iostream.h> OD 2007 const int Max = 10; //OR const int Max = 5; void main() { int Numbers[Max]= {20,50,10,30,40}; // OR int Numbers[]= {20,50,10,30,40}; int Loc; for(Loc=Max-1; Loc>=0; Loc—) cout<<Numbers[Loc]; } (½ Marks for each correction) OR (1 Mark for identifying at least three errors, without suggesting correction)
  • 11. (c) Rewrite the following program after removing the syntactical error(s) if any. Underline each correction. Delhi 2008 2 #include < iostream.h > void main ( ) { First = 10, Second = 20; Jumpto (First; Second); Jumpto (Second); } void Jumpto (int N1, int N2=20) { N1 = N1 + N2; cout<<N1>>N2; }
  • 12. #include <iostream.h> void Jumpto(int N1, int N2=20); // Error 1 void main( ) { int First = 10, Second = 20; // Error 2 Jumpto(First, Second); // Error 3 Jumpto(Second) ; } void Jumpto(int N1, int N2=20) { N1 = N1 + N2; cout<<N1<<N2; // Error 4 }
  • 13. OR #include <iostream.h> void Jumpto(int N1, int N2=20) // Error 1 { N1 = N1 + N2; cout<<N1<< N2; // Error 2 } void main ( ) { int First = 10, Second = 20; // Error 3 Jumpto(First, Second); // Error 4 Jumpto (Second) ; } (½ Mark for each correction) OR (1 Mark for identifying at least three errors, without suggesting correction)
  • 14. (c) Rewrite the following program after removing the syntax error(s), if any. Underline each correction. OD 2008 2 #include <iostream.h> void main ( ) { One = 10, Two = 20; Callme (One;Two) ; Callme (Two) ; } void Callme (int Arg1, int Arg2=20) { 319 Arg1 = Arg1 + Arg2; cout<<Arg1>> Arg2; }
  • 15. #include <iostream.h> OD 2008 void Callme (int,int Arg2=20); //Error 1 void main () { int One=10,Two=20; //Error 2 Callme(One,Two); //Error 3 Callme (Two); } void Callme (int Argl, int Arg2=20) { Argl=Argl +Arg2 ; cout<<Argl<<Arg2; //Error 4 } (½ Mark for each correction) OR (1 Mark for only identifying at least three errors, without suggesting correction)
  • 16. (c) Rewrite the following program after removing the syntactical errors (if any). Underline each correction. Delhi 2009 2 #include [iostream.h] #include [stdio.h] class Employee { int EmpId = 901; char EName [20] ; public Employee ( ) { } void Joining () {cin>>EmpId; gets (EName);} void List ( ) {cout<<EmpId<<“ : ”<<EName<<endl;} } ; contd…
  • 17. void main ( ) { Employee E ; Joining.E ( ) ; E. List ( ) }
  • 18. Ans Delhi 2009 #include <iostream.h> #include <stdio.h> class Employee { int EmpId; char EName[20]; public : Employee() {EmpId=901;} void Joining() {cin>>EmpId; gets (EName);} void List () {cout<<EmpId<<”: “<<EName<<endl;} };
  • 19. void main () { Employee E; E.Joining (); E.List (); } (½ Mark for writing both header files inside < >) (½ Mark for removing = 901 from int Empld = 901;) (½ Mark for writing: after public and; after E.List()) (½ Mark for writing E.Joining ( ); correctly) Note: ½ mark for identifying any two errors without valid correction and 1 mark for identifying all five errors without valid correction
  • 20. (c) Rewrite the following program after removing the syntactical errors (if any).Underline each correction. Outside Delhi 2009 2 include <iostream.h> include <stdio.h> class MyStudent { int StudentId = 1001; char Name [20] ; public MyStudent( ){ } void Register ( ) {cin>>StudentId; gets (Name) ;} void Display ( ) {cout<<StudentId<< “:” <<Name<<end1;} } ; contd...
  • 21. void main ( ) { MyStudent MS ; Register.MS( ) ; MS.Display( ) ; }
  • 22. Ans Outside Delhi 2009 # include <iostream.h> # include <stdio.h> class MyStudent { int StudentId; char Name[20]; public : MyStudent() {StudentId = 1001;} void Register(){ cin>>StudentId; gets (Name);} void Display () {cout«StudentId<<”:“<<Name<<endl;} };
  • 23. void main () { MyStudent MS; MS. Register (); MS. Display () ; } (½ Mark for writing both include as #include) (½ Mark for removing = 1001 from int StudentId = 1001;) (½ Mark for writing: after public) (½ Mark for writing MS. Register ( ) ; correctly) Note: ½ mark for identifying any two errors without valid correction and 1 mark for identifying all five errors without valid correction
  • 24. (c) Rewrite the following c++ program code after removing the syntax error(s) (if any). Underline each correction. Delhi 2010 2 include <iostream.h> class TRAIN { long TrainNo; char Description[25]; public void Entry ( ) { cin >>TrainNo; gets(Description); }
  • 25. Void Display ( ) { cout<<TrainNo<<“:”<<Description<<endl; } }; void main( ) { TRAIN T; Entry. T( ); Display. T( ); }
  • 26. Ans. #include<iostream.h> #include<stdio.h> class TRAIN { long TrainNo; char Description [25]; public: void Entry () { cin>>TrainNo; gets (Description); }
  • 27. void Display () { cout<<TrainNo<<“:”<<Description<<end1; } }; void main () { TRAIN T; T.Entry(); T.Display(); } (½ Mark for writing # before include<iostream.h> (½ Mark for writing # include <stdio.h> (½ Mark for writing: after public) (½ Mark for writing T.Entry(); and T.Display(); correctly)
  • 28. (c) Rewrite the following C++ program code after removing the syntax error(s) (if any). Underline each correction. OD 2010 2 include <iostream.h> class FLIGHT { long FlightCode; char Description[25]; public void AddInfo() { cin>>FlightCode; gets (Description) ; {
  • 29. void ShowInfo() ( cout<<FlightCode<<“:”<<Description<<endl; } } ; void main() { FLIGHT F; AddInfo.F(); ShowInfo.F(); }
  • 30. Ans. #include <iostream.h> / / Error 1 #include <stdio.h> / / Error 2 class FLIGHT { long FlightCode; char Description[25]; public : / / Error 3 void AddInfo ( ) { cin>>FlightCode; gets (Description) ; } correction)
  • 31. void ShowInfo ( ) { cout<<FlightCode<<”:”<<Description<<endl; } } ; void main ( ) { FLIGHT F; F.AddInfo( ) ; F. ShowInfo ( ) ; / / Error 4 } (½ Mark for each correction) OR (1 mark for identifying at least three errors, without suggesting
  • 32. (c) Rewrite the following program after removing the syntactical errors (if any). Underline each correction. Delhi 2011 2 #include[iostream.h] typedef char Text(80) ; void main ( ) { Text T= "Indian"; int Count=strlen(T) ; cout<<T<<'has'<<Count<< 'characters' <<end1; }
  • 33. Ans #include<iostream.h> #include<string.h> typedef char Text [80]; void main ( ) { Text T= "Indian"; int Count=str1en(T); cout<<T<< "has" <<Count<< "cbaracters"<<end1 ; } (½ Mark for writing # include<iostream.h> (½ Mark for writing # include<string.h> (½ Mark for writing typedef char Text(80]; (½ Mark for writing "has" and "characters")
  • 34. (c) Rewrite the following program after removing the syntactical errors (if any). Underline each correction. OD 2011 2 include<iostream.h> typedef char [80] String; void main ( ) { String S= "Peace"; int L=strlen(S) ; cout<<S<< 'has'<<L<< 'characters'<<end1; }
  • 35. Ans #include<string.h> #include<iostream.h> typedef char String [80]; void main ( ) { String S = "Peace"; int L= strlen(S) ; cout<<S<< "has" << L << "characters"<<end1; } (½ Mark for writing # include<string.h> (½ Mark for adding # before include<iostream.h> (½ Mark for writing typedef char string[80];) (½ Mark for writing "has" and "characters")
  • 36. SAMPLE PAPER 2009 SET I c) Rewrite the following program after removing the syntactical errors (if any). Underline each correction. 2 #include [iostream.h] class PAYITNOW { int Charge; PUBLIC: void Raise(){cin>>Charge;} void Show{cout<<Charge;} }; CONTD…
  • 37. SAMPLE PAPER 2009 SET I void main() { PAYITNOW P; P.Raise(); Show(); }
  • 38. SAMPLE PAPER 2009 SET I Answer: #include <iostream.h> class PAYITNOW { int Charge; public: void Raise(){cin>>Charge;} void Show(){cout<<Charge;} }; CONTD…
  • 39. SAMPLE PAPER 2009 SET I Answer: void main() { PAYITNOW P; P.Raise(); P.Show(); } (1/2 Mark for correcting each error) OR (1 Mark for identifying all the 4 errors with no correction)
  • 40. SAMPLE PAPER 2009 SET II c) Rewrite the following program after removing the syntactical errors (if any). Underline each correction. 2 #include <iostream.h> struct Pixels { int Color,Style;} void ShowPoint(Pixels P) { cout<<P.Color,P.Style<<endl;} CONTD…
  • 41. SAMPLE PAPER 2009 SET II void main() { Pixels Point1=(5,3); ShowPoint(Point1); Pixels Point2=Point1; Color.Point1+=2; ShowPoint(Point2); }
  • 42. SAMPLE PAPER 2009 SET II #include <iostream.h> struct Pixels { int Color,Style;}; void ShowPoint(Pixels P) { cout<<P.Color<<P.Style<<endl;} void main() { Pixels Point1={5,3}; ShowPoint(Point1); Pixels Point2=Point1; CONTD…
  • 43. SAMPLE PAPER 2009 SET II Point1.Color+=2; ShowPoint(Point2); } (1/2 Mark for correcting each error) OR (1 Mark for identifying all the 4 errors with no correction)
  • 44. (c) Rewrite the following program after removing the syntactical errors (if any). Underline each correction. SP 2010 2 #include [iostream.h] class MEMBER { int Mno;float Fees; PUBLIC: void Register(){cin>>Mno>>Fees;} void Display{cout<<Mno<<" : "<<Fees<<endl;} }; CONTD….. SAMPLE PAPER 2010 SET I
  • 45. SAMPLE PAPER 2010 SET I void main() { MEMBER M; Register(); M.Display(); }
  • 46. SAMPLE PAPER 2010 SET I (c) #include <iostream.h> class MEMBER { int Mno;float Fees; public: void Register(){cin>>Mno>>Fees;} void Display() {cout<<Mno<<":"<<Fees<<endl;} }; CONTD….
  • 47. SAMPLE PAPER 2010 SET I main() { MEMBER M; M.Register(); M.Display(); } ( ½ Mark each correction)
  • 48. SAMPLE PAPER 2010 SET II (c) Rewrite the following program after removing the syntactical errors (if any). Underline each correction. SP 2010 2 #include <iostream.h> struct Pixels { int Color,Style;} void ShowPoint(Pixels P) { cout<<P.Color,P.Style<<endl;} CONTD….
  • 49. SAMPLE PAPER 2010 SET II void main() { Pixels Point1=(5,3); ShowPoint(Point1); Pixels Point2=Point1; Color.Point1+=2; ShowPoint(Point2); }
  • 50. SAMPLE PAPER 2010 SET II (c) #include <iostream.h> 2 struct Pixels { int Color,Style; }; void ShowPoint(Pixels P) { cout<<P.Color<<P.Style<<endl; } Contd…
  • 51. SAMPLE PAPER 2010 SET II void main() { Pixels Point1={5,3}; ShowPoint(Point1); Pixels Point2=Point1; Point1.Color+=2; ShowPoint(Point2); } ( ½ Mark for each correction)