0% found this document useful (0 votes)
24 views5 pages

CS-I (D93) Practical Slips

The document outlines various programming experiments and tasks for students in C++ and Visual Basic, focusing on practical applications such as sorting algorithms, data structures, and user interface design. Each experiment includes specific requirements for program functionality, execution verification, and output documentation. The tasks range from basic programming concepts to more advanced topics like class hierarchies and file handling.

Uploaded by

Nilesh Pathak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
24 views5 pages

CS-I (D93) Practical Slips

The document outlines various programming experiments and tasks for students in C++ and Visual Basic, focusing on practical applications such as sorting algorithms, data structures, and user interface design. Each experiment includes specific requirements for program functionality, execution verification, and output documentation. The tasks range from basic programming concepts to more advanced topics like class hierarchies and file handling.

Uploaded by

Nilesh Pathak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 5
-; MAHARASHTRA STATE BOARD OF SECONDARY AND HIGHER SECONDARY EDUCATION, PUNE ~ 411 005 Computer Science D-9 (Paper 1) H.S.C. Board Practical Examination Slips _____ Experiment No. 1 ayer’ program in C++ that first Intalises an aT of given 10 real numbers. The program must sort as) | er ama damgiescendng ordet Using Bubble-Sort method. It shoud print the given list of ftumbers as well a the sorted list. b) Enter the program and verly proper execution ofthe same on the Comput. (19) ©). Obtaln a hardopy ofthe program listing 2s well as output. 6) OR 2) Write a furetion in C++ that exchanges data (passing by reference) using swaP function to interchange (15) the given two numbers. by Ente the program and verfy proper exeaition of the same on the Comput. (29) Sean dopy ef the program Ising 2s well as oui. The output must Is. the en numbers) before as well as after swapping. OR a) Write a prograin in C++ that first intialises an array of given 10 sorted real numbers. The program must (15) Werty whether a given element belongs this array or nok, using Binary Search technique. The element {ote searched) isto be entered atthe time of execution. the numbet is sno, “ne program should ects pest nthe aray otherwise K should print "The number not found : by Enter the program and verify proper execution of the same on the Computer. (20) 2 Ghia a hardoopy ofthe program Ising as well as output for sucressful as well as unsuccessful search. (5) OR 2) Write » program in Cit that fist Intiaises an aray of five given numbers (short/float/ double). The (15) Wirt roar ese mutes by tversg this aay wth a per, The out sta re Broaram ur 2 he aay wth the te of Uh number (bytes) 0 wht ors, The regrar ast Sting ores: porte adress wih the eden of every ruber as wel asthe ending adress by Emer the program and very proper execution ofthe same on the Computer. ©) Obtain a hardcopy of the program listing as well as output. on OR a) wrt a uncon C+ to Input the gen suing (tang spaces) and reverse using 2 Unser mA 5) wre funton nan ws the ft characer wth te last character, the second charade ‘with the secondlast character and 0 On. tb) Enter the program and verfy proper execution af the same onthe Compstes (20) ©) Enter the progam a Tora ising os wel a ouput, Te output must inci the oven Sting = 6) well as the reversed string, “a Experiment No. 2 z 1) Write a program in C++, which defines 2 node dass, each of whose objects contain an integer date Mone eercrent pointer The program should alow the user to create 2 linked ist in reverse and then traverse the list printing each data value Enter the program and verify proper of the same on the Computer. ° Enter te program and very pope aang as wel a5 pA consing ofthe numbers pt in the reverse order. oR as) qo) © a) Write @ programm in C++ vith a zatso clas using member functions lke a25ign () function to Wests cs) te member dota (integer numerator and denominator), conver () function to convert the ratio into double, invert () eget Tumers were ofthe ra and print () function to pint the ao and Its reciprocal. io ») Trea program and very proper execution ofthe same on the Computes, o 2 Gian hardepy ofthe program Ista well 9 EE 7 | XE y crores fecence() function. The program must pint the co-ordinates wih radius, area _Arimment No. 3 2). Implement a cix cle dass in C++. Each object of this dass will represent a circe, storing its radius and (15) are am ordinates of is cenre as floats. Indude a default consuetny, me functions, an are () and circumference of the circle. » Bras the program end very proper execution of the same on the Comput. ao) Obtain 2 hardcopy ofthe program listing as well as output. a @) Experiment No. 4 a) ite a prosyam C++ tha esa at oss thr parameter 52 de ea A as) Pee rear raving no parameters that intalses the declared objec wih Oe default integer values —_ land. . Ad another constructor that has one, tee parameter. This constructor must inalse the aa ow tre Tacional equivalent of that integer. The output shove print the ratio as per the constructors. » const ram and venfy proper execution ofthe same on the ComPMte 29) ©) Obtain a hardopy ofthe program isting as well a output © OR a) ut «progam i ce at lear das wt ne prams 2 C0 SS as) program must print the message "OBJECT FS BORN" during Initialistion. 1 should display the F _ Page ‘NOW X 15 ALIVE" en te fst member Hci Ratio x is called. The program must VA NO he is der ce forte et en secs ens scope. s SEPP program and very proper execution ofthe same othe COMPLE, 4 e. (Gbeain a hardcopy ofthe program isting as well as output. — ® ‘experiment No. 5 2 vite a pram ni wt econplx condor to add the NNO GRE (15) ‘= and B= Seram should print the given complex numbers and her sum (a0) +b) se proram and very proper exectin of the same onthe Compute cite Ae (ardcopy ofthe program isting as well as output. © u on a) ne a prayem n ce to eet te gon an en, peat me aso See VM as) We mo Seedy ter sure end we on AP * » Print the Se and verty proper execution of the same onthe COMPLE, @ i) Obtain a ofthe isting 2s well SS Experiment No. 6 as) 2), oe cairns ces ecromet cme ST nh verify ‘executic ‘of the same on the Computer. (10) eae te rt = value conversion from (8) - rectangular to polar and vice-vers2. £ —— “eriment No. 7 2) Write @ program In C++ to Implement the following class hierarchy: Ciass Student to obtain Roll (25) Number, Class Test to obtain marks scored in two different subjects, Class Sports to obtain | weightage (imarks) in sports and Class Result to cakculate the total marks. The program must print the roll number, individual marks obtained in two subjects, sports and total marks. ‘Student | . _ Tet Spor ’ Ea Result b) Enter the program and verfy proper execution of the same on the Computer. 29) | 6) Obtain « hardcopy of the program isting as well as output, © OR 2) Write a program in C++ using vitual function. The program must declare p to be @ pointer to (15) objects ofthe base class reson. Fist, the program must assign p to point an Instance x (name of the person ¢g. "B08") of class Perscn. The program must then assign p to reint at an instance y (name of the student, eg. “TOM") of the derived dass student. 7 (29) Define @ print) function in the base class such that it invokes the same base ciass function to print (6) the name of the person by defauit. The second call for the same should evoke the derived cass function to print the name of the student. b) Enter the program and verty proper execution ofthe same on the Computer, )_Obtain a hardcopy ofthe program listing as well as output. Experiment No. 8 2) Write program in C++ to read the name of a country from one text flle and name of its (15) corresponding capital cty from another text file. The program must display the country name and indicate its corresponding capital (for atleast five countries) in the output (19) b) Enter the program and verty proper execution of the same on the Computer. 6) <)_Obtain 2 hardcopy of the program listing as well as output. = Experiment No. 9 Rectangle. (10) inter the program and very proper execution of the same on the Computer. 6) Obtain hardcopy of the program listing by printing the FRM file. OR ‘Write a program’ in Visual Basic that calculates area and selection of ae Circle and (15) a) Wrte Prepare a project in Visual Basic that will display a picture with red color as background on (15) form_load event. When the drag-drop operation Is carried out, the background color must change to ‘green and when the drag-over operation Is carried out, the background color must change to blue. ) Enter the program and vert proper execution ofthe same on the Computer. 10) ©) Obtain a hardcopy of the program listing by printing the FRM fle. @ OR . 2) Wrte a program in Visual Basic that creates a Simple form, which asks the user to enter Name of the (15) Student, Marks obtained in Subject 1, Subject 2, and Subject 3. As the name, and marks obtained in ‘the various subjects are entered, the pointer’ should automatically point at the next field to be centered, At the end it should move to the command button. When the command button is clicked, ‘he program must save the record. 'b) Enter the program and verify proper execution of the same on the Computer. (20) ‘¢) Obtain a hardcopy of the program listing by printing the FRM file. (3) ‘OR 2) Write @ program in Visual Basic to prepare a, list of items in one List Box (Say computers & (15) peripherals). After selecting the items, the selection must be listed in second list which will be utomatically sorted. The program must also provide options by which will enable users to add the items from the frst or second list If needed, as well as options to remove items from the list. re b) Enter the program and verify proper execution of the same on the Computer. o )___ Obtain a hardeopy of the program listing by printing the FRM fle. ae (5) “aiment No. 10 2) Write @ program in Visual Basic to creave a Text Edltor, which has the following Menu options as) { Fil Eat er [aes open | 3 copy * A RS Be 3G ) Enter the program and verify proper executiotof the same on the Camputer using text or text file. (20) ©) Obtain a hardcopy of the program listing by printing the FRM file. 6) OR 2) ‘Write a program in Visual Basic that constructs a scientific calculator with SIN, COS, TAN, LOG, 1/x (15) | (reciprocal) and SQR (Square Root) functions only. Display the error messages es and when required, ') Enter the program and verify proper execution of the same on the Computer. ao) ©) Ostain a hardcopy of the program listing by printing the FRM file. IT Experiment No. 11 _ ) Write @ program in Visual Basic that accepts Name of the Person, Date of Birth and Telephone (15) ‘Number as data during execution. The program must check the validity of contents and must display t an appropriate error message along with appropriate corrective suggestions if er : ‘entered, ') Enter the program and verify proper execution of the same on the Computer. (20) ©)_Sbtzin a hardcopy of the program listing by printing the ERM file, @) experiment No. 12 8) White 2 rogram in Visual Base that accepts Name ofthe Person, Date of sith and Telephone (15) | ‘Number as data during execution. The program must check the validity of contents and must display | an appropriate eror messoge along wit appropriate corrective suggestions. Cat jr tneomecy entered. ») Enter the program and verity proper execution of the same on the Computer. 29) ©) Obtain a hardcopy of the program listing by printing the FRM file, 6) OR '2)-Wirte a progrdm in Visual Basic to find the sum of frst 100 numbers entered using De loop, as) | 7 ~) Ener the program and very proper execton ofthe same onthe Computer. 9) | ©) Obtain a hardcopy of the program listing by printing the FRM file, OR @) Write @ progran in Visual Basic Using Case condition that accepts the marks out of 100 of six students (15) in si subjects during execution. The program should display the Class obtained by the student based on the following conditions: 4] if student has secured less than 40% in any subject then that student is declared Failed. 2] ifthe student secures more than 40% and less than 60% aggregate and has secured at least 40% in each subject, then he/she will be awarded Second Class. 3] Ifthe student secures 60% aggregate and hes secured at least 40% In each subject, then he/she will bbe awarded First Class. . (Enter Marks for three subjects only) ) Enter the program and verty proper execution of the same on the Computer. a9) | ¢)_Obtain a hardcopy of the program listing by printing the FRM file. &) Experiment No. 13 2) Write @ program in Visual Basic which accepts a Person's name, Telephone number and e-mail (15) ‘oddress. Enter the Information for 5 different persons. Using TAB properties, display the information. a j, ®) Enter the program and verfy proper execution of the same on the Computer. (19) ¢)__Obtain a hardcopy of the program listing by printing the FRM file. (s) Experiment No. 14 ®) Create a graphic editor using Visual Basic, which has the following functions: change color, change line (15) , fil color, change border color etc. (Select any three properties to change), - ») Enter the program and verty proper execution of the same on the Computer. (10) |Le)_Obtain a hardcopy of the program listing by printing the FRM fle. ©) aefiment No. 15 2) Create a simple HTML page on any of the following topics: College Profle, Computer Manufacturer, or Software Development Company. The page must consist of at least 3 paragraphs of text. The page must have an appropriate tile, backround color or background image, and hyperlinks to other pages. ‘The paragrapiis nwst have text consisting of different colors and styles in terms of alignment and Font Size. b) Save the file and view the same using any HTML Browser. Verify functioning of the hyper", )_Obtain a hardcopy of the HTML code only Experiment No. 16 = 4) Create @ simple HTML page on any of the following topics: College Profile, Computer Manufacturer, or Software Development Company. es ‘The Sage must consist of at least 3 paragraphs of text. The page must have an appropriate title, ‘background color or background image, and hypertinks to other pages. The paragraphs must have text Consisting of different colors and styles in terms of alignment and Font Size, b) Save the fle and view the same using eny HTML Browser offine. Verify functioning of the hypertinks. ©) Obtain @ hardcopy of the HTML code ony OR 2) Create a simple HTML page on any of the following topics: _~ College Profile, Computer Manufacturer, or Software Development Company. ‘The Dage must consist of a scroling ‘marquee displaying an appropriate Message, The page must Include @ table with at least 5 rows and 3 columns having merged cells at least af 1 place. The page ‘must also display an image, such that when the same Is viewed through a browser and the mouse fs placed (hovered) on the Image, an appropriate text message should be displayed. The image itself ‘| should also act as a hyperlink to another page. b) Save the file and view the same using any HTML Browser offiine. Very functioning of the hyperiinks. ¢)_Obtaln a hardcopy of the HTML code only Experiment No. 17 12) Write a simple VB Script to do the following task when executed: ‘) Collect Information of Name, Date of Birth and Gender from an individual. ‘t) Using date of birth, calculate the age. Ii) If age is 16 years or less, then ask for Name of School, if age is more than 16 years but less than or equal to 22 years then ask for Name of College and lf age Is greater than 22 years then ask for ‘heme of the individual's workplace. |v) Display a page based on all the above information that would display, the Individuals Name, ate Of Birth, Gender as well as the appropriate Entry made as mentioned in Point li). 'b) Incorporate this script in an HTML Page and view the page using any HTML Browser offine. Verify the correct creation of the generated page. Obtain a hardcopy of the HTML code of the original page containing the VB Script as well as the page (L_displaving the information. (20) ©. (as) (10) 6) as) (39) (as) a0) 6)

You might also like