Cdct Pr 04(Krish)
Cdct Pr 04(Krish)
Date:……………
Practical No.4:Install Python in thevirtual machine created using VirtualBox/VMware
and execute Simple Programs.
A. Objective:ToinstallPyhtononvirtualmachine.
B. ExpectedProgramOutcomes(POs):PO1,PO2,PO3, PO4,PO5,PO6,PO7
C. ExpectedSkillstobedevelopedbasedoncompetency:
Ableto applyoperatevirtualbox/vmware.
D. ExpectedCourseOutcomes(Cos)CO2
E. PracticalOutcome(PRo)
Afterthecompletionofthispracticalstudent willbeableto installanysoftware in
vmware/virtualbox.
F. ExpectedAffectivedomainOutcome(ADos)
Followethicalpractices
G. PrerequisiteTheory:
1. Visithttp://www.virtualbox.org/wiki/downloads.
2. DownloadVirtualBoxplatformpackages foryourOS.
3. OpentheInstallationPackagebydoubleclicking.
4. ClickcontinueandfinishinstallingVirtualBox.
5. Whenfinishedinstallation,closethewindow.
DownloadLinux
1. Visit the page
http://www.ubuntu.com/download/ubuntu/download.
2. ChoosetheLatestversionofUbuntuand32-bitandclick―Start
Download‖CLICK.
226120316056 Page | 33
CloudandDataCenterTechnologies(4361602)
9. ChooseVDI(VirtualBoxDisk Image).
10. ClickContinueorNext.
11. Choose―DynamicallyAllocated‖clickcontinue.Thisway,thesizeofyour
Virtual Hard Disk will grow as you use.
12. Clickthefoldericonandchoosetheubuntuisofileyoudownloaded.
13. Select thesize oftheVirtualDisk (I recommend choosing8 GB) and click
continue
14. ClickCreate.
RunningLinux
1. ChooseUbuntufromleftcolumnandclick Start.
2. Click continue onpop-upwindow.
3. Clickthefoldericonandchoose theubuntuisofileyoudownloadedand click
continue and start.
4. ClickInstallUbuntu.
4. Check―Downloadupdates‖andclickForward.
5. Choose―ErasediskandinstallUbuntu‖andclickForward(Don’tworry,it
won’t wipe your computer).
6. Click ―InstallNow‖andwait.
7. Whenfinished,clickRestart andpressEnter.
CProgrammingon Linux
1. OpenTerminal(Applications-Accessories-Terminal)
2. Opengedit bytyping ―gedit&‖onterminal(YoucanalsouseanyotherText
Editor application)
3. Typethefollowingongedit
(or any other text editor)
#include<stdio.h>
main()
{
printf("HelloWorld\n");
}
4. Savethisfile as
―helloworld.c‖
5. Type―ls‖onTerminaltoseeallfilesundercurrentfolder
6. Confirmthat―helloworld.c‖isinthecurrentdirectory.Ifnot,typecd
DIRECTORY_PATH to go to the directorythat has ―helloworld.c‖
7. Type―gcchelloworld.c‖tocompile,andtype―ls‖toconfirmthatanew
executable file ―a.out‖ is created
8. Type―./a.out‖onTerminaltoruntheprogram
9. Ifyousee―HelloWorld‖onthenextline,youjustsuccessfullyranyourfirst C
program.
226120316056 Page | 34
CloudandDataCenterTechnologies(4361602)
Note:SimilarlyPythoncanbeinstalledandexecuteyourprogram.
H. Resources/EquipmentRequired
Sr.No. Instrument/Equipment Specification
/Components/Trainerkit
1 Computersystemwithoperating system Windows7orhigherVer.,macOS,and
Linux,with4GBorhigherRAM, Python
versions: 2.7.X, 3.6.X
I. SafetyandnecessaryPrecautionsfollowed
Readtheexperimentthoroughlybeforestartingandensurethat you understand all
the steps and concepts involved from underpinning theory.
Keeptheworkspacecleanandorganized,free fromclutterandunnecessary
materials.
Usethesoftwareaccordingtoits intendedpurposeandinstructions.
Ensurethat allthe necessaryequipment andsoftwareareingoodworking
condition.
Nevereatordrink inthe lab,asit cancausecontaminationandcreatesafety
hazards.
Ifanyaccidentsorinjuriesoccur, immediatelynotifythe instructor andseek
medical attention if necessary.
J. Proceduretobefollowed/Sourcecode
226120316056 Page | 35
CloudandDataCenterTechnologies(4361602)
K. PracticalrelatedQuiz.
1. Inthefollowingoptionswhicharepythonlibraries whichareusedfordataanalysis and
scientific computations?
a) Numpy b)Pandas
c)Scipy d)Alloftheabove
2. Whichofthefollowingfunctionchecksinastringthatallcharactersaredecimal?
a) Upper() b)Isdecimal()
c)Swapcase() d)Title()
L. References/Suggestions
1. http://www.ubuntu.com/download/ubuntu/download
2. https://www.python.org/downloads/windows/
M. Assessment-Rubrics
226120316056 Page | 36