Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
15 views3 pages

System Software and Linux

The document outlines the examination paper for B.Tech. (Computer Engineering) focusing on System Software, with various questions covering topics such as language grammar, assembly language statements, macro prototypes, and shell scripting. Each question requires students to attempt two parts, with specific tasks including code analysis, machine code generation, and shell script writing. The paper is structured to assess students' understanding of system software concepts and practical programming skills.

Uploaded by

armanamu5595
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)
15 views3 pages

System Software and Linux

The document outlines the examination paper for B.Tech. (Computer Engineering) focusing on System Software, with various questions covering topics such as language grammar, assembly language statements, macro prototypes, and shell scripting. Each question requires students to attempt two parts, with specific tasks including code analysis, machine code generation, and shell script writing. The paper is structured to assess students' understanding of system software concepts and practical programming skills.

Uploaded by

armanamu5595
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/ 3

228eSO74

CEN-403

B.Tech. (Computer Engineering-IVh Semester Examinatior, 2024


Subject: SYSTEM SOFTWARE
Paper No. CEN-403
Time: 3 Hours Max. Marke
(Write your roll number on the top of the question
paper.)
Note: Attempt any two parts from each question. All
S. No. question carry equal marks.
Question Marks C
Q1. M
With reference to language
<Sentence>
grammar, Consider the Grammar 4.5
<Noun Phrase> <Verb Phrase>
Now check the validity of the
The boy ate an apple. following string:
DWhat do you mean by phases of a compiler? List the principal phases of 4.5
compilation and C
describe the work performed by each phase.
Consider the following segment of code:
C.
4.5
int p, n;
float r, si;
si = p°n*r/100;
Construct the symbol table and Intermediate code for the code given above.

Q2. a. What are the different types of assembly language statements? Explain all
with their 4.5 C
properties &drawbacks. Explain the statement format of Assembly language programming
with all variations.
b. Consider the following assembly language program:
4.5 C
Start 101
READ N
MOVER BREG, ONE
MOVEM BREG, TERM
AGAIN MULT, BREG, TERM
MOVER CREG,
TERM
ADD ONE
CREG,
MOVEM TERM
CREG,
COMP N
CREG, Q4.
BC AGAIN
LE,
DIV BREG, TWO
MOVEM BREG, RESULT
PRINT RESULT
STOP
N
DS 1
RESULT DS 1
ONE DC 1
TERM DS 1
TWO DC 2
END
Write the machine equivalent code for the
program given above.
What are the assembler directives? How advance assembler directives are 4.5
differernt
from basic assembler directives?

Q3. a/ Explain the statement format for a Macro prototype statement with
suitable 4.5
example. Also differentiate between positional parameter and keyword parameter.
1
Differentiate between Expansion time cotrollow and Lexical substitution. 4.5 Ct
Consider the following Macro:
MACRO
INCR &MEM_VAL, &INCR_VAL, &REG
MOVERR &REG, &MEM _VAL
ADD &REG, &&INCR_VAL
MOVEM &REG, &MEM_VAL
MEND
What will be the output of the Macro code given above? Mark
prototype, model and
pre-processor statements properly.
C.
In an assembly language program, a
certain action is required at 20 places in the
Under what conditions would you code program. 4.5
this acion as:
i. Amnacro?
iü. A Subroutine?

Q4. a Explain the following: 4.5 CC


a. who | tee logfile
newfile/dev/tty3a | sort > file3
b. ls | tee /dev/tty | grep
poem | We- 1
c. (date; who) > logfile
b. Explain the following commands with their use,
syntax and at least three option: 4.5 CC
basename, cut, tee, grep, rm, Is
I.
Explain the output of the following. 2
i.
who | sort -logfle > newfile
ii.
who | tee filel fle2 /dev/tty3a | sort > file3
1. How would you perform the
i. following
Extract the address fieldoperations:
2.5 CO
from a file which contains records
having fields name namne : age : address: phone
Convert all capital letters in a file to
Q5. a. Write a shell script, which report names and sizes of all the small letters.
files in a directory (directory 4.5 CO
which is supplied as an argument to the shell script) whose size is exceeding 1024
bytes. The
filenames should be printed in descending order of their sizes. The total number of such files
should also be reported.
b A friend of yours has promised to login at a pårticular time.
However, he has not kept the 4.5 CO
promise. You want to contact him as soon as he logs in. write a shell script which checks after
every one minute (maximum 5 minutes) whether your friend has logged in or not. The log
name should be supplied to shell script as argument.
C. Writea shell script which receives filerames as arguments. If even number of filenames e.g.
4.5 CO
suppose four filenames are supplied then the ist should get copied into second file, the
third file should get copied into the fourth ie, and so on. If odd number of filenames are
supplied then no copying should take place and en error message should be displayed.

You might also like