SlideShare une entreprise Scribd logo
1  sur  6
COMPUTER SCIENCE || PAPER - 1
LIST OF PRACTICALS
C++ PROGRAMS
1. UsingArray and Pointers
2. WithClassImplementation
3. UsingArrays of Objects
4. Basedon constructorsand destructors
5. Basedon operatoroverloading
6. Basedon type conversions
7. Basedon single inheritance
8. Single File Operation
VB PROGRAMS
1. Use of varioustoolsintoolbox.
2. Creatingand CustomizingMenus.
3. Use of If… Then…Else,For… Next
4. Use of Do… Loop,Case…Else
5. Designingatable
6. A Simple projectusingVB
HTML PROGRAMS
1. Designingasimple webpage withtext.
2. Designingasimple webpage withtextandgraphics.
3. Use of simple VBScriptinwebpage designing.
Experiment No.1
1. Write a program inC++ that firstinitializesanarrayof given10 real numbers.The programmust
sort numbersinascending/descendingorderusing Bubble –Sort method.It shouldprintthe
givenlistof numbersaswell asthe sortedlist.(15)
2. Enter the programand verifyproperexecutionof the same onthe Computer.(10)
3. Obtaina hard copy of the program listingaswell asoutput.(05)
OR
1. Write a functioninC++ that exchangesdata (passingby reference) usingswap function to
interchange the giventwonumbers.(15)
2. Enter the programand verifyproperexecutionof the same onthe Computer.(10)
3. Obtaina hard copy of the program listingaswell asoutput.The outputmustlistthe given
numbersbefore aswell asafterswapping.(05)
OR
1. Write a program inC++ that firstinitializesanarrayof given10 sortedreal numbers.The
program mustverifywhetheragivenelementbelongsthisarrayor not,using Binary – Search
technique.The element(tobe searched) istobe enteredatthe time of execution.If the number
isfound,the program shouldprintitspositioninthe arrayotherwise itshouldprint“The
numberisnot found.”(15).
2. Enter the programand verifyproperexecutionof the same onthe Computer.(10).
3. Obtaina hard copy of the program listingaswell as outputforsuccessful aswell as Unsuccessful
search.(05)
OR
1. Write a program inC++ that firstinitializesanarrayof five givennumbers(short/float/double).
The program must addthese numbersbytraversingthisarraywitha pointer.The output should
printthe startingaddressof the array withthe size of the number(inbytes) towhichitpoints.
The program must alsoprintthe sum andpointeraddresswithadditionof everynumberaswell
as the endingaddress.(15)
2. Enter the programand verify properexecutionof the same onthe Computer.(10)
3. Obtaina hard copy of the program listingaswell asoutput.(05)
Experiment No.2
1. Write a program inC++ witha ratio classusingmemberfunctionslike assign()functionto
initialize itsmemberdata(integernumeratoranddenominator),convert() functiontoconvert
the ratio intodouble,invert() functiontogetthe inverse of the ratioandprint() functiontoprint
the ratio andits reciprocal.(15)
2. Enter the programand verifyproperexecutionof the same onthe Computer.(10)
3. Obtaina hard copy of the program listingaswell asoutput.(05)
Experiment No.3
1. ImplementaCircle classinC++. Each objectof thisclasswill representacircle,storingitsradius
and x and y co-ordinatesof itscenterasfloats.Include adefaultconstructor,accessfunctions,
an area() functionanda circumference() function.The programmustprintthe co-ordinateswith
radius,areaand circumference of the circle.(15)
2. Enter the programand verifyproperexecutionof the same onthe Computer.(10)
3. Obtaina hard copy of the program listingaswell asoutput.(05)
Experiment No.4
1. Write a program inC++ that initializesaRatioclasswithnoparametersas a defaultconstructor.
The program must printthe message “OBJECTIS BORN”duringinitialization.Itshoulddisplay
the message “NOWX IS ALIVE’’,whenthe firstmemberfunctionRatiox iscalled.The program
mustdisplay“OBJECTDIES” whenthe class destructoriscalledforthe objectwhenitreaches
the endof itsscope.(15)
2. Enter the programand verifyproperexecutionof the same onthe Computer.(10)
3. Obtaina hard copy of the program listingaswell asoutput.(05)
Experiment No.5
1. Write a program inC++ witha complex constructortoadd the giventwocomplex numbers.
A=_________________ and B=_______________. The programshouldprintthe givencomplex
numbersandtheirsum.(15)
2. Enter the programand verifyproperexecutionof the same onthe Computer.(10)
3. Obtaina hard-copyof the programlistingaswell asoutput.(05)
Experiment No.7
1. Write a program inC++ usingvirtual function.The programmustdeclare pto be a pointer to
objectsof the base class Person.First,the programmustassignp to pointan instance x (name
of the personeg.“BOB”) of classPerson.The program mustthenassignp to pointat an instance
y (name of the student,eg.”TOM”) of the derivedclassStudent.Define aprint() functioninthe
base classsuch that it invokesthe same base classfunctiontoprintthe name of the personby
default. The secondcall forthe same shouldevoke the derivedclassfunctiontoprintthe name
of the student.(15)
2. Enter the programand verifyproperexecutionof the same onthe Computer.(10)
3. Obtaina hard-copyof the programlistingaswell asoutput.(05)
OR
1. Write a program inC++ to implementthe followingclasshierarchy:ClassstudenttoobtainRoll
Number,ClassTesttoobtainmarks scoredintwo differentsubjects,ClassSportstoobtain
weight-age (marks) insportsandClassResulttocalculate the total marks.The programmust
printthe roll number,individual marksobtainedintwosubjects,sportsandtotal marks.(15)
2. Enter the programand verifyproperexecutionof the same onthe Computer.(10)
3. Obtaina hard-copyof the programlistingaswell asoutput.(05)
Experiment No.15
1. Create a simple HTML page on any of the followingtopics:College Profile,Computer
Manufactureror Software DevelopmentCompany. The page mustconsistof at least3
paragraphsof text.The page must have an appropriate title,backgroundcolororbackground
image,andhyper-linkstootherpages.The paragraphsmusthave textconsistingof different
colorsand stylesintermsof alignmentandFontSize.(15)
2. Save the file andviewthe same usinganyHTML Browser.Verifyfunctioningof the Hyper-links.
(10)
3. Obtaina hard-copyof the HTML code only.(05)
Experiment No.16
1. Create a simple HTML page on any of the followingtopics:College Profile,Computer
Manufactureror Software Development Company. The page mustconsistof a scrollingmarquee
displayinganappropriate Message.The page mustincludeatable withatleast5 rowsand 3
columnshavingmergedcellsatleastat1 place.The page must alsodisplayanimage,suchthat
whenthe same isviewedthroughabrowserandthe mouse isplaced(hovered) onthe Image,
an appropriate textmessage shouldbe displayed.The image itself shouldalsoactas a hyper-link
to anotherpage.(15)
2. Save the file andviewthe same usinganyHTML Browseroff-line.Verifyfunctioningof the
hyper-links.(10)
3. Obtaina hard-copyof the HTML code only.(05)
OR
1. Write a program inC++ to read the name of a countryfrom one textfile andname of its
correspondingcapital cityfromanothertextfile.The programmustdisplaythe countryname
and indicate itscorrespondingcapital (foratleastfive countries) inthe output.(15)
2. Enter the programand verifyproperexecutionof the same onthe Computer.(10)
3. Obtaina hard-copyof the programlistingaswell asoutput.(05)
Experiment No.17
1. Write a program inVisual Basicthat calculatesareaand selectionof twoshapes,Circleand
Rectangle.(15)
2. Enter the programand verifyproperexecutionof the same onthe Computer.(10)
3. Obtaina hard-copyof the programlistingbyprintingthe FRMfile.(05)
Experiment No.24
1. Write a program inVisual Basicto findthe Sumof first100 numbersenteredusingDoloop.(15)
2. Enter the programand verifyproperexecutionof the same onthe Computer.(10)
3. Obtaina hard-copyof the programlistingbyprintingthe FRMfile.(05)

Contenu connexe

Tendances

Race conditions
Race conditionsRace conditions
Race conditions
Mohd Arif
 
FP304 DATABASE SYSTEM PAPER FINAL EXAM AGAIN
FP304 DATABASE SYSTEM  PAPER FINAL EXAM AGAINFP304 DATABASE SYSTEM  PAPER FINAL EXAM AGAIN
FP304 DATABASE SYSTEM PAPER FINAL EXAM AGAIN
Syahriha Ruslan
 

Tendances (20)

Online grocery store
Online grocery storeOnline grocery store
Online grocery store
 
Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language
 
15 puzzle problem using branch and bound
15 puzzle problem using branch and bound15 puzzle problem using branch and bound
15 puzzle problem using branch and bound
 
Race conditions
Race conditionsRace conditions
Race conditions
 
introduction to c language
 introduction to c language introduction to c language
introduction to c language
 
Recursion in c++
Recursion in c++Recursion in c++
Recursion in c++
 
Introduction to c++ ppt
Introduction to c++ pptIntroduction to c++ ppt
Introduction to c++ ppt
 
Servlet
Servlet Servlet
Servlet
 
Object oriented programming c++
Object oriented programming c++Object oriented programming c++
Object oriented programming c++
 
DAA Lab File C Programs
DAA Lab File C ProgramsDAA Lab File C Programs
DAA Lab File C Programs
 
FP304 DATABASE SYSTEM PAPER FINAL EXAM AGAIN
FP304 DATABASE SYSTEM  PAPER FINAL EXAM AGAINFP304 DATABASE SYSTEM  PAPER FINAL EXAM AGAIN
FP304 DATABASE SYSTEM PAPER FINAL EXAM AGAIN
 
IT2255 Web Essentials - Unit II Web Designing
IT2255 Web Essentials - Unit II  Web DesigningIT2255 Web Essentials - Unit II  Web Designing
IT2255 Web Essentials - Unit II Web Designing
 
Inheritance and Polymorphism Java
Inheritance and Polymorphism JavaInheritance and Polymorphism Java
Inheritance and Polymorphism Java
 
Threads And Synchronization in C#
Threads And Synchronization in C#Threads And Synchronization in C#
Threads And Synchronization in C#
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
Activity and sequence diagram of telemedicine app
Activity and sequence diagram of telemedicine appActivity and sequence diagram of telemedicine app
Activity and sequence diagram of telemedicine app
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
Operators in PHP
Operators in PHPOperators in PHP
Operators in PHP
 
Friend function
Friend functionFriend function
Friend function
 
Servlets
ServletsServlets
Servlets
 

Similaire à HSc Computer Science Practical Slip for Class 12

BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docxBTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
AASTHA76
 
Assignment 1 for 2nd sem
Assignment 1 for 2nd semAssignment 1 for 2nd sem
Assignment 1 for 2nd sem
home
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfolio
mwillmer
 

Similaire à HSc Computer Science Practical Slip for Class 12 (20)

C++ Lab Maual.pdf
C++ Lab Maual.pdfC++ Lab Maual.pdf
C++ Lab Maual.pdf
 
C++ Lab Maual.pdf
C++ Lab Maual.pdfC++ Lab Maual.pdf
C++ Lab Maual.pdf
 
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org) (usef...
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org)  (usef...Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org)  (usef...
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org) (usef...
 
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docxBTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
 
Bcsl 031 solve assignment
Bcsl 031 solve assignmentBcsl 031 solve assignment
Bcsl 031 solve assignment
 
CS291(C Programming) assignment
CS291(C Programming) assignmentCS291(C Programming) assignment
CS291(C Programming) assignment
 
Assignment 1 for 2nd sem
Assignment 1 for 2nd semAssignment 1 for 2nd sem
Assignment 1 for 2nd sem
 
2621008 - C++ 1
2621008 -  C++ 12621008 -  C++ 1
2621008 - C++ 1
 
c++ referesher 1.pdf
c++ referesher 1.pdfc++ referesher 1.pdf
c++ referesher 1.pdf
 
Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newMd university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab new
 
Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newMd university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab new
 
Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newMd university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab new
 
Cse cpl manual-2016
Cse cpl manual-2016Cse cpl manual-2016
Cse cpl manual-2016
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfolio
 
P3
P3P3
P3
 
Oopp Lab Work
Oopp Lab WorkOopp Lab Work
Oopp Lab Work
 
T2
T2T2
T2
 
The First C# Project Analyzed
The First C# Project AnalyzedThe First C# Project Analyzed
The First C# Project Analyzed
 
C# p3
C# p3C# p3
C# p3
 
01 Introduction to programming
01 Introduction to programming01 Introduction to programming
01 Introduction to programming
 

Plus de Aditi Bhushan

Plus de Aditi Bhushan (20)

Binary Search
Binary SearchBinary Search
Binary Search
 
Chapter 15 [Bhagvad Geeta]
Chapter 15 [Bhagvad Geeta]Chapter 15 [Bhagvad Geeta]
Chapter 15 [Bhagvad Geeta]
 
COMPUTER SCIENCE CLASS 11
COMPUTER SCIENCE CLASS 11COMPUTER SCIENCE CLASS 11
COMPUTER SCIENCE CLASS 11
 
HTML and CSS codes
HTML and CSS codesHTML and CSS codes
HTML and CSS codes
 
HTML codes 1
HTML codes 1HTML codes 1
HTML codes 1
 
Basics of python programming
Basics of python programmingBasics of python programming
Basics of python programming
 
Basics of Information Technology
Basics of Information TechnologyBasics of Information Technology
Basics of Information Technology
 
Calculation of Area of Circle and Rectangle
Calculation of Area of Circle and RectangleCalculation of Area of Circle and Rectangle
Calculation of Area of Circle and Rectangle
 
Calculation of first 100 numbers using do-until loop
Calculation of first 100 numbers using do-until loopCalculation of first 100 numbers using do-until loop
Calculation of first 100 numbers using do-until loop
 
HSc Information Technology Practical List
HSc Information Technology Practical List HSc Information Technology Practical List
HSc Information Technology Practical List
 
Cpp source code1
Cpp source code1Cpp source code1
Cpp source code1
 
Fibonacci Series Program in C++
Fibonacci Series Program in C++Fibonacci Series Program in C++
Fibonacci Series Program in C++
 
Visual Basic Source Codes for Class 11 HSc Paper 1 Practicals
Visual Basic Source Codes for Class 11 HSc Paper 1 PracticalsVisual Basic Source Codes for Class 11 HSc Paper 1 Practicals
Visual Basic Source Codes for Class 11 HSc Paper 1 Practicals
 
Introduction to Visual basic 6.0
Introduction to Visual basic 6.0Introduction to Visual basic 6.0
Introduction to Visual basic 6.0
 
Functional hardware of pc
Functional hardware of pcFunctional hardware of pc
Functional hardware of pc
 
Language and its Function
Language and its FunctionLanguage and its Function
Language and its Function
 
Teacher autonomy : a tool to create learner autonomy
Teacher autonomy : a tool to create learner autonomyTeacher autonomy : a tool to create learner autonomy
Teacher autonomy : a tool to create learner autonomy
 
Importance of body language at workplace
Importance of body language at workplaceImportance of body language at workplace
Importance of body language at workplace
 
Role of indian govt. portal e pg pathshala
Role of indian govt. portal e pg pathshalaRole of indian govt. portal e pg pathshala
Role of indian govt. portal e pg pathshala
 
conservation of solar energy
conservation of solar energyconservation of solar energy
conservation of solar energy
 

Dernier

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
heathfieldcps1
 
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
KarakKing
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Dernier (20)

Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
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
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.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
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
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.
 
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
 
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
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
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Ữ Â...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

HSc Computer Science Practical Slip for Class 12

  • 1. COMPUTER SCIENCE || PAPER - 1 LIST OF PRACTICALS C++ PROGRAMS 1. UsingArray and Pointers 2. WithClassImplementation 3. UsingArrays of Objects 4. Basedon constructorsand destructors 5. Basedon operatoroverloading 6. Basedon type conversions 7. Basedon single inheritance 8. Single File Operation VB PROGRAMS 1. Use of varioustoolsintoolbox. 2. Creatingand CustomizingMenus. 3. Use of If… Then…Else,For… Next 4. Use of Do… Loop,Case…Else 5. Designingatable 6. A Simple projectusingVB HTML PROGRAMS 1. Designingasimple webpage withtext. 2. Designingasimple webpage withtextandgraphics. 3. Use of simple VBScriptinwebpage designing.
  • 2. Experiment No.1 1. Write a program inC++ that firstinitializesanarrayof given10 real numbers.The programmust sort numbersinascending/descendingorderusing Bubble –Sort method.It shouldprintthe givenlistof numbersaswell asthe sortedlist.(15) 2. Enter the programand verifyproperexecutionof the same onthe Computer.(10) 3. Obtaina hard copy of the program listingaswell asoutput.(05) OR 1. Write a functioninC++ that exchangesdata (passingby reference) usingswap function to interchange the giventwonumbers.(15) 2. Enter the programand verifyproperexecutionof the same onthe Computer.(10) 3. Obtaina hard copy of the program listingaswell asoutput.The outputmustlistthe given numbersbefore aswell asafterswapping.(05) OR 1. Write a program inC++ that firstinitializesanarrayof given10 sortedreal numbers.The program mustverifywhetheragivenelementbelongsthisarrayor not,using Binary – Search technique.The element(tobe searched) istobe enteredatthe time of execution.If the number isfound,the program shouldprintitspositioninthe arrayotherwise itshouldprint“The numberisnot found.”(15). 2. Enter the programand verifyproperexecutionof the same onthe Computer.(10). 3. Obtaina hard copy of the program listingaswell as outputforsuccessful aswell as Unsuccessful search.(05) OR 1. Write a program inC++ that firstinitializesanarrayof five givennumbers(short/float/double). The program must addthese numbersbytraversingthisarraywitha pointer.The output should printthe startingaddressof the array withthe size of the number(inbytes) towhichitpoints. The program must alsoprintthe sum andpointeraddresswithadditionof everynumberaswell as the endingaddress.(15) 2. Enter the programand verify properexecutionof the same onthe Computer.(10) 3. Obtaina hard copy of the program listingaswell asoutput.(05)
  • 3. Experiment No.2 1. Write a program inC++ witha ratio classusingmemberfunctionslike assign()functionto initialize itsmemberdata(integernumeratoranddenominator),convert() functiontoconvert the ratio intodouble,invert() functiontogetthe inverse of the ratioandprint() functiontoprint the ratio andits reciprocal.(15) 2. Enter the programand verifyproperexecutionof the same onthe Computer.(10) 3. Obtaina hard copy of the program listingaswell asoutput.(05) Experiment No.3 1. ImplementaCircle classinC++. Each objectof thisclasswill representacircle,storingitsradius and x and y co-ordinatesof itscenterasfloats.Include adefaultconstructor,accessfunctions, an area() functionanda circumference() function.The programmustprintthe co-ordinateswith radius,areaand circumference of the circle.(15) 2. Enter the programand verifyproperexecutionof the same onthe Computer.(10) 3. Obtaina hard copy of the program listingaswell asoutput.(05) Experiment No.4 1. Write a program inC++ that initializesaRatioclasswithnoparametersas a defaultconstructor. The program must printthe message “OBJECTIS BORN”duringinitialization.Itshoulddisplay the message “NOWX IS ALIVE’’,whenthe firstmemberfunctionRatiox iscalled.The program mustdisplay“OBJECTDIES” whenthe class destructoriscalledforthe objectwhenitreaches the endof itsscope.(15) 2. Enter the programand verifyproperexecutionof the same onthe Computer.(10) 3. Obtaina hard copy of the program listingaswell asoutput.(05)
  • 4. Experiment No.5 1. Write a program inC++ witha complex constructortoadd the giventwocomplex numbers. A=_________________ and B=_______________. The programshouldprintthe givencomplex numbersandtheirsum.(15) 2. Enter the programand verifyproperexecutionof the same onthe Computer.(10) 3. Obtaina hard-copyof the programlistingaswell asoutput.(05) Experiment No.7 1. Write a program inC++ usingvirtual function.The programmustdeclare pto be a pointer to objectsof the base class Person.First,the programmustassignp to pointan instance x (name of the personeg.“BOB”) of classPerson.The program mustthenassignp to pointat an instance y (name of the student,eg.”TOM”) of the derivedclassStudent.Define aprint() functioninthe base classsuch that it invokesthe same base classfunctiontoprintthe name of the personby default. The secondcall forthe same shouldevoke the derivedclassfunctiontoprintthe name of the student.(15) 2. Enter the programand verifyproperexecutionof the same onthe Computer.(10) 3. Obtaina hard-copyof the programlistingaswell asoutput.(05) OR 1. Write a program inC++ to implementthe followingclasshierarchy:ClassstudenttoobtainRoll Number,ClassTesttoobtainmarks scoredintwo differentsubjects,ClassSportstoobtain weight-age (marks) insportsandClassResulttocalculate the total marks.The programmust printthe roll number,individual marksobtainedintwosubjects,sportsandtotal marks.(15) 2. Enter the programand verifyproperexecutionof the same onthe Computer.(10) 3. Obtaina hard-copyof the programlistingaswell asoutput.(05) Experiment No.15 1. Create a simple HTML page on any of the followingtopics:College Profile,Computer Manufactureror Software DevelopmentCompany. The page mustconsistof at least3 paragraphsof text.The page must have an appropriate title,backgroundcolororbackground
  • 5. image,andhyper-linkstootherpages.The paragraphsmusthave textconsistingof different colorsand stylesintermsof alignmentandFontSize.(15) 2. Save the file andviewthe same usinganyHTML Browser.Verifyfunctioningof the Hyper-links. (10) 3. Obtaina hard-copyof the HTML code only.(05) Experiment No.16 1. Create a simple HTML page on any of the followingtopics:College Profile,Computer Manufactureror Software Development Company. The page mustconsistof a scrollingmarquee displayinganappropriate Message.The page mustincludeatable withatleast5 rowsand 3 columnshavingmergedcellsatleastat1 place.The page must alsodisplayanimage,suchthat whenthe same isviewedthroughabrowserandthe mouse isplaced(hovered) onthe Image, an appropriate textmessage shouldbe displayed.The image itself shouldalsoactas a hyper-link to anotherpage.(15) 2. Save the file andviewthe same usinganyHTML Browseroff-line.Verifyfunctioningof the hyper-links.(10) 3. Obtaina hard-copyof the HTML code only.(05) OR 1. Write a program inC++ to read the name of a countryfrom one textfile andname of its correspondingcapital cityfromanothertextfile.The programmustdisplaythe countryname and indicate itscorrespondingcapital (foratleastfive countries) inthe output.(15) 2. Enter the programand verifyproperexecutionof the same onthe Computer.(10) 3. Obtaina hard-copyof the programlistingaswell asoutput.(05) Experiment No.17 1. Write a program inVisual Basicthat calculatesareaand selectionof twoshapes,Circleand Rectangle.(15) 2. Enter the programand verifyproperexecutionof the same onthe Computer.(10) 3. Obtaina hard-copyof the programlistingbyprintingthe FRMfile.(05)
  • 6. Experiment No.24 1. Write a program inVisual Basicto findthe Sumof first100 numbersenteredusingDoloop.(15) 2. Enter the programand verifyproperexecutionof the same onthe Computer.(10) 3. Obtaina hard-copyof the programlistingbyprintingthe FRMfile.(05)