SP Cse Pjlce-Pbcoe
SP Cse Pjlce-Pbcoe
A)1948
B)1949
C)1950
D)1951
Answer:C
A)1994
B)1990
C)1992
D)1985
Answer: D
B) Chip
C) Hardware
D) DOS
Answer : A
12.Special purpose software are :
A) Application software
B) System software
C) Utility software
D) None of the above
Answer : A
13.In computer operating system and utility programs are examples of
: A) System software
B) Device drivers
C) Application software
D) Customized software
Answer : A
14.Bottom up parsing involves :
A) Shift reduces
B) Operator check
C) Both (a) and (b)
D) None of these
Answer : C
15.Parsing is also known as :
A) Lexical analysis
B) Syntax analysis
C) Semantic analysis
D) Code generation
Answer : B
16.Software is defined as ___________
A) set of programs, documentation & configuration of data
B) set of programs
C) documentation and configuration of data
D)None of the mentioned
Answer: A
17.____________ is a software development activity that is not a part of software
processes. A) Validation
B) Specification
C) Development
D) Dependence
Answer: D
18.Attributes of good software is ____________
A) Development
B) Maintainability & functionality
C) Functionality
D) Maintainability
Answer: B
19.What does SDLC stands for?
A) System Design Life Cycle
B) Software Design Life Cycle
C) Software Development Life Cycle
D) System Development Life cycle
Answer: C
20._________ is not a fundamental activity for software processes in software
development. A) Evolution
B) Design and implementation
C) Validation
D) Verification
Answer: D
21. ____________ is a software development activity that is not a part of software
processes. A) Validation
B) Specification
C) Development
D) Dependence
Answer: D
22.Software patch is defined as ______________
A) Daily or routine Fix
B) Required or Critical Fix
C) Emergency Fix
D) None of the mentioned
Answer: C
23…………….. allows selection of the relevant information necessary for the data
warehouse. A)The Top-Down View
B)Linux
C) Mac OS
D) DOS
Answer: A
29. Types of computer language translator are
A) Compilers
B)Interpreters
C)Assemblers
D) All of these
Answer:D
30. A computer translator is best described as
A) Application software
B)System software
C)Hardware
D)Window
Answer:B
B) 1 byte
C) 3 bytes
D) 4 bytes
Answer : A
35. The instructions which after execution transfer control to the next instruction in the sequence
are called
A) Sequential control flow instructions
B) Control transfer instructions
C) Sequential control flow and control transfer instuctions
D) None of the mentioned
Answer : A
36.Which of the following might be used to convert high level language instructions into
machine language?
A)System software
B)Applications software
C)An operating environment
D)An interpreter
Answer: D
37.The advantage(s) inherent to using high language is/are:
A)Fewer people, less management and shorter transition in learning time.
B)Improved debugging capability, and superior documentation
C)A greater degree of machine independence
D)All of the above
Answer: D
38.Operation code field is present in:
A)Programming language instruction
B)Assembly language instruction
C)Machine language instruction
D)None of the above
Answer: C
39.The length of the one-byte machine language instruction is
A)2 bytes
B)1 bytes
C)3 bytes
D)4 bytes
Answer: B
40.The instruction format ‘register to register’ has a lengthof
A)2 bytes
B)1 bytes
C)3 bytes
D)4 bytes
Answer: A
Answer: B
42. A system program that combines the separately compiled modules of a program into a form
suitable for execution ?
A)Assembler
B)Linking loader
C)Cross compiler
D)Load and Go
Answer: B
43. Loading process can be divided into two separate programs, to solve some problems. The first is
binder the other is ?
A)Linkage editor
B)Module Loader
C)Relocator
D)None of these
Answer & So
Answer: B
44. Load address for the first word of the program is called
A)Linker address origin
B)Load address origin
C)Phase library
D)Absolute library
Answer & Solution Dis
Answer: B
B)1 bytes
C)3 bytes
D)4 bytes
Answer: A
B)Pass 2
C)Not evaluated by the assembler
D) None of the above
Answer: A
53.An assembler is ______
A)Programming language dependent
B)Syntax dependent
C)Machine dependent
D)Data dependent
Answer:C
54.Translator for low level programming language were termed as___
A)Assembler
B)Compiler
C)Linker
D)Loader
Answer: A
55.In a two Pass assembler the object code generation is done during the
? A)Second Pass
B)First Pass
C)Zeroeth Pass
D)Not done by assembler
Answer:A
56.What is computer architecture?
A) set of categories and methods that specify the functioning, organisation, and implementation
of computer systems
B) set of principles and methods that specify the functioning, organisation, and implementation
of computer systems
C) set of functions and methods that specify the functioning, organisation, and implementation
of computer systems
D) None of the mentioned
Answer: B
GROUP -2 ( 15 -28)
a) load the register with the next address and branch to the
address in the second field.
b) to start program
a) to end program
6) BR pseudo –op :
b) load the register with the next address and branch to the
address in the second field.
a) LTORG b)BR
c)DROP d)DS
a) to define constants
b) to drop constants
c) to define constants
d) to drop combination
11) a block of memory can be reserved for data using defined storage.
a) true
b) false
a) DC
b) DS
c) LTORG
d) EQU
a) true
b) false
19) what is
machine-op ? a)CPU
instruction b)assembler
instruction
c) complete instruction
d) loader instruction
a) AC b) ST
c)BALR d) END
21) Assembler is a machine dependent because
a) 2 byte
b)4 byte
c)6 byte
a) pass 1
b)pass 2
c)both a & b
b)FALSE
26) The statement that tells the computer to get a value from an
input device and store it in a memory location.
a) read
b) write
c) READ
d) WRITE
27) are identified by their addresses, we give them
names (field names / variable names) using words.
a) Memory variables
b) Memory Locations
c) Memory Addresses
d) Data variables
c) both a & b
b)false
b)two pass
c)three pass
d)load and go
a) EQU
b) DS
c) BALR
d) DC
a) Assume
b) Local
c) Label
d) EQU
c) find the value of each symbol , process literals and assign address
c) both a & b
d) only a
c)Both A and B
a) true
b) false
a) true
b) false
b)Pseudo-op table(POT)
c)Symbol Table(ST)
d)All of above
50) Which of the following databases use in
b)Pseudo-op table(POT)
c)Symbol Table(ST)
d)All of above
b) Machine-op Table
a) ADD [5],[R1];
b) ADDI 5,R1;
c) ADDIME 5,[R1];
d) There is no other way
53) For the given program what is the location counter of „A‟
in the given program:
JOHN START
0 0 USING *,15
0 4 L 1,FIVE
4 4 A 1,FOUR
8 4 ST 1,TEMP
12 4 FOUR DC F „5‟
16 4 FIVE DC F „5‟
20 4 TEMP DS F‟2‟
24 0 END
JOHN START
USING *,15
L 1,FIVE
A 1,FOUR
ST 1,TEMP
FOUR DC F
„5‟
FIVE DC F
„5‟
TEMP DS F‟2‟
END
55) For the given program what is the value of literals = F’25’ :
0 0 MYPRO START
2 0 USING BEGIN+2,15
2 2 SR 4,4
4 4 L 3,=F ‘10’
8 4 LOOP L 3,DATA(4)
12 4 A 2, =F ‘25’
16 4 ST 2,DATA(4)
20 4 A 4, =F ‘4’
24
4 BCT 3,LOOP
28 2 BR 14
36 12 LTORG
48 DATA DC F’1,3,3,4,5,9
24
’
72 0 END
56) For the given program what is the value of symbol “BEGIN”:
0 0 MYPRO START
BALR 15,0
USIN
0 2 BEGIN G BEGIN+2,15
2 0
2 2 SR 4,4
4 4 L 3,=F „10‟
8 4 LOOP L 3,DATA(4)
12 4 A 2, =F „25‟
16 4 ST 2,DATA(4)
20 4 A 4, =F „4‟
24 4 BCT 3,LOOP
28 2
BR 14
36 12 LTORG
48 24 DATA DC F‟1,3,3,4,5,9
72 0 END
a) procedure
b) subroutine
c) macro
d) none of the mentioned
Answer: c
a) initialising macro
b) initialising string macro
c) defining a string macro
d) defining a macro
Answer: d
a) beginning of a program
b) end of a program
c) after initialisation of program
d) anywhere in a program
Answer: d
a) in data segment
b) to represent directives
c) to represent statements.
d) all of the mentioned
Answer: d
5. The end of a macro can be represented by the directive.
a) END
b) ENDS
c) ENDM
d) ENDD
Answer: c
6. Inserting the statements and instructions represented by macro, directly at the place of the
macroname , in the program, is known as
a) calling a macro
b) inserting a macro
c) initializing a macro
d) none of the mentioned
Answer: a
a) greater than
b) less than
c) equal to
d) none of the
Answer:
Answer :b
a) complete code of instruction string is inserted at each place, wherever the macroname appears
b) macro requires less time of execution than that of procedure
c) macro uses stack memory
d) macroname can be anything except registers and mnemonics
12. A macro is
a. macro prototype
b. macro definition
c. macro identification
d. None of the above
14. During macro expansion each statement is
replaced by
a. the original program
b. the sequence of assembly statement
c by specific symbols
e. None of the above
15. Each macro statement is marked with the sign preceded it.
a. +
b. @
c. ~
d. $
16. The flow control during macro
expansion is a combination
b. chronological
c. cindexable
d sequential
used
a. Loader
b. Editor
c. Linker
d. Assembler
30. is used to indicate the next line of the text to be used during macro expansion.
a. MDTP
b. ALA
c. MNTC
d. all of the above.
Answer : a. MDTP
33. A processor –
a. is a sequence of instructions
b. is the devise where information is stored
c. is a devise that performs a sequence of operations specified by instructions in memory
d. none of the above
Answer : C . is a devise that performs a sequence of operations specified by instructions in memory
36.what are x and y in the following macro definition ? macro Add x,y load y mul x store y end macro.
a. variables
b. Identifiers
c. formal parameters
d. Actual parameters
Answer : C .formal parame
37.The advantage(s) of incorporating the macro processor into pass 1 is/ are:
b. more flexibility is available to the programmer in which he/she may use all the features of the e
c. Functions are combined and it is not necessary to create intermediate files as output from the macro
processor and input to the assembler
Answer: (d).
All of the above
38. Which of the following macros can put a macro assembler into an infinite loop ?
d. none of these
Answer: (b).
MACRO M2, XIF EQ, XM2 XENDCIF NE, XWORD X + 1ENDCENDM
Answer : a. MDTC
UNIT 4: LOADERS
Answer: (b)Module Loader.
a. compilation
b. Execution
c. Loading
d. Linking
Answer: (a)compilation
1. What is a compiler?
a) system program that converts instructions to machine language
b) system program that converts machine language to high-level language
c) system program that writes instructions to perform
d) None of the mentioned
Answer: a
Answer: d
Answer: d
Answer: a
Answer: d
Answer: b
7. Which of the following is known as a compiler for a high-level language that runs
on one machine and produces code for a different machine?
a) Cross compiler
b) Multipass compiler
c) Optimizing compiler
d) One pass compiler
Answer: a
Answer: d
Answer: a
Answer: a
12. Which of the following is a part of a compiler that takes as input a stream of
characters and produces as output a stream of words along with their associated
syntactic categories?
a) Optimizer
b) Scanner
c) Parser
d) None of the mentioned
Answer: b
Answer: b
Answer: d
Answer: c
Answer: c
Answer: d
18. An object module for a group of programs that were compiled separately is
handed to a linker. Which of the following about an object module isn’t true?
a) Relocation bits
b) Names and locations of all external symbols denied in the object module
c) Absolute addresses of internal symbols
d) Object code
Answer: c
19. Characters are grouped into tokens in which of the following phase of the
compiler design?
a) Code generator
b) Lexical analyzer
c) Parser
d) Code optimization
Answer: b
Answer: c
Answer: b
22. Which of the following technique is used for building cross compilers for other
machines?
a) Canadian Cross
b) Mexican Cross
c) X-cross
d) Brazilian Cross
Answer: a
23. Which of the following can detect an error if a programmer by mistake writes
multiplication instead of division?
a) Interpreter
b) Compiler or interpreter test
c) Compiler
d) None of the mentioned
Answer: d
Answer: c
Answer: c
Answer: a
Answer: c
Answer: a
Answer: b
Answer: d
Answer: c
32. The lexical analyzer takes _________ as input and produces a stream of _______ as
output.
a) Source program, tokens
b) Token, source program
c) Either of the two
d) None of the mentioned
Answer: a
Answer: b
34. A compiler program written in a high level language is called ________
a) Source Program
b) Object Program
c) Machine Language Program
d) None of the mentioned
Answer: a
35. System program such a compiler are designed so that they are ________
a) Re-enterable
b) Non-Usable
c) Serially usable
d) None of the mentioned
Answer: a
Answer: d
Answer: b
Answer: d
Answer: a
Answer: c
Answer: a
42. A parser with the valid prefix property is advantageous because it __________
a) Detects errors
b) None of the mentioned
c) Errors are passed to the text phase
d) All of the mentioned
Answer: c
43. The action of parsing the source program into proper syntactic classes is called
__________
a) Syntax Analysis
b) Lexical Analysis
c) Interpretation analysis
d) General Syntax Analysis
Answer: b
Answer: b
45. A topdown parser generates __________
a) Rightmost Derivation
b) Right most derivation in reverse
c) Left most derivation
d) Left most derivation in reverse
Answer: c
Answer: d
Answer: d
Answer: d
Answer: c
50. System program such as compiler are designed so that they are _________
a) Re-enterable
b) Non reusable
c) Serially usable
d) None of the mentioned
Answer: a
Answer: d
Answer: a
Answer: a
54. A simple two-pass assembler does which of the following in the first pass?
a) It allocates space for the literals
b) Calculates total length of the program
c) Symbol table is built for the symbols and their value
d) All of the mentioned
Answer: d
55. A system program that set-up an executable program in the main memory ready
for execution is?
a) Assembler
b) Linker
c) Loader
d) Text editor
Answer: c
Answer: c
Answer: d
Answer: a
Answer: b
60. In which way a macro processor for assembly language can be implemented?
a) Independent two-pass processor
b) Independent one-pass processor
c) Processor put into pass 1 of a standard two pass assembler
d) All of the mentioned
Answer: d
Answer: a
Answer: c
Answer: c
Answer: d
Answer: b
Answer: d
67. Syntax Analyser takes Groups Tokens of source Program into Grammatical
Production.
a) True
b) False
Answer: a
Answer: a
Answer: a
Answer: c