SlideShare une entreprise Scribd logo
1  sur  10
CBSE Grade 12 - Computer Science Sample QuestionPaper
Section A
1. a. [2]
i) Which language is the predecesor of C++ language?
ii) Is C++ a case sensitive language? Justify your answer.
1.b. [1]
i) Give an example of a function used to handle characters along with the name of the header
file to be included.
ii) An float variable f_num holds the value 2.8. Name the function that can be used to store 2
into an integer variable i_num from the variable f_num. Name the required header file to use
this function.
1.c. Rewrite the following C++ program after removing all the syntactical errors (if
any), underlining each correction. [2]
#include <iostrem.h>
#define g=9.8;
void main()
{
float mass, force;
cout>>"Enter mass";
cin<<mass;
force := mass*g;
cout>>'Force is'>>force;
};
1.d. Write the output from the following C++ program code: [2]
#include <iostream.h>
#define MAX 4
char *Family[MAX]={"Father","Mother","Son","Daughter"};
int Age[MAX];
void ComputeAge(int AgeOfDaughter)
{
Age[MAX-1]=AgeOfDaughter;
Age[MAX-2]=AgeOfDaughter+4;
Age[MAX-3]=(AgeOfDaughter+6)*2;
Age[MAX-MAX]=Age[MAX-3]+5;
}
void main()
{
ComputeAge(14);
for(int i=0;i<MAX;i++)
cout<<"Age of "<<Family[][i]<<" is "<<Age[i]<<" years";
}
1.e Write the output from the following C++ program code: [3]
#include <iostream.h>
class SamsungSales
{
int NoOfUnits;
float UnitPrice;
float ProfitAmount,ProfitPercentage;
SamsungSales(float profitpercent)
{
ProfitPercentage = profitpercent;
}
void RegisterSales(int units,float price)
{
NoOfUnits = units;
UnitPrice = price;
}
void ComputeProfit()
{
ProfitAmount = (NoOfUnits*UnitPrice*ProfitPercentage)/100;
}
void DisplaySales()
{
cout<<NoOfUnits<<"->"<<UnitPrice<<"->"<<ProfitAmount<<"n";
}
};
void main()
{
SamsungSales S6(20),S6Edge(30);
cout<<"SAMSUNG Salesn";
S6.RegisterSales(100,40000);
S6.DisplaySales();
S6Edge.RegisterSales(50,50000);
S6Edge.ComputeProfit();
S6Edge.DisplaySales();
S6.ComputeProfit();
S6.DisplaySales();
cout<<"!!! Great going !!!";
}
1.f. Study the following C++ program and select the possible output(s) from it :
Find the maximum and minimum value of L. [2]
#include <stdlib.h>
#include <iostream.h>
void main()
{
char *BowlAnOver[9]={"5 Runs","No Ball","Wide","Dot Ball","1 Run","2 Runs","3
Runs","Boundary","Sixer","Wicket"};
randomize();
long L;
for(int i=0;i<6;i++)
{
L=random(6)+4;
cout<<BowlAnOver[][L]<<"-";
}
}
i) Wicket-No Ball-3 Runs-Boundary-2 Runs-1 Run-
ii) Wicket-2 Runs-Sixer-Bounday-1 Run-3 Runs-
iii) 2 Runs-Wicket-Boundary-Sixer-1 Run-3 Runs-
iv) 2 Runs-1 Run-Sixer-Wide-3 Runs-Boundary-
2. a. [2]
i) Differentiate object oriented programing and procedural progrming.
ii) List two advantages of object oriented programming.
ii) Is C++ a case sensitive language? Justify your answer.
2.b. Answer the questions (i) and (ii) after going through the following C++ class [2]
class SuperSinger
{
public:
int SingerID;
char SingerName[100];
int Votes;
SuperSinger() // Function 1
{
SingerID=0;
strcpy(SingerName,"");
Votes=0;
}
SuperSinger(int ID, char S[]) // Function 2
{
SingerID=ID;
strcpy(SingerName,S);
Votes=0;
}
SuperSinger(SuperSinger &S) // Function 3
{
SingerID=S.SingerID;
strcpy(SingerName,S.SingerName);
Votes=S.Votes;
}
Vote()
{
Votes++; // Statement 1
}
~SuperSinger() { } // Function 4
};
i) Name the concept of object oriented programing used in Function 1, Function 2 and Function
3
ii) Name the category of construtor Function 3 belongs to. Define this category.
iii) When is Function 4 invoked? What is it referred to as in object oriented programming?
iv) Name the operator used in Statement 1. In what modes can these operators be used?
2.c. Define a class RetailStore with the following specifications [4]
Private members:
• apparel_id integer
• apparel_name char(30)
• cost_price, sales_price float
• quantity_on_hand integer
Public members:
• A default constructor to reset values
• GetApparelData() to get input from users for the applicable private members and call
ComputeSalesPrice() to determine the SalesPrice
• ComputeSalesPrice() to compute SalesPrice based on the conditions below on profit
percentage:
• 20% if cost_price is greater than 5000
• 10% if cost_price is greater than 4000
• 5% if cost_price is greater than 2000
• 3% for all other items
• ShowApparelData() to display all private members
2.d. Answer the questions below based on the code below: [4]
class customer
{
int cust_id;
char cust_name[50];
char cust_tel[20];
protected:
void StoreCustomer();
pubic:
customer();
void GetCustomer();
void DispCustomer();
};
class branch
{
int br_id;
char br_name[50];
protected:
char br_addr[200];
char br_tel[20];
public:
branch();
void GetBranch();
void DispBranch();
};
class telco : private branch, public customer
{
int telco_id;
char telco_name[100];
float turnover;
public:
telco();
void GetTelco();
void DispTelco();
};
i) Write the names of all data members and member functions accessible from an instance of
class telco.
ii) List the data members accessible from
a) GetTelco()
b) DispBranch()
iii) What type of inheritance is implemented in the above code? Show a diagramatic
representation of the inheritance implemented.
iv) Declare an instance of telco class called IndiaTel. How many bytes are required to store this
object.
[3]
3.a. An array T[-1..35][-2..15] is stored in the memory along the row with each element occupying 4
bytes. Find out the base address and address of element T[20][5], if an element T[2][2] is stored at the
memory location 3000. Find the total number of elements stored in T and number of bytes allocated to T
[3]
3.b. Write a function WorldCup2015() in C++ to sort an array of the following structure in descending
order of Points using bubble sort
struct WorldCupTeams
{
char Country[50];
int Points;
};
[4]
3.c. Write member functions to PUSH and POP a dynamically allocated stack with objects derived from the
following structure:
struct CBSEStudents
{
int Grade;
int NoOfStudents;
CBSEStudents *next;
};
3.d. [2]
Write a function in C++ to print the sum all the numbers divisible by 6 in a 2-dimnsional array which is
passed as an argument to the function.
3.e. [2]
Evaluate the following postfix expression. Show the status of stack after execution of each operation
separately.
4,15,*,60,/,4,4,-,5,*,+
4.a. Write C++ statements for the following requirements: [1]
i) Open binary file "MyData.bin" in append mode with the required declaration
ii) Move the file pointer to read the file 10 bytes before the current position
4.b. [2]
Write a C++ function to count the number of sentences in the file "MyProjectReport.txt" and
display the count.
4.c. [3]
Write a C++ function to search customers having invoice amout more than Rs. 1,00,000 from
binary file "Customers.dat" and display the details of these customers. Assume the availability of
the following class that implements the requirement.
class Customers
{
int cust_id;
char cust_name[50];
char cust_addr[200];
float invoice_amount;
public:
void GetCustomerData()
{
cin>>cust_id>>cust_name>>cust_addr>>invoice_amount;
}
void Display()
{
cout <<"nID:" <<cust_id;
cout<<"tName:" <<cust_name;
cout<<"tAddr:" <<cust_addr;
count<<"tInvoice Amount:" <<invoice_amount<<"n";
}
float GetInvoiceAmount() {return invoice_amount;}
};
Section B
5.a. [2]
i) Define primary key
ii) What datatype can be used to store your date of birth?
5. Based on the table below answer the questions in (b) and (c)
Table: DEPARTMENTS
Dept_No Dept_Name Manager_ID
D10 Sales 1234
D20 Finance 1235
D30 Human Resources 1236
D40 Marketing 1237
Table: EMPLOYEES
Emp_no Emp_Name Dept_No Grade
1234 Priya D10 100
1100 Renga D10 50
1110 Harini D20 50
1120 Smitha D40 60
1235 Lakshmi D20 100
1130 Anandhi D30 70
1236 Abi D30 100
1140 Muthu D20 50
1237 Suji D40 100
1150 Kamala D40 60
5.b. Write SQLs for the following: [4]
i) List the employees sorted by dept_no
ii) List the departments in descending order of dept_name
iii) Display dept_name, manager_id and the name of the manager
iv) List the dept_name and number of employees in each department
5.c. Write the output for the following SQL commands [2]
i) SELECT dept_no, COUNT(*) FROM employees GROUP BY dept_no;
ii) SELECT COUNT(DISTINCT dept_no) FROM employees;
iii) SELECT Grade, COUNT(*) FROM employees GROUP BY Grade;
iv) SELECT emp_name, dept_name FROM employees e, departments d WHERE
d.dept_no=e.dept_no;
6.a. Name the law shown below and veriy using truth table: [2]
X+Y.Z = (X+Y) . (X+Z)
6.b. Draw a logical circuit for the following boolean expression: [2]
_ _
F = (A.B) + (C+D)
6.c. Write the Sum of Product form of the function F(U,V,W) for the following truth table
representation of F: [1]
U V W F
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 0
1 1 1 1
6.d. Obtain the minimal form for the following Boolean expression using K-map. [3]
F(M,N,O,P) = SUM(2, 4, 5, 9, 10, 11, 12)
7.a. [1]
i) What is network?
ii) List 2 reasons to have network
7.b. What is mobile computing? [1]
7.c. Expand the following: [1]
i) CDMA
ii) DHTML
7.d. Differentiate client side scripting and server side scripting [1]
7.e. BlueSoft company has the following details: [4]
• Distance between Development Block & Research block is 100m
• Distance between Development Block & Admin block is 20 m
• Distance between Research block & Admin block is 40 m
• 20 computers are required in Development block
• 100 computers are required in Admin block
• 80 computers are required in Research block
i) In which block should the server be installed?
ii) Design the cabl layout & represent the same diagramatically such that effective
communication would occur
iii) Recommend the bst possible connection from the list below from this company in Delhi to
their client in London:
• Satellite link
• Infrared
• Ethernet cable
iv) Which of the following device(s) is best recommended to connect the computers in the Delhi
office?
• Switch
• Modem
• Gateway
7.f. Differntiate freeware and shareware [1]
7.g. What is virus? List 2 types of viruses [1]

Contenu connexe

Tendances

CS Sample Paper 1
CS Sample Paper 1CS Sample Paper 1
CS Sample Paper 1kvs
 
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
 
Python Part 1
Python Part 1Python Part 1
Python Part 1Sunil OS
 
Basic c++ programs
Basic c++ programsBasic c++ programs
Basic c++ programsharman kaur
 
CBSE Class 12 Computer practical Python Programs and MYSQL
CBSE Class 12 Computer practical Python Programs and MYSQL CBSE Class 12 Computer practical Python Programs and MYSQL
CBSE Class 12 Computer practical Python Programs and MYSQL Rishabh-Rawat
 
programming in C++ report
programming in C++ reportprogramming in C++ report
programming in C++ reportvikram mahendra
 
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
 
Object Oriented Programming Using C++ Practical File
Object Oriented Programming Using C++ Practical FileObject Oriented Programming Using C++ Practical File
Object Oriented Programming Using C++ Practical FileHarjinder Singh
 
Bca 2nd sem u-2 classes & objects
Bca 2nd sem u-2 classes & objectsBca 2nd sem u-2 classes & objects
Bca 2nd sem u-2 classes & objectsRai University
 
Computer science ms
Computer science msComputer science ms
Computer science msB Bhuvanesh
 
2014 computer science_question_paper
2014 computer science_question_paper2014 computer science_question_paper
2014 computer science_question_papervandna123
 

Tendances (20)

CS Sample Paper 1
CS Sample Paper 1CS Sample Paper 1
CS Sample Paper 1
 
Class xi sample paper (Computer Science)
Class xi sample paper (Computer Science)Class xi sample paper (Computer Science)
Class xi sample paper (Computer Science)
 
Programs of C++
Programs of C++Programs of C++
Programs of C++
 
Qno 1 (f)
Qno 1 (f)Qno 1 (f)
Qno 1 (f)
 
Computer Programming- Lecture 9
Computer Programming- Lecture 9Computer Programming- Lecture 9
Computer Programming- Lecture 9
 
Python Part 1
Python Part 1Python Part 1
Python Part 1
 
Computer Programming- Lecture 10
Computer Programming- Lecture 10Computer Programming- Lecture 10
Computer Programming- Lecture 10
 
Computer Programming- Lecture 7
Computer Programming- Lecture 7Computer Programming- Lecture 7
Computer Programming- Lecture 7
 
OOP v3
OOP v3OOP v3
OOP v3
 
Basic c++ programs
Basic c++ programsBasic c++ programs
Basic c++ programs
 
CBSE Class 12 Computer practical Python Programs and MYSQL
CBSE Class 12 Computer practical Python Programs and MYSQL CBSE Class 12 Computer practical Python Programs and MYSQL
CBSE Class 12 Computer practical Python Programs and MYSQL
 
Lecture 12: Classes and Files
Lecture 12: Classes and FilesLecture 12: Classes and Files
Lecture 12: Classes and Files
 
programming in C++ report
programming in C++ reportprogramming in C++ report
programming in C++ report
 
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)
 
Object Oriented Programming Using C++ Practical File
Object Oriented Programming Using C++ Practical FileObject Oriented Programming Using C++ Practical File
Object Oriented Programming Using C++ Practical File
 
Bca 2nd sem u-2 classes & objects
Bca 2nd sem u-2 classes & objectsBca 2nd sem u-2 classes & objects
Bca 2nd sem u-2 classes & objects
 
Xiicsmonth
XiicsmonthXiicsmonth
Xiicsmonth
 
Computer science ms
Computer science msComputer science ms
Computer science ms
 
2014 computer science_question_paper
2014 computer science_question_paper2014 computer science_question_paper
2014 computer science_question_paper
 
Sample paper i.p
Sample paper i.pSample paper i.p
Sample paper i.p
 

En vedette

Html structure
Html structureHtml structure
Html structureakkias
 
Evaluating Websites
Evaluating WebsitesEvaluating Websites
Evaluating WebsitesLisa Barnett
 
The Worst Website Ever - Case Study Lings Cars
The Worst Website Ever - Case Study Lings CarsThe Worst Website Ever - Case Study Lings Cars
The Worst Website Ever - Case Study Lings CarsMarcin Kosedowski
 
Websites: The Good, the Bad and the Ugly
Websites: The Good, the Bad and the UglyWebsites: The Good, the Bad and the Ugly
Websites: The Good, the Bad and the UglyBlackbaud
 
CBSE, Grade12, Computer Science, Random Numbers - Notes
CBSE, Grade12, Computer Science, Random Numbers - NotesCBSE, Grade12, Computer Science, Random Numbers - Notes
CBSE, Grade12, Computer Science, Random Numbers - NotesMalathi Senthil
 
Html5 structure & semantic
Html5 structure & semanticHtml5 structure & semantic
Html5 structure & semanticMuktadiur Rahman
 
Intro to HTML5
Intro to HTML5Intro to HTML5
Intro to HTML5Vlad Posea
 
Intro to Web Design
Intro to Web DesignIntro to Web Design
Intro to Web DesignKathy Gill
 

En vedette (13)

HTML - Structure
HTML - StructureHTML - Structure
HTML - Structure
 
Html structure
Html structureHtml structure
Html structure
 
Web comparison
Web comparisonWeb comparison
Web comparison
 
Evaluating Websites
Evaluating WebsitesEvaluating Websites
Evaluating Websites
 
The Worst Website Ever - Case Study Lings Cars
The Worst Website Ever - Case Study Lings CarsThe Worst Website Ever - Case Study Lings Cars
The Worst Website Ever - Case Study Lings Cars
 
Websites: The Good, the Bad and the Ugly
Websites: The Good, the Bad and the UglyWebsites: The Good, the Bad and the Ugly
Websites: The Good, the Bad and the Ugly
 
CBSE, Grade12, Computer Science, Random Numbers - Notes
CBSE, Grade12, Computer Science, Random Numbers - NotesCBSE, Grade12, Computer Science, Random Numbers - Notes
CBSE, Grade12, Computer Science, Random Numbers - Notes
 
Html5 structure & semantic
Html5 structure & semanticHtml5 structure & semantic
Html5 structure & semantic
 
Html5 Basics
Html5 BasicsHtml5 Basics
Html5 Basics
 
Intro to HTML5
Intro to HTML5Intro to HTML5
Intro to HTML5
 
Html5 intro
Html5 introHtml5 intro
Html5 intro
 
Intro to Web Design
Intro to Web DesignIntro to Web Design
Intro to Web Design
 
Echo HTML5
Echo HTML5Echo HTML5
Echo HTML5
 

Similaire à CBSE Grade12, Computer Science, Sample Question Paper

Sp 1418794917
Sp 1418794917Sp 1418794917
Sp 1418794917lakshmi r
 
Computer Science Sample Paper 2015
Computer Science Sample Paper 2015Computer Science Sample Paper 2015
Computer Science Sample Paper 2015Poonam Chopra
 
Module wise format oops questions
Module wise format oops questionsModule wise format oops questions
Module wise format oops questionsSANTOSH RATH
 
Computer Science Sample Paper 2
Computer Science Sample Paper 2Computer Science Sample Paper 2
Computer Science Sample Paper 2kvs
 
Computer science sqp
Computer science sqpComputer science sqp
Computer science sqpB Bhuvanesh
 
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMINGFINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMINGAmira Dolce Farhana
 
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paperInformatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paperHarish Gyanani
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2Knowledge Center Computer
 
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12chinthala Vijaya Kumar
 
Class 12 computer sample paper with answers
Class 12 computer sample paper with answersClass 12 computer sample paper with answers
Class 12 computer sample paper with answersdebarghyamukherjee60
 
Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014Sreeju Sree
 
Smu bca sem 5th summer 2014 solved assignments
Smu bca sem   5th summer 2014 solved assignmentsSmu bca sem   5th summer 2014 solved assignments
Smu bca sem 5th summer 2014 solved assignmentssmumbahelp
 
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21chinthala Vijaya Kumar
 
C mcq practice test 4
C mcq practice test 4C mcq practice test 4
C mcq practice test 4Aman Kamboj
 
Arrays, Structures And Enums
Arrays, Structures And EnumsArrays, Structures And Enums
Arrays, Structures And EnumsBhushan Mulmule
 
Question Paper Code 065 informatic Practice New CBSE - 2021
Question Paper Code 065 informatic Practice New CBSE - 2021 Question Paper Code 065 informatic Practice New CBSE - 2021
Question Paper Code 065 informatic Practice New CBSE - 2021 FarhanAhmade
 

Similaire à CBSE Grade12, Computer Science, Sample Question Paper (20)

Sp 1418794917
Sp 1418794917Sp 1418794917
Sp 1418794917
 
Computer Science Sample Paper 2015
Computer Science Sample Paper 2015Computer Science Sample Paper 2015
Computer Science Sample Paper 2015
 
Module wise format oops questions
Module wise format oops questionsModule wise format oops questions
Module wise format oops questions
 
Computer Science Sample Paper 2
Computer Science Sample Paper 2Computer Science Sample Paper 2
Computer Science Sample Paper 2
 
Computer science sqp
Computer science sqpComputer science sqp
Computer science sqp
 
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMINGFINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
 
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paperInformatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
 
Sample paper
Sample paperSample paper
Sample paper
 
Part - 2 Cpp programming Solved MCQ
Part - 2  Cpp programming Solved MCQ Part - 2  Cpp programming Solved MCQ
Part - 2 Cpp programming Solved MCQ
 
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
 
Class 12 computer sample paper with answers
Class 12 computer sample paper with answersClass 12 computer sample paper with answers
Class 12 computer sample paper with answers
 
Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014
 
Smu bca sem 5th summer 2014 solved assignments
Smu bca sem   5th summer 2014 solved assignmentsSmu bca sem   5th summer 2014 solved assignments
Smu bca sem 5th summer 2014 solved assignments
 
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
 
Express 070 536
Express 070 536Express 070 536
Express 070 536
 
C mcq practice test 4
C mcq practice test 4C mcq practice test 4
C mcq practice test 4
 
Arrays, Structures And Enums
Arrays, Structures And EnumsArrays, Structures And Enums
Arrays, Structures And Enums
 
Paper
PaperPaper
Paper
 
Question Paper Code 065 informatic Practice New CBSE - 2021
Question Paper Code 065 informatic Practice New CBSE - 2021 Question Paper Code 065 informatic Practice New CBSE - 2021
Question Paper Code 065 informatic Practice New CBSE - 2021
 

Dernier

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 

Dernier (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 

CBSE Grade12, Computer Science, Sample Question Paper

  • 1. CBSE Grade 12 - Computer Science Sample QuestionPaper Section A 1. a. [2] i) Which language is the predecesor of C++ language? ii) Is C++ a case sensitive language? Justify your answer. 1.b. [1] i) Give an example of a function used to handle characters along with the name of the header file to be included. ii) An float variable f_num holds the value 2.8. Name the function that can be used to store 2 into an integer variable i_num from the variable f_num. Name the required header file to use this function. 1.c. Rewrite the following C++ program after removing all the syntactical errors (if any), underlining each correction. [2] #include <iostrem.h> #define g=9.8; void main() { float mass, force; cout>>"Enter mass"; cin<<mass; force := mass*g; cout>>'Force is'>>force; }; 1.d. Write the output from the following C++ program code: [2] #include <iostream.h> #define MAX 4 char *Family[MAX]={"Father","Mother","Son","Daughter"}; int Age[MAX]; void ComputeAge(int AgeOfDaughter) { Age[MAX-1]=AgeOfDaughter; Age[MAX-2]=AgeOfDaughter+4; Age[MAX-3]=(AgeOfDaughter+6)*2; Age[MAX-MAX]=Age[MAX-3]+5; } void main()
  • 2. { ComputeAge(14); for(int i=0;i<MAX;i++) cout<<"Age of "<<Family[][i]<<" is "<<Age[i]<<" years"; } 1.e Write the output from the following C++ program code: [3] #include <iostream.h> class SamsungSales { int NoOfUnits; float UnitPrice; float ProfitAmount,ProfitPercentage; SamsungSales(float profitpercent) { ProfitPercentage = profitpercent; } void RegisterSales(int units,float price) { NoOfUnits = units; UnitPrice = price; } void ComputeProfit() { ProfitAmount = (NoOfUnits*UnitPrice*ProfitPercentage)/100; } void DisplaySales() { cout<<NoOfUnits<<"->"<<UnitPrice<<"->"<<ProfitAmount<<"n"; } }; void main() { SamsungSales S6(20),S6Edge(30); cout<<"SAMSUNG Salesn"; S6.RegisterSales(100,40000); S6.DisplaySales(); S6Edge.RegisterSales(50,50000); S6Edge.ComputeProfit(); S6Edge.DisplaySales(); S6.ComputeProfit(); S6.DisplaySales(); cout<<"!!! Great going !!!"; }
  • 3. 1.f. Study the following C++ program and select the possible output(s) from it : Find the maximum and minimum value of L. [2] #include <stdlib.h> #include <iostream.h> void main() { char *BowlAnOver[9]={"5 Runs","No Ball","Wide","Dot Ball","1 Run","2 Runs","3 Runs","Boundary","Sixer","Wicket"}; randomize(); long L; for(int i=0;i<6;i++) { L=random(6)+4; cout<<BowlAnOver[][L]<<"-"; } } i) Wicket-No Ball-3 Runs-Boundary-2 Runs-1 Run- ii) Wicket-2 Runs-Sixer-Bounday-1 Run-3 Runs- iii) 2 Runs-Wicket-Boundary-Sixer-1 Run-3 Runs- iv) 2 Runs-1 Run-Sixer-Wide-3 Runs-Boundary- 2. a. [2] i) Differentiate object oriented programing and procedural progrming. ii) List two advantages of object oriented programming. ii) Is C++ a case sensitive language? Justify your answer. 2.b. Answer the questions (i) and (ii) after going through the following C++ class [2] class SuperSinger { public: int SingerID; char SingerName[100]; int Votes; SuperSinger() // Function 1 { SingerID=0; strcpy(SingerName,"");
  • 4. Votes=0; } SuperSinger(int ID, char S[]) // Function 2 { SingerID=ID; strcpy(SingerName,S); Votes=0; } SuperSinger(SuperSinger &S) // Function 3 { SingerID=S.SingerID; strcpy(SingerName,S.SingerName); Votes=S.Votes; } Vote() { Votes++; // Statement 1 } ~SuperSinger() { } // Function 4 }; i) Name the concept of object oriented programing used in Function 1, Function 2 and Function 3 ii) Name the category of construtor Function 3 belongs to. Define this category. iii) When is Function 4 invoked? What is it referred to as in object oriented programming? iv) Name the operator used in Statement 1. In what modes can these operators be used? 2.c. Define a class RetailStore with the following specifications [4] Private members: • apparel_id integer • apparel_name char(30) • cost_price, sales_price float • quantity_on_hand integer Public members: • A default constructor to reset values • GetApparelData() to get input from users for the applicable private members and call ComputeSalesPrice() to determine the SalesPrice • ComputeSalesPrice() to compute SalesPrice based on the conditions below on profit percentage: • 20% if cost_price is greater than 5000
  • 5. • 10% if cost_price is greater than 4000 • 5% if cost_price is greater than 2000 • 3% for all other items • ShowApparelData() to display all private members 2.d. Answer the questions below based on the code below: [4] class customer { int cust_id; char cust_name[50]; char cust_tel[20]; protected: void StoreCustomer(); pubic: customer(); void GetCustomer(); void DispCustomer(); }; class branch { int br_id; char br_name[50]; protected: char br_addr[200]; char br_tel[20]; public: branch(); void GetBranch(); void DispBranch(); }; class telco : private branch, public customer { int telco_id; char telco_name[100]; float turnover; public: telco(); void GetTelco(); void DispTelco();
  • 6. }; i) Write the names of all data members and member functions accessible from an instance of class telco. ii) List the data members accessible from a) GetTelco() b) DispBranch() iii) What type of inheritance is implemented in the above code? Show a diagramatic representation of the inheritance implemented. iv) Declare an instance of telco class called IndiaTel. How many bytes are required to store this object. [3] 3.a. An array T[-1..35][-2..15] is stored in the memory along the row with each element occupying 4 bytes. Find out the base address and address of element T[20][5], if an element T[2][2] is stored at the memory location 3000. Find the total number of elements stored in T and number of bytes allocated to T [3] 3.b. Write a function WorldCup2015() in C++ to sort an array of the following structure in descending order of Points using bubble sort struct WorldCupTeams { char Country[50]; int Points; }; [4] 3.c. Write member functions to PUSH and POP a dynamically allocated stack with objects derived from the following structure: struct CBSEStudents { int Grade; int NoOfStudents; CBSEStudents *next; }; 3.d. [2] Write a function in C++ to print the sum all the numbers divisible by 6 in a 2-dimnsional array which is passed as an argument to the function. 3.e. [2] Evaluate the following postfix expression. Show the status of stack after execution of each operation separately. 4,15,*,60,/,4,4,-,5,*,+ 4.a. Write C++ statements for the following requirements: [1]
  • 7. i) Open binary file "MyData.bin" in append mode with the required declaration ii) Move the file pointer to read the file 10 bytes before the current position 4.b. [2] Write a C++ function to count the number of sentences in the file "MyProjectReport.txt" and display the count. 4.c. [3] Write a C++ function to search customers having invoice amout more than Rs. 1,00,000 from binary file "Customers.dat" and display the details of these customers. Assume the availability of the following class that implements the requirement. class Customers { int cust_id; char cust_name[50]; char cust_addr[200]; float invoice_amount; public: void GetCustomerData() { cin>>cust_id>>cust_name>>cust_addr>>invoice_amount; } void Display() { cout <<"nID:" <<cust_id; cout<<"tName:" <<cust_name; cout<<"tAddr:" <<cust_addr; count<<"tInvoice Amount:" <<invoice_amount<<"n"; } float GetInvoiceAmount() {return invoice_amount;} }; Section B 5.a. [2] i) Define primary key ii) What datatype can be used to store your date of birth? 5. Based on the table below answer the questions in (b) and (c) Table: DEPARTMENTS
  • 8. Dept_No Dept_Name Manager_ID D10 Sales 1234 D20 Finance 1235 D30 Human Resources 1236 D40 Marketing 1237 Table: EMPLOYEES Emp_no Emp_Name Dept_No Grade 1234 Priya D10 100 1100 Renga D10 50 1110 Harini D20 50 1120 Smitha D40 60 1235 Lakshmi D20 100 1130 Anandhi D30 70 1236 Abi D30 100 1140 Muthu D20 50 1237 Suji D40 100 1150 Kamala D40 60 5.b. Write SQLs for the following: [4] i) List the employees sorted by dept_no ii) List the departments in descending order of dept_name iii) Display dept_name, manager_id and the name of the manager iv) List the dept_name and number of employees in each department 5.c. Write the output for the following SQL commands [2] i) SELECT dept_no, COUNT(*) FROM employees GROUP BY dept_no; ii) SELECT COUNT(DISTINCT dept_no) FROM employees;
  • 9. iii) SELECT Grade, COUNT(*) FROM employees GROUP BY Grade; iv) SELECT emp_name, dept_name FROM employees e, departments d WHERE d.dept_no=e.dept_no; 6.a. Name the law shown below and veriy using truth table: [2] X+Y.Z = (X+Y) . (X+Z) 6.b. Draw a logical circuit for the following boolean expression: [2] _ _ F = (A.B) + (C+D) 6.c. Write the Sum of Product form of the function F(U,V,W) for the following truth table representation of F: [1] U V W F 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 1 6.d. Obtain the minimal form for the following Boolean expression using K-map. [3] F(M,N,O,P) = SUM(2, 4, 5, 9, 10, 11, 12) 7.a. [1] i) What is network? ii) List 2 reasons to have network
  • 10. 7.b. What is mobile computing? [1] 7.c. Expand the following: [1] i) CDMA ii) DHTML 7.d. Differentiate client side scripting and server side scripting [1] 7.e. BlueSoft company has the following details: [4] • Distance between Development Block & Research block is 100m • Distance between Development Block & Admin block is 20 m • Distance between Research block & Admin block is 40 m • 20 computers are required in Development block • 100 computers are required in Admin block • 80 computers are required in Research block i) In which block should the server be installed? ii) Design the cabl layout & represent the same diagramatically such that effective communication would occur iii) Recommend the bst possible connection from the list below from this company in Delhi to their client in London: • Satellite link • Infrared • Ethernet cable iv) Which of the following device(s) is best recommended to connect the computers in the Delhi office? • Switch • Modem • Gateway 7.f. Differntiate freeware and shareware [1] 7.g. What is virus? List 2 types of viruses [1]