Skip to main content

Posts

PYTHON

P YTHON TUTORIAL CORE PYTHON Python Data Types Python Operators Python Lists Python Tuples Python Sets Python Dictionaries Python If..Else, While & For Loops Python Function Python Lambda Python Class/Objects & Inheritance Python Iterators Python Scope Python ModulesNote: Python Json Python Try...Excep Python String Formatting PYTHON FI LE HANDLING Python File Handling, Create-Write-Read-Remove Files PYTHON MYSQL Python MySQL Create Database & Table Python MySQL Insert Python MySQL Select Python MySQL Where Python MySQL Order By Python MySQL Delete Python MySQL Drop Table Python MySQL Update Python MySQL Limit Python MySQL Join PYTHON MONGODB Python MongoDB Python MongoDB Create Database & Collection Python MongoDB Insert Python MongoDB Find Python MongoDB Query Python MongoDB Sort Python MongoD

PYTHON DATA TYPE

D ATA TYPE x = 5 y = 10 print(x + y) 15 x = "normal variable" print(x) normal variable def myfunc(): global x x = "Global variable" myfunc() print("After running fun " , x) After running fun Global variable fruits = ("apple", "banana", "cherry", "strawberry", "raspberry") a = (green, *yellow, red) = fruits print(type(a)," = ", a) <class 'tuple'> = ('apple', 'banana', 'cherry', 'strawberry', 'raspberry') print(type(green)," = ", green) <class 'str'> = apple print(type(yellow)," = ", yellow) <class 'list'> = ['banana', 'cherry', 'strawberry'] print(type(red)," = ", red) <class 'str'> = raspberry print(type(fruits)," = ", fruits) <class 'tuple'> = ('apple'

GUJARAT UNIVERSITY SEMESTER 6

આપણું કાર્યક્ષમ સમુદાય બનાવવા માટે, અમારી સાથે ટેલિગ્રામ જૂથમાં જોડાઓ અને તમારા અન્ય યુનિવર્સિટીના મિત્રો સાથે શેર કરો. યુનિવર્સિટી પેપર, પ્રશ્નો, વિચારો અને અન્ય મહત્વપૂર્ણ ફાઇલો શેર કરીને, આપણે એકબીજાને સરળતાથી મદદ કરી શકીએ છીએ.જો તમને કોઈપણ ફાઈલ ડાઉનલોડ કરવામાં સમસ્યા આવે તો તમે તેને ટેલિગ્રામ પર મેળવી શકો છો. For us to create an efficient community, join us in Telegram group and share with your other universities friends. By sharing University papers, questions, ideas and other important file, we can help each other easily.If you face problem to download any file, you can get it on telegram. GUJARAT UNIVERSITY BCA SEM 6 SYLLABUS List Of Practical Question for Flash(MMT) GUJARAT UNIVERSITY EXAM PAPER 2019 2018 2017 2016 2015 2014 DOWNLOAD ASP.NET PROGRAM UNIT-1 UNIT-2 UNIT-3 UNIT-4 GU IMP Question With Easy Answer ASP.NET E-Commerce Database Administrator Information Security Gujarat University Exam Paper MCQ Answer

BCA SEM 5 SHELL SCRIPT PROGRAM

1  Write a shell script to execute following commands 1. Sort file abc.txt and save this sorted file in xyz.txt 2. Give an example of : To execute commands together without affecting result of each other. 3. How to print “this is a three –line 1. Text message” 4. Which command display version of the UNIX? 5. How would u get online help of cat command? echo “sorting the file” sort abc.txt > xyz.txt echo “executing two commands” who ; ls echo “this is \n a three-line \n Text message” # use -e option if required echo “The version is `uname -a`” echo “Help of cat command” man cat 2  Write a shell script to execute following commands 1. How would u display the hidden files? 2. How delete directory with files? 3. How would user can do interactive copying? 4. How would user can do interactive deletion of files? 5. Explain two functionality of “mv” command with example? echo “1. How would u display the hidden files” echo “2. How delete directory with files” echo “3. How

PROCESS COMMAND OF SHELL SCRIPT

Process Command • top command The top program provides a dynamic real-time view of a running system. # top • dig is useful for network troubleshooting and for educational purposes. # dig pts/1 • ps command to find out what processes are running on your system. # ps -ef # ps -e Where: -e to display all the processes. -f to display full format listing. • Kill : We mostly use the kill command for terminating or killing a process. #Listing all the signal names. # kill -l • The mount command mounts a storage device or filesystem, making it accessible and attaching it to an # bg Run any command like top then bg %1 — Move the 1st active job to background. • fg = continues a stopped job by running it in the foreground fg – Typing fg alone will resume the first job were it was left off. fg %1 – specifying the job (in this case 1) will resume that particular job. The job id can be determined by running bg Then kill %1 and see jobs command : Vi

FILE COMMAND OF SHELL SCRIPT

File Command Of Shell Script 1. Dd The dd command stands for “data duplicator” and used for copying and converting data according to the operands specified. It is very powerful low level utility of Linux which can do much more like; • Backup and restore the entire hard disk or partition. Backup of MBR (Master Boot Record) • It can copy and convert magnetic tape format, convert between ASCII and EBCDIC formats, swap bytes and can also convert lower case to upper case. • It can also be used by Linux kernel make files to make boot images. 2. DU The Linux “du” (Disk Usage) is a standard Unix/Linux command, used to check the information of disk usage of files and directories on a machine. The du command has many parameter options that can be used to get the results in many formats. The du command also displays the files and directory sizes in a recursively manner du estimates and displays the disk space used by files. -a, --all write counts for all files, not justdirect