Welcome

JAVA LAB ASSIGNMENT 4TH SEM SOLUTIONS

//1. Write a program to print “Welcome to Java Programming” on the screen.
class welcome
{
    public static void main(String a[])
    {
        System.out.println("Welcome to Java Progamming");
    }
}

//2. Write a program to check whether the given two numbers are equal. If not then find the greater of the given two numbers.
import java.lang.*;
class Comparision
{
    public static void main(String args[])
    {
        int x,y;
        x=67;
        y=97;

KU ASSIGNMENT 4TH SEM TB - 44 - SOFTWARE ENGINEERING

PART – A
I. Fill up the blanks using suitable word or phrase in the following sentences:
1) Software is a set of_____________that when executed provide desired function
and performance.
Ans. INSTRUCTIONS OR COMPUTER PROGRAMS
2) Software is a process and _____________.
Ans.:- PRODUCT
3) The_____________method is also known as the iterative enhancement model.
Ans. INCREMENTAL MODEL
4) An external entity is represented using _____________ in a DFD.
Ans. EXTERNAL DESIGN INTERFACE
5) The software requirements deal with the_____________of the proposed system.
Ans.- REQUIREMENTS
6) The weakest coupling that is most desirable is _____________.
Ans.- DATA COUPLING
7) The three important levels of abstraction are _____________,_____________,
and_____________.
Ans. PHYSICAL LEVEL, LOGICAL LEVEL ,VIEW LEVEL
8) P.D.L. stands for_____________.
Ans. PROGRAM DESIGN LANGUAGE
9) _____________helps to view the source code.
Ans. BROWSING TOOLS
10) _____________tools help in code creation, debugging and testing.
Ans.- EXECUTABLE CODE
11) The two kinds of program documentation are _____________and_____________
Ans. – INTERNAL AND EXTERNAL
12) Estimation makes use of an important approach_____________.
Ans.- DECOMPOSITION
13) PERT stands for_____________.
Ans. :- PROGRAM EVALUATION AND REVIEW TECHNIQUE

KU ASSIGNMENT 4TH SEM: TB - 43 - UNIX & SHELL PROGRAMMING

PART - A
1. What are the different standard given by POSIX ? What is POSIX ?
Ans. :- The different standard given by POSIX are:-
 POSIX.1
 POSIX.1B
 POSIX.1C
 POSIX.2
 POSIX:2001
 POSIX:2004
 POSIX:2008
POSIX is the Portable Operating System Interface, the open operating interface standard accepted world-wide. It is produced by IEEE and recognized by ISO and ANSI.
2. On which variable terminal setting is done ? Name any three terminal setting
keys.
Ans.:- Using STTY
Three terminal setting key
quit, kill, erase, ...
The environment variable TERM is used to identify the type of terminal (or terminal emulator) to the curses library and programs that use the curses library to display text. It is also associated with the TERMINFO and (in archaic systems) TERMCAP environment variables
3. Explain key features of UNIX.
Ans. :- The UNIX system is supported by the file and the process. Directories and devices are treated as files and there are many text manipulation tools to edit these files. When a file is executed as a program, it is called a process. There are tools to control processes like sending a processes into background or even terminating it.
Unix is a multitasking operating system, which allows the computer to run several programs at the same time. By going quickly from one task to another and performing a little bit of each task every time, the operating system gives an impression of doing many things at the same time. Unix uses this technique of time-sharing. Unix is also able to interact with more than one user at a time. This feature of Unix makes it a multitasking system.

KU ASSIGNMENT 4TH SEM: TB - 42 - JAVA PROGRAMMING

PART-A
1. How platform independence is achieved in JAVA ?
Ans.:- Java is known as platform-neutral language because Java's byte codes are designed to be read, interpreted, and executed in exactly the same manner on any computer hardware or operating system that supports a Java run-time.
2. List any three features of JAVA.
Ans.:- The Features of JAVA
1) Simple
2) Object-Oriented
3) Distributed
3. What is Java C, Javadoc and Jdbc?
Ans. :- Java C – JavaC is a compiler translates java source code to byte code.
Javadoc – Javadoc is used for creates html format documentation from java source file.
Jdbc - A programming interface that lets Java applications access a database via the SQL language. Since Java interpreters (Java Virtual Machines) are available for all major client platforms, this allows a platform-independent database application to be
written.
4. List different features of OOP.
Ans :- The features of OOP.
1) Objects and classes
2) Abstraction
3) Encapsulation
4) Information hiding
5) Inheritance
6) Polymorphism
5. Name different types of Java tokens.
Ans. :- The different types of Java tokens are :-
1) Reserved Keywords
2) Identifiers
3) Literals
4) Operators

KU ASSIGNMENT 4TH SEM: TB - 41 - ALGORITHMS

PART – A
I. Say whether the following statements are true or false.
1) Definiteness is one of the properties of an algorithm.
Ans:- TRUE
2) Graph is a linear data structure.
Ans :- FALSE
3) A tree is a connected graph.
Ans:- TRUE
4) The data structure used by recursion is stack.
Ans :- TRUE
5) Queue works on the strategy “First in First out”.
Ans :- TRUE

II. Using suitable word or phrase fill up the blanks in the following sentences:
1) _____________is the process of executing a correct program on data sets and
measuring the time and space.
Ans:- PROFILING
2) Tree is a_____________data structure.
Ans:-NON-LINEAR
3) For a graph with „n‟ number of nodes the number of edges to form a tree is
_____________
Ans: - n-1
4) “Last in First out” Data structure is referred to as _____________
Ans :- Stacks
5) A binary tree of depth „K‟ has maximum of_____________number of
nodes.
Ans : - 2k-1nodes,k>= 0
6) A _____________is a graph without self loop and parallel edges.
Ans. SIMPLE GRAPH
7) The two methods of searching are_____________and_____________
Ans.:- SEQUENTIAL SEARCH AND BINARY SEARCH

KNOW YOUR OWN MOBILE NUMBER

Having many SIM cards confuse you which number is for which SIM card. People like me having 20+ SIM cards confuse me which number is for which SIM card. Network operators are providing free SIM cards so they could get more and more users. They provide these types of schemes for limited time. Person like me fall into these schemes and buy free SIM cards. Whenever I want to know my mobile number, I just call from it to another mobile phone. Sometimes, it becomes very difficult when I have zero balance on the SIM card. But, here is the trick which will tell you your own mobile number. Here are the codes for different operators.

1. Airtel:

Send sms IM to 57070

2. Reliance:

Dial *1#

3. Idea:

Dial *789#

TOP 10 FACEBOOK TIPS

Below is a listing of our top 10 tips for the popular social networking website Facebook.

1. Hide users, games, polls, etc.

It quickly gets annoying seeing some users posts, game invites, polls, etc. Hovering your mouse to the right of the post and clicking the Hide button as shown below can hide any post. Once this button is pressed you'll be prompted with the option to hide that user or in the case of a Facebook application the option to hide that application from ever showing up on your profile.


To unhide someone or unblock an application click the Edit Options link in the bottom right corner of the news feed as shown below.

RENAME WINDOWS XP START BUTTON


First, Before anything, you need to download Resource hacker

If above link doesn't work try to download from this site.

First Step - The first step is to make a backup copy of the file explorer.exe located at C:\Windows\explorer. Place it in a folder somewhere on your hard drive where it will be safe. Start Resource Hacker and open explorer.exe located at C:\Windows\explorer.exe
The category we are going to be using is String Table In Resource Hacker. Expand it by clicking the plus sign then navigate down to and expand string 37 followed by highlighting 1033. If you are using the Classic Layout rather than the XP Layout, use number 38. The right hand pane will display the stringtable as shown in Fig. 02. We’re going to modify item 578, currently showing the word “start” just as it displays on the current Start button.