0% found this document useful (0 votes)
4 views4 pages

Cdct Pr 04(Krish)

The document outlines a practical exercise for installing Python on a virtual machine using VirtualBox or VMware, including step-by-step instructions for installation and running a simple C program. It specifies the expected outcomes, skills to be developed, prerequisites, and safety precautions. Additionally, it includes a quiz, references, and assessment rubrics for evaluating student performance.

Uploaded by

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

Cdct Pr 04(Krish)

The document outlines a practical exercise for installing Python on a virtual machine using VirtualBox or VMware, including step-by-step instructions for installation and running a simple C program. It specifies the expected outcomes, skills to be developed, prerequisites, and safety precautions. Additionally, it includes a quiz, references, and assessment rubrics for evaluating student performance.

Uploaded by

Hetal Vasava
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

CloudandDataCenterTechnologies(4361602)

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.

InstallLinuxusing Virtual Box


1. RunVirtualBoxbydouble-clicking the icon.
2. Click―New‖buttononthetopleft corne.
3. Click―Continue‖onthepop-upwindow.
4. Type VMname,select―Linux‖for theOS andchoose ―Ubuntu‖for the
version.
5. Choose the amount of memory to allocate (I suggestchoosing between 512
MB to 1024 MB).
6. ClickContinueorNext.
7. Choosecreateanewvirtualhard disk.
8. ClickContinueorNext.

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

Total Exceptional Satisfactory Developing( Limited(1-


Criteria Marks (5- Marks) (4 to 3 - 2-Marks) Mark)
Marks)
Presentinpractical
Watched other
session but not
Engagement Performe Performed students
attentively
dpractical practicalwith performing
participated in
/5 him/herse others help practicalbutnot
performance
lf triedhim/herself

Accuracy /5 Accuratelydone 1-2 3-5 Morethan5errors/m


istakes committed
errors/mistake errors/mistakes
s found identified
No errors, Complete Some of the
Programiswell write-up and commands
Documentation /5 Executed and output tables missing with Poor write-up and
Documented but missingoutputs diagramormissing
content
Properly. presentationis
poor
Fully Understood the Partially
understood performancebut understood Partially
Understanding& understoodand
/5 the cannot explain the
Explanation performance performance cannot give
explanation
&canexplain &can give
perfectly little
explanation
Work is
Workdoneafter
submittedlater
/5 Completed 2nd week but Worksubmittedafter
Time than1weekbut
the work before the 3 week time
by the end of endof 3rd week
within
2ndweek
1week

TotalMarks: /25 SignaturewithDate:

226120316056 Page | 36

You might also like