Back to tyco.paawanchaudhary.com
Download the System Programming Lab Manual from here

Index:-

SP 2nd Shift Question Bank for 1st Unit Test

Experiment No. 1
Experiment No. 1 - Questions
Experiment No. 2
Experiment No. 2 - Questions
Experiment No. 2 - Program Code
Experiment No. 2 - Output
Experiment No. 3
Experiment No. 3 - Questions
Experiment No. 3 - Program Code
Experiment No. 3 - Output
Experiment No. 4
Experiment No. 4 - Questions
Experiment No. 4 - Program Code
Experiment No. 4 - Output


Disclaimer:- Students are advised not to copy blindly from here, this website should only be used as a reference and not for completion. I am not responsible for the accuracy of the content provided on this site. This website is in no way related to any Educational Institute or Board, it has been created by a student to provide help and give guidance to other students.

SP 2nd Shift Question Bank for 1st Unit Test

1.What is System Programming?
2.What is System Software?
3.Explain components of system software?
4.Explain the terms:-
    1.Assembler
    2.MP
5.Compare Compiler and Interpretor
6.Explain how assembly level language has advantages over machine level language?
7.Explain formation of System Programming?
8.Explain the software design process?(General design procedure)
9.Why does assembler works in two process?
10.Explain data buses used by assembler in pass1?
11.Explain data buses used by assembler in pass2?
12.Explain following:-
    1.Symbol Table
    2.Literal Table
    3.Base Table
13.Explain following:-
    1.USING
    2.DROP
14.What is the use of base register?Explain with example
15.Explain and draw flowchart for pass1 of assembler?
16.Explain and draw flowchart for pass2 of assembler?
17.Explain Interchange sort?
18.Compare Linear and Binary Search?
19.Explain hash or random search?
20.Explain bubble sort?
21.Explain radix exchange sort?
22.Draw flowchart for data buses of assembler?


EXPERIMENT No. 1

Aim:- To understand different classes of Computer System Software.

Questions:-

The questions of 1st expt have now been completed and are the most accurate answers collected from the finest sources..:-)

Q3. What do you mean by programming?
Ans. Computer programming is the process of designing, writing, testing, debugging, and maintaining the source code of computer programs. This source code is written in one or more programming languages.

Q4. List all kinds of software in chronological manner.
Ans. Computer system software listed in chronological manner:-
a) System Software:-

  1. Device drivers
  2. Operating systems
  3. Servers
  4. Utilities
  5. Window systems
b) Programming Software:-
  1. Compilers
  2. Debuggers
  3. Interpreters
  4. Linkers
  5. Text editors
c) Application Software:-
  1. Business software
  2. Computer-aided design
  3. Databases
  4. Decision-making software
  5. Educational software
  6. Image editing
  7. Industrial automation
  8. Mathematical software
  9. Medical software
  10. Molecular modeling software
  11. Quantum chemistry and solid state physics software
  12. Simulation software
  13. Spreadsheets
  14. Telecommunications (i.e., the Internet and everything that flows on it)
  15. Video editing software
  16. Video games
  17. Word processing

Q5. Why should you study the system programming?
Ans. System programming (or systems programming) is the activity of programming system software. One should study it because it differs from application programming which aims to produce software which provides services to the user (e.g. word processor), whereas systems programming aims to produce software which provides services to the computer hardware (e.g. disk defragmenter) and requires a greater degree of hardware awareness.

Q6. What is the difference between system software and application software?
Ans.
System Software Application Software
i) It is any computer software which manages and controls computer hardware so that application software can perform a task. i) It is a set of programs comprising various modules that are written for specific computer application.
ii) System software performs tasks like transferring data from memory to disk, disk to memory, or rendering text onto a display device. ii) It is created to perform tasks according to requirements of users.
iii)egs:- Compiler/Interpreter, Assembler, OS, etc. iii)egs:- Banking, Engineering, Education, etc.

Q7. List the name of operating system, language processors, utility programs in your lab. Write their features.
Ans. Operating Systems:-
i)Windows XP:-
ii)Linux:-

Language Processors:-
i)Javac (JDK):- ii)Borland Turbo C:-
Utility Programs:-
Utility software is system software designed to help analyze, configure, optimize or maintain a computer.
i)Norton Antivirus:-
ii)Windows Disk Defragmenter:-
iii)Windows Task Scheduler:-

Q8. Whether BIOS program and Bootstrap loader are system software?
Ans. Yes, the BIOS program and Bootstrap loader can be termed as system software. System software is a computer software designed to operate the computer hardware and to provide a platform for running applications. BIOS is the most basic type of system software as it provides basic functionality to operate and control the hardware connected to or built into the computer. The loading of BIOS i.e. booting or bootstrapping is done by bootstrap loader.

Q10. Write correct sequence of the following process in program executions.
a. compiling b-coding c-linking d- execution/run e - loading f- debugging
Ans:-
i) b. Coding
ii) a. Compiling
iii) f. Debugging
iv) c. Linking
v) e. Loading
vi) d. Execution/run


Program:-
We dont have to do any program in this experiment...:-)


EXPERIMENT No. 2

Aim:- To study the internal structure of computer system and its assembly language (Model IBM 360/370)

Questions:-
1. Define:-
High level language:- A high-level programming language is a programming language with strong abstraction from the details of the computer.
Assembly language:- An assembly language is a low-level programming language for computers, it implements a symbolic representation of the machine codes. Assembly languages have the same structure and set of commands as machine languages, but they enable a programmer to use names instead of numbers.
Machine language:- Machine code or machine language is a system of impartible instructions executed directly by a computer's central processing unit.


Q2. What do you mean by:-
Machine-OP:-
Ma'am's answer for Machine-OP:-In early days programs were written in a machine language but it was found to be difficult to write the programs. So, instead of writing machine op-code, programmers started writing mnemonics in a program.
My answer for Machine-OP:- A machine-op is an instruction that represents a machine instruction to an assembler.
Pseudo-OP:-
A pseudo-op is an assembly language instruction that specifies an operation of the assembler.
eg. START is a pseudo-op that tells the assembler where the beginning of the program is. END is a pseudo-op that tells the assembler where the end of the program is.
Literal:-
A literal is an operand that is directly used by the computer, as opposed to a reference to a memory location. In an arithmetic expression like X := Y + 5, the ‘5’ is a literal value. A literal both defines data and represents data. The address of the literal is assembled into the object code of the instruction in which it is used. The constant specified by the literal is assembled into the object code, in the literal pool.
Symbol:-
A symbol or symbolic name is the name given to a variable, a constant, or a line of a program by the programmer.

Q4. What is the use of BASE register and index register?
Ans. Base registers or segment registers are used to segment memory. Effective addresses are computed by adding the contents of the base or segment register to the rest of the effective address computation.
Index registers are used to provide more flexibility in addressing modes, allowing the programmer to create a memory address by combining the contents of an address register with the contents of an index register (with displacements, increments, decrements, and other options).

Q5. State the difference between USING and BALR pseudo-OP.
Ans.The BALR is an instruction to load a register with next address and branches to the address in second field. In BALR, it loads the register into the memory with next address. The USING is an instruction that provides information to assembler that what is in base register. The difference between BALR and USING instruction are as follows:-
Expt2 Difference

Program:-
We dont have to do any program in this experiment...:-)


EXPERIMENT No. 3

Aim:- To understand the Table Processing Techniques using Searching Techniques.

Questions:-
Q1. Define the following terms in one or two sentences:-
Ans. Note: If you explain Searching, Sorting and Hashing in detail in this expt you can write only one line definitions for them in the 4th experiment and if you write one line definitions in this expt, you have to write in detail about them in the 4th expt.
a) Searching:-
Searching refers to the operation of finding the location of a given item in a collection of item. For a given keyword we search an entry in that table that matches keyword & returns its value.
b) Sorting:-
Sorting is a method of arranging items or symbols of a table in logical or aplhabetical order.
c) Hashing or Random Searching
Hashing or Random Searching is any algorithm or subroutine that maps large data calls called keys to smaller sets.

Q2. Show the result of each pass for Binary Search.
(81,52,57,22,95,04,83,96,42,32,48,82)
lower                  mid                  upper
We need to select any random no and search it. But the biggest mistake here is that the nos are not sorted, which is a pre-requisite for Binary Search. Either the Manual wants us to sort it or they want us to search a no. in this lise, that's not clear. So the best option is select any no. from this and find it by writing each iteration.

Q3. Write assembly sample code for Binary Search Method.
Ans. I know its written Assembly Sample Code but ppl hav written C code, which is in the program below the answers.

Q4. Draw the flowchart for linear search technique.

Q5. Draw the flowchart for Binary Search technique.
Expt3 Binary Search Flowchart

Program:-

#include
#include
void main()
{
int a[9],n,i,flag=0;
clrscr();
printf("Enter  10 nos. \t");
for(i=0;i<=9;i++)
{
scanf("%d",&a[i]);
}
printf("Enter no to be searched:\t");
scanf("%d",&n);
for(i=0;i<=9;i++)
{
if(a[i]==n)
{
flag=1;
}
else
{
flag=0;
}
}
if(flag==1)
{
printf("\nNo. found ",n);
}
else
{
printf("No not found");
}
getch();
}



EXPERIMENT No. 4

Aim:- To understand the Table Processing Techniques using sorting techniques.

Questions:-
1. Show the result of each pass for the following lists using
a. Inter change sort
b. Shell sort
c. Radix sort
(SWATI, ALKA, VARSHA, RUPALI, MRUNAL, ROHINI, ZARINA, YAMINI,
BABALI, DIVYA )

2. Teacher shall make the group of 5 students and allot them to implement one of the sorting techniques to each group. ( draw the flow chart )
a. Interchange
b. Shell
c. Radix exchange
d. Address calculation
e. Radix

3. Define the following terms in two or three sentences.
Ans. Note: If you explained Searching, Sorting and Hashing in detail in the last i.e. 3rd expt, you can write only one line definitions for them in this i.e. 4th experiment and if you wrote one line definitions in the last expt, you have to write in detail about them in this expt.
1.Searching:-
Searching refers to the operation of finding the location of a given item in a collection of item. For a given keyword we search an entry in that table that matches keyword & returns its value.
2.Sorting:-
Sorting is a method of arranging items or symbols of a table in logical or aplhabetical order.
3.Hashing:-
Hashing or Random Searching is any algorithm or subroutine that maps large data calls called keys to smaller sets.


Expt 5 file:- Download the .doc file for printing the Output.


View MyStats