Subscribe to Get Free Material Updates!
Visit my new blog WebData Scraping - Web Scraping Service provider company in India.

Write a script to implement the following commands Tree of DOS similar to which command of UNIX

echo "Enter path Name :="
read path
name=`find  "$path"  -print0 | xargs -0`
for i in $name
do
 if [ -d $i ];then
  echo $i>file.txt
  count=`awk 'NF{print NF-1}' FS="/" file.txt`
  format="|__"
  temp=`expr $count + 1`
  i=`echo $i|cut -d "/" -f $temp`
  for (( j=0 ; $j < $count ; j=`expr $j + 1` ))
  do
   format="|    "$format
  done
  echo "$format$i"
 fi
done
Output: 

Write a script to display the directory in the descending order of the size of each file.

clear
echo "ENTER DIR"
read dir
`echo ls -lS $dir` > file.txt
len=`cat file.txt | wc -l`
i=2
echo "SIZE          FILENAME"
echo "====       ==============="
while [ $i -le $len ]
do
  record=`ls -lS $dir | head -n $i | tail -n 1`
  # record=`cat file.txt | head -n $i | tail -n 1`
  filename=`echo $record | cut -d " " -f 9`
  size=` echo $record | cut -d " " -f 5`
  echo "$size        $filename" 
  i=`expr $i + 1`
done 

Output:

Write a script to display the date, time and a welcome message (like Good Morning etc.). The time should be displayed with “a.m.” or “p.m.” and not in 24 hours notation.

clear
HH=`date +%H`
time=`date +"%S %p"`
if [ $HH -ge 12 ];then
 HH=`expr $HH % 12`
 if [ $HH -lt 5 ];then
  msg="GOOD AFTERNOON"
 elif [ $HH -ge 5 ]  &&  [ $HH -lt 9 ];then
  msg="GOOD EVENING"
 else
  msg="GOOD NIGHT"
 fi
 echo "$msg ,CURRENT TIME $HH:$time"
 exit 1
else
 if [ $HH -lt 5 ];then
  msg="GOOD NIGHT"
 else
  msg="GOOD MORNING"
 fi
 echo "$msg ,CURRENT TIME $HH:$time"
 exit 1
fi

Output: 

Write a script to display the name of all executable files in the given directory.

clear
echo "Enter Directory Name:"
read dir
ls $dir>tempfile.txt
count=0
if [ -d $dir ];then
 for filename in `cat tempfile.txt`
 do
  if [ -x $filename ];then
   echo "$filename"
   count=`expr $count + 1`
  fi
 done
fi
echo "Total Executable Files Are $count"
rm tempfile.txt

Output: 

Write a script to display the name of those files (in the given Directory) which are having multiple links.

clear
echo "Enter Directory Name :="
read dir
len=`ls -l $dir | wc -l`
i=2
echo "File With Multiple Link are : "
echo " "
while [ $i -le $len ]
do
 record=`ls -l $dir | head -n $i | tail -n 1`
 filename=`echo $record | cut -d " " -f 9`
 link=`echo $record | cut -d " " -f 2`
 if [ $link -gt 1 ];then
  echo "$filename = $link"
 fi
 i=`expr $i + 1`
done

Output: 

Write a script to delete zero sized files from a given directory (and all its sub-directories).

clear
`echo ls`>filelist
for filename in `cat filelist`
do
 if [ ! -d $filename ];then
  size=`ls -s $filename`
  size=`echo $size|cut -d " " -f 1`
   if [ $size -eq 0 ];then 
   echo "Want to Remove $filename:"
   rm -i $filename
  fi
 fi
done

Output:

Write a script to compare identically named files in two different directories and if they are same, copy one of them in a third directory

clear
echo "Enter Directory 1:"
read dir1
echo "Enter Directory 2:"
read dir2
if [ ! -d $dir1 ] || [ ! -d $dir2 ]; then
 echo "dir1 not exist"
 exit 1
fi
`echo ls $dir1`>dir1.txt
`echo ls $dir2`>dir2.txt
echo "==============="
totalfile1=`wc -w dir1.txt|cut -c 8-9`  # HOME
totalfile2=`wc -w dir2.txt|cut -c 8-9`  # HOME
# totalfile1=`wc -w dir1.txt|cut -c 1-2`    # COLLEGE
# totalfile2=`wc -w dir2.txt|cut -c 1-2` # COLLEGE 
echo "totalfile:$totalfile1"
echo "totalfile:$totalfile2"
mkdir NEW_DIR
i=$totalfile1
while [ $i -ge 1 ] 
do
 file1=`tail -n $i dir1.txt | head -n 1`
 i=`expr $i - 1`
 j=$totalfile2
 while [ $j -ge 1 ] 
 do            
  file2=`tail -n $j dir2.txt | head -n 1`
  j=`expr $j - 1`        
  if [ "$file1" == "$file2" ];then
   str1=`ls -l $dir1/$file1 | cut -d " " -c 50-55`
   str2=`ls -l $dir2/$file2 | cut -d " " -c 50-55`
   # str1=`ls -l 3.sh|cut -d " " -f 7`     # str2=`ls -l 3a.sh|cut -d " " -f 7`  
   hh1=`echo $str1 | cut -c 1-2`
   ss1=`echo $str1 | cut -c 4-5`
   hh2=`echo $str2 | cut -c 1-2`
   ss2=`echo $str2 | cut -c 4-5`

   # echo "hh1:$hh1 and ss1:$ss1";
   # echo "hh2:$hh2 and ss2:$ss2";
   if [ $hh1 -eq $hh2 ];then
    if [ $ss1 -le $ss2 ];then
     cp $dir2/$file2 NEW_DIR
    else
     cp $dir1/$file1 NEW_DIR
    fi
   else
    if [ $hh1 -le $hh2 ];then
     cp $dir2/$file2 NEW_DIR
    else
     cp $dir1/$file1 NEW_DIR
    fi
   fi
  fi
 done
done


Output:

write a script to copy the file system from two directories to a new directory in such a way that only the latest file is copied in case there are common files in both the directories

clear
echo "Enter Directory 1:"
read dir1
echo "Enter Directory 2:"
read dir2
if [ ! -d $dir1 ] || [ ! -d $dir2 ]; then
 echo "dir1 not exist"
 exit 1
fi
`echo ls $dir1`>dir1.txt
`echo ls $dir2`>dir2.txt

echo "==============="

totalfile1=`wc -w dir1.txt|cut -c 8-9`  # HOME
totalfile2=`wc -w dir2.txt|cut -c 8-9`  # HOME
# totalfile1=`wc -w dir1.txt|cut -c 1-2`    # COLLEGE
# totalfile2=`wc -w dir2.txt|cut -c 1-2` # COLLEGE 
echo "totalfile:$totalfile1"
echo "totalfile:$totalfile2"


mkdir NEW_DIR
# copying all files from dir1 and comparing each file with files in dir2
i=$totalfile1
flag=0
while [ $i -ge 1 ] 
do
 file1=`tail -n $i dir1.txt | head -n 1`
 i=`expr $i - 1`
 flag=0
 j=$totalfile2

 while [ $j -ge 1 ] 
 do          
  file2=`tail -n $j dir2.txt | head -n 1`
  j=`expr $j - 1`          if [ "$file1" == "$file2" ];then
    flag=1
str1=`ls -l $dir1/$file1 | cut -d " " -c 50-55` 
# HOME
str2=`ls -l $dir2/$file2 | cut -d " " -c 50-55`  # HOME
# str1=`ls -l 3.sh|cut -d " " -f 7`     # COLLEGE
# str2=`ls -l 3a.sh|cut -d " " -f 7`    # COLLEGE

   hh1=`echo $str1 | cut -c 1-2`
   ss1=`echo $str1 | cut -c 4-5`
   hh2=`echo $str2 | cut -c 1-2`
   ss2=`echo $str2 | cut -c 4-5`

   # echo "hh1:$hh1 and ss1:$ss1";
   # echo "hh2:$hh2 and ss2:$ss2";
   if [ $hh1 -eq $hh2 ];then
    if [ $ss1 -le $ss2 ];then
     cp $dir2/$file2 NEW_DIR
    else
     cp $dir1/$file1 NEW_DIR
    fi
   else
    if [ $hh1 -le $hh2 ];then
     cp $dir2/$file2 NEW_DIR
    else
     cp $dir1/$file1 NEW_DIR
    fi
   fi
  fi
 done

 if [ $flag -eq 0 ];then
  cp $dir1/$file1 NEW_DIR
 fi
done

# copying remaining files that are in dir2 but not in 
dir1



i=$totalfile2
flag=0
while [ $i -ge 1 ] 
do
 file1=`tail -n $i dir2.txt | head -n 1`
 i=`expr $i - 1`
 flag=0
 j=$totalfile1






 while [ $j -ge 1 ] 
 do            
  file2=`tail -n $j dir1.txt | head -n 1`
  j=`expr $j - 1`        
  if [ "$file1" == "$file2" ];then
   flag=1
  fi
 done
 if [ $flag -eq 0 ];then
  cp $dir2/$file1 NEW_DIR
 fi
done


Output: 

Write a script to broadcast a message to a specified user or a group of users logged on any terminal

echo "Enter user Name."
read user_name
echo "\tNOTE : Press Ctrl+d To Broadcast"
write $user_name

Write a script to find the global complete path for any file

clear
echo "Enter file name : "
read filename
str=`find . -name $filename`
if [ "$str" == "" ];then
    echo "File not found"
    exit 1
fi
path=`pwd`
len=`echo $str | wc -c`
str=`echo $str | cut -d "." -f 2-3`
echo "Full path of file is $path$str"


Output: 

Fetch the data from a file and display data into another file in reverse order

echo "Enter filename"
read filename
if [ ! -f $filename ];then
 echo "file not exist"
 exit 1
fi
str=`cat $filename`
len=`echo $str|wc -c`
i=$len
while [ $i -ge 1 ] 
do
 temp=$temp`echo $str|cut -c $i`
 i=`expr $i - 1` 
done
echo $temp>newfile.txt
cat newfile.txt

Output: 

Accept filename and displays last modification time if file exists, otherwise display appropriate message

clear
echo "Enter filename"
read filename
if [ -f $filename ];then
 echo "file exist and modification time is "; ls -l $filename | cut -c 50-54
else
 echo "file not exist"
fi


Output:

Shell script that accept strings and replace a string by another string

clear
echo "Enter string"
read str
echo "Enter string to search"
read sstr
echo "Enter string to replace"
read rstr
str=`echo $str | sed s/$sstr/$rstr/`
echo "string replaced successfully and string is $str"


Output:

Accept number and check the number is even or odd finds the length of the number sum of the digits in the number

clear
echo "Enter number:"
read no;
count=0
total=0
while [ $no -ne 0 ]
do
 a=`expr $no % 10`
 no=`expr $no / 10`
 total=`expr $total + $a`
 count=`expr $count + 1`
done
if [ `expr $no % 2` -eq 0  ]; then
 echo "NUMBER IS EVEN"
else
 echo "NUMBER IS ODD"
fi
echo "SUM OF ALL DIGITS:$total"
echo "TOTAL NUMBER OF DIGIT:$count" 

Output:

Accept the string and checks whether the string is palindrome or not

clear
echo "Enter string \c"
read str
len=`echo $str|wc -c`
len=`expr $len - 1`
echo "length is "$len
i=1
while [ $i -le $len ]
do
 revstr=`echo $str|cut -c$i`$revstr
 i=`expr $i + 1`
done

if [ "$revstr" == "$str" ];then
 echo "string is palindrome"
else
 echo "string is not palindrome"
fi


Output:

Accept numbers and perform addition subtraction division and multiplication

echo "Enter First Number := "
echo "Enter First Number := "
read a
echo "Enter Second Number := "
read b
ans=`expr $a + $b`
echo "Addition is :=" $ans

ans=`expr $a - $b`
echo "Subtraction is :=" $ans

ans=`expr $a / $b`
echo "Division is :=" $ans

ans=`expr $a \* $b`
echo "Multiplication is :=" $ans


Output:


GTU MCA Sem 3 Operating System and Unix Programs

 Subject Name: Programming Skills-V (OS)
Subject Code: 630007

List of Practical Programs Related to Operating System and Unix Programs:

  1. Check the output of the following commands. date, ls, who, cal, ps, wc, cat, uname, pwd, mkdir, rmdir, cd, cp, rm, mv, diff, chmod, grep, sed, head, tail, cut, paste, sort, find.
  2. Write shell script
    1. Accept numbers and perform addition, subtraction, division and multiplication.
    2. Accept the string and checks whether the string is palindrome or not.
    3. Accept number and check the number is even or odd, finds the length of the number, sum of the digits in the number.
    4. Accept strings and replace a string by another string.
    5. Accept file name and displays last modification time if file exists, otherwise display appropriate message.
    6. Fetch the data from a file and display data into another file in reverse order.
  3. Write a script to find the global complete path for any file.
  4. Write a script to broadcast a message to a specified user or a group of users logged on any terminal.
  5. Write a script to copy the file system from two directories to a new directory in such a way that only the latest file is copied in case there are common files in both the directories.
  6. Write a script to compare identically named files in two different directories and if they are same, copy one of them in a third directory.
  7. Write a script to delete zero sized files from a given directory (and all its sub-directories).
  8. Write a script to display the name of those files (in the given directory) which are having multiple links.
  9. Write a script to display the name of all executable files in the given directory.
  10. Write a script to display the date, time and a welcome message (like Good Morning etc.). The time should be displayed with “a.m.” or “p.m.” and not in 24 hours notation.
  11. Write a script to display the directory in the descending order of the size of each file.
  12. Write a script to implement the following commands: Tree (of DOS) which (of UNIX).
  13. Write a script for generating a mark sheet after reading data from a file. File contains student roll no, name , marks of three subjects.
  14. Write a script to make following file and directory management operations menu based:
    1. Display current directory
    2. List directory
    3. Make directory
    4. Change directory
    5. Copy a file
    6. Rename a file
    7. Delete a file
    8. Edit a file
  15. Write a script which reads a text file and output the following Count of character, words and lines. File in reverse. Frequency of particular word in the file. Lower case letter in place of upper case letter.
  16. Write a shell script to check whether the named user is currently logged in or not.
  17. Write a Script for Simple Database Management System Operation. Database File Contains Following Fields.
    1. EMP_NO
    2. EMP_NAME
    3. EMP_ADDRESS
    4. EMP_AGE
    5. EMP_GENDER
    6. EMP_DESIGNATION
    7. EMP_BASIC_SALAR
    Provide Menu Driven Facility For
    VIEW RECORD BASED ON QUERY
    ADD RECORD
    DELETE RECORD
    MODIFY RECORD.
    COUNT TOTAL NUMBER OF RECORDS
    EXIT.
    • COMPARE TWO STRINGS.
    • JOIN TWO STRINGS.
    • FIND THE LENGTH OF A GIVEN STRING.
    • OCCURRENCE OF CHARACTER AND WORDS
    • REVERSE THE STRING.
  18. Write a script to calculate gross salary for any number of employees   Gross Salary =Basic + HRA + DA.,HRA=10% and DA= 15%.
  19. Write a script to check whether a given string is palindrome or not.
  20. Write a script to check whether a given number is palindrome or not.
  21. Write a script to display all words of a file in ascending order.
  22. Write a script to display all lines of a file in ascending order.
  23. Write a script to display the last modified file.
  24. Write a shell script to add the statement #include <stdio.h> at the beginning of every C source file in current directory containing printf and fprintf.
  25. Write a script that behaves both in interactive and non-interactive mode. When no arguments are supplied, it picks up each C program from current directory and lists the first 10 lines. It then prompts for deletion of the file. If the user supplies arguments with the script, then it works on those files only.
  26. Write a script that deletes all leading and trailing spaces in all lines in a file. Also remove blank lines from a file. Locate lines containing only printf but not fprintf.

Related Posts:

Gtu MCA Sem 3 SOOADM IMP Questions

Structured Object Oriented Analysis & Design Methodology (SOOADM) IMP Questions


Unit 4. Object Modeling Concepts
  1. Explain modeling in details.
  2. Explain different models.
  3. What is object? Discuss OO Modeling.
  4. What is class?
  5. Explain attributes.
  6. Explain operations and methods.
  7. What is association?
  8. What is multiplicity?
  9. What is ordering?
  10. Explain generalization and overriding details.
  11. Explain aggregation.
  12. Differentiate Aggregation and Association.
  13. Differentiate Aggregation and Decomposition.
  14. What is abstract class?
  15. Explain multiple inheritance.
  16. What is metadata?
  17. What is reification?
  18. Explain constructions.
  19. What are packages?
  20. Explain events.
  21. Explain State.
  22. Draw and explain State diagram?
  23. Explain nested state diagram.
  24. What is nested states?
  25. Explain concurrency in details.

System Software IMP Questions


GTU MCA  SS (System Software) IMP Questions

Chapter 1 From Dhamdhere's Book – Language Processors

Q-1      What is System software or what do you mean by System Programming? How System Software differs from Application Software? Give examples of System Software?
Q-2      Compare Program Translation model (e.g. compiler) with Program Interpretation Model (e.g. interpreter).
Q-3      Explain the activities involved in Pass-I and Pass-II of Toy Compiler giving example. (Front End and Back End or Analysis and Synthesis)
Q-4      Define following:-
1. Language Processor.            2 Grammar       3. Production                4. Terminal and Non Terminal Symbols
Q-5      What are the different types of Grammar?
Q-6      What are Language Processor Development Tools? Give Examples of them?
Q-7      What do you mean by Binding? Explain Static and Dynamic binding?

 

Chapter 2 From Dhamdhere's Book – Data Structures

Q-1      What do you mean by Search Data Structure and Allocation Data Structuer?Explain in detail the following:-
            1. Sequential Search Organization
            2. Binary Search Organization
Q-2      Explain in detail the following:-
            1. Stack and Extended Stack Model
            2. Memory Management
Q-3      What are the different Collision Handling methods in Hash Table Organization? Explain each of them?
Q-4      What is Hybrid Format?
Q-5      Explain Heap? How memory management is done through heap?

 

Chapter 3 From Dhamdhere's  – Scanning and Parsing

Q-1      What is FSA? Define DFA? Draw a DFA that identifies all the floating variables present in a given string?
Q-2      Explain in detail Top – down Parsing with Backtracking?
Q-3      Discuss the problems arising due to backtracking in Top –down Parsing? How these problems can be removed?
Q-4      Write algorithm of Bottom-up parsing and explain it?
Q-5      Write algorithm of Operator Precedence parsing and explain it?
Q-6      What are FIRST and FOLLOW Functions? Explain them with LL(1) Grammar?

Chapter 4 From  Dhamdhere's  Book - Assembler

Q-1      Explain data structure of Pass – I of assembler?
Q-2      What are the different types of Statements used in Assembler?
Q-3      Discuss – ORIGIN, LTORG and EQU assembler Directives?
Q-4      Explain the problem of Forward Reference?
Q-5      Compare Variant I and Variant II Intermediate Code of Pass-I assembler?
Q-6      Discuss the architecture of INTEL 8088 processor?
Q-7      Compare and contrast Two-pass assembler with one-pass assembler?

Chapter 5 From Dhamdhere's Book - Macro

Q-1      Define MACRO? Which different statements constitute a MACRO?
Q-2      Explain Expansion Time Statements and Expansion Time Variables?
Q-3      How a Nested macro call can be made?
Q-4      In brief write a note on REPT and IRP statements?
Q-5      Explain the data structures used in Macro Preprocessor?
Q-6      What is the difference between a MACRO and a PROCEDURE?
Q-7      What is the difference between a MACRO and the Preprocessor directives used in C?

Chapter 6 From Dhamdhere's Book – Compilers and Interpreters

Q-1      Write a note on Scope Rules?
Q-2      How static and Dynamic Pointers are used in Compiler?
Q-3      Explain – DISPLAY, DOPE VECTOR, TRIPLES, INDIRECT TRIPLES, QUADRUPLES, Operand Descriptor, Register Descriptor?
Q-4      Throw a light on Code Optimization? Explain all the code optimization techniques?
Q-5      What are the different phases of compilation process? (ans - same as assembler)
Q-6      Explain Symbol table management done in Compiler? (ans – with display)
Q-7      Define PFG? Also explain it through an example?
Q-8      Explain pure and impure Interpreters?

Chapter 7 From Dhamdhere's Book - Linkers

Q-1      Discuss translated, linked and load origins and address? Also explain relocation factor?
Q-2      What is program relocation and program linking?
Q-3      Explain the data structures used in Relocation and Linking or the data structures used in Pass-I of Linker?
Q-4      What are Self-relocating programs?
Q-5      Differentiate Absolute and Relocatable Loaders?
Q-6      Write a brief note on Overlays?

Chapter 8 From Dhamdhere's  – Software Tools

Q-1      Describe the steps involved in Program Development Activity?
Q-2      Write short notes on – Editors, Debug Monitors and User Interfaces?

Device Driver Questions

Q-1      What are Device Drivers? Explain their working?
Q-2      List the different types of device drivers used?
Q-3      Explain Block Device Driver or Character Device Driver?
Q-4      Compare Block Device Driver with Character Device Driver?
Q-5      How can you install a Device Driver?

Practical Related Questions

Q-1      What is .Model representation?
Q-2      What are the options used with .Model representation?
Q-3      Can we use more than one Code segment in an assembly Program?
Q-4      What are the advantages of Assembly Programming?
Q-5      What is the significance of ASSUME directive?
Q-6      Why @ is used in .Model representation?
Q-7      Explain different Flag registers? (A particular flag can be asked)
Q-8      What is an Interrupt? Name some interrupts other than 21h?
Q-9      What is LEA? Why it is used? Why we use OFFSET keyword with MOV statement during printing?
Q-10    What is a Segment? What are the different segment registers? What is the default size of a segment?
Q-11    At a particular time, how many segments can be active in an assembly program?
Q-12    What are different Index registers? For which purpose, SI and DI are used?
Q-13    What are different addressing modes? Explain with example. (A particular mode can be asked)
Q-14    Give the difference between .Com and .Exe programs?
Q-15    Which Parser among these – LL(1), Recursive Descent, Operator Precedence - is best according to you?
Q-16    What is the advantage of Top down parsing without Backtracking?
Q-17    What is better to use – a Macro or a Procedure – in an assembly program for a particular code?
Q-18    What is the difference between Variant – I and Variant – II IC?
Q-19    What are the problems faced in one pass assembly?
Q-20    What is the use of Sequencing Symbol in Macro?
Q-21    What is the difference between Literals and Constants?
Q-22    What is DEBUG? Explain its commands? Especially ‘P’, ‘A’ and ‘U’ commands?


Other Related Posts:

Android Practical Programs

Subject Name: Software Lab in Mobile Computing (SL-MC)
Subject Code: 650017
Semester: Semester 5

Download GTU MCA Android Programs :

  1. Create “Hello World” application. That will display “Hello World” in the middle of the screen in the red color with white background.
  2. To understand Activity, Intent
    1. Create sample application with login module.(Check username and password)
    2. On successful login, go to next screen. And on failing login, alert user using Toast.
    3. Also pass username to next screen.
  3. Create login application where you will have to validate EmailID(UserName). Till the username and password is not validated , login button should remain disabled.
  4. Create and Login application as above . On successful login , open browser with any URL.
  5. Create an application that will pass some number to the next screen , and on the next screen that number of items should be display in the list.
  6. Understand resource folders : 
    1. Create spinner with strings taken from resource folder(res >> value folder).
    2. On changing spinner value, change image.
  7.  Understand Menu option.
    1. Create an application that will change color of the screen, based on selected options from the menu.
  8. Create an application that will display toast(Message) on specific interval of time.
  9. Create an background application that will open activity on specific time.
  10. Create an application that will have spinner with list of animation names. On selecting animation name , that animation should affect on the images displayed below.
  11. Understanding of UI :
    1. Create an UI such that , one screen have list of all the types of cars.
    2. On selecting of any car name, next screen should show Car details like : name , launched date  company name, images(using gallery) if available, show different colors in which it is available.
  12.  Understanding content providers and permissions:
    1. Read phonebook contacts using content providers and display in list.
  13.  Read messages from the mobile and display it on the screen.
  14. Create an application to call specific entered number by user in the EditText.
  15. Create an application that will create database with table of User credential.
  16. Create an application to read file from asset folder and copy it in memory card.
  17. Create an application that will play a media file from the memory card.
  18. Create an application to make Insert , update , Delete and retrieve operation on the database.
  19. Create an application to read file from the sdcard and display that file content to the screen.
  20. Create an application to draw line on the screen as user drag his finger.
  21. Create an application to send message between two emulators.
  22. Create an application to take picture using native application.
  23. Create an application to pick up any image from the native application gallery and display it on the screen.
  24. Create an application to open any URL inside the application and clicking on any link from that URl should not open Native browser but that URL should open the same screen.
Mobile Computing Using Android Resources:

How to Configure Android
Free Android Programs With Step by Step Guide (By Jasmin Chauhan)

Java Program To Create New File

The below Java program creates new blank file named MyFirstFile.txt by passing  file name as argument to the constructor of File object. We must have to place file creation code in try block because it may throw IOException. We can check whether new file is created or not by using createNewFile() method of File object and place it in if...else condition.

import java.io.*;
class CreateFile
{
  
 public static void main(String[] args) 
 {
  
  try
  {
   /*Creates File MyFirstFile.txt in current Directory*/
   File f1=new File("MyFirstFile.txt"); 
   
   if(f1.createNewFile())
    System.out.println("File Created Successfuly!");
   else
    System.out.println("Fail to Create File!");
  
  }

  catch(IOException e)
  {

  }

 }
}

GTU MCA Semester 3 Exam Papers



GTU MCA Semester 3 Question Papers




Question Papers of Structured & Object Oriented Analysis & Design Methodology (SOOADM)




Question Papers of System Software(SS)



Job Placement is Now Done By GTU

2nd November, GTU (Gtjarat Technological University) announced that the job placement is done by GTU for all collages affiliated to GTU. Gujarat Technological University affiliated colleges of Engineering, MCA, MBA, ME, and Pharmacy colleges are located in various region of Gujarat. Students are very confused for college selection when they are going to take admission in one of the above course. Student pay donation to take admission in top ten colleges of Gujarat because all major companies going to arrange the Job Placement fair in these colleges. The students studying in colleges other than top ten colleges has ability to work in top companies stil they didn't get opportunity to participate in the job placement. Due to above reason powerful students can not get good job.

After doing research on this reality the GTU  decided to take job placement in its hands. As per GTU announcement no companies can arrange their job placement in selected college. Now the GTU going to centralized the job placement process and planning to give similar opportunities to every students.

On 3rd December, GTU going to organize meeting of all placement officers who are involved in job placement. I really appreciate the decision of GTU, now every student of GTU affiliated colleges get similar opportunity for good job whether they studying in top ten colleges or not.

"Show Your Talent & Get The Job"

Source:
www.gtu.ac.in
Gujarat Samachar

Programming Language Full Form

Recently I meet some of my friends at village who passed BCA, I asked some simple full forms of Programming Language. I really shocked when they replied that 'BASIC language has full form?'. So I decided to write a post on Programming Language Full forms. This post will helpful for all MCA, Msc.IT, BCA and Bsc. IT students.

  • BASIC - Beginners All purpose Symbolic Instruction Code 
  • COBOL - Common Business Oriented Language 
  • FORTRAN - FORmula TRAN slating 
  • ALGO - ALGOrithmic Language 
  • HTML - Hyper Text Markup Language 
  • XML - eXtensible Markup Language 
  • PERL -  Practical Extraction Reporting Language 
  • CSS - Cascading Style Sheet 
  • PHP - Hypertext Pre processor  (Old name - Personal Home Page)
  • ASP - Active Server Pages 
  • AJAX - Asynchronous JavaScript And XML
  • JSP - Java Server Pages 
  • VB - Visual Basic
Some other full forms related to IT (Information Technology):
  • MOUSE - Mechanically Operated User Single Engine
  • VIRUS - Vital Information Resource Under Siege
  • CAPTCHA - Completely Automated Public Turing test to tell Computer Human Apart
  • GPRS - General Packet Radio Servic

Related Posts Plugin for WordPress, Blogger...

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes