Download presentation
Presentation is loading. Please wait.
Published byJosephine Cross Modified over 9 years ago
1
compilers compilers www.ramkumarsjava.com
2
Q1>A translator converts _____________into______________. www.ramkumarsjava.com
3
Source program to object or target program www.ramkumarsjava.com
4
Q2>The time of conversion from source program into object program is called ________time. a)runtime b)boot time c)fresh time d)compile time www.ramkumarsjava.com
5
compile time www.ramkumarsjava.com
6
Q3>The program execution is done in compiler in_________________. www.ramkumarsjava.com
7
Runtime www.ramkumarsjava.com
8
Q4>_______________________+______ ______________=compilation. a)Analysis +Synthesis b)Analysis +Compile c)Compile +Synthesis d)Analysis +Execute www.ramkumarsjava.com
9
Analysis and Synthesis www.ramkumarsjava.com
10
Q5>The analysis phase is often called the _______________ of a compiler. www.ramkumarsjava.com
11
Front end www.ramkumarsjava.com
12
Q6>What are the 3 phases of analysis phase? www.ramkumarsjava.com
13
a)Lexical Analysis b)Synthesis Analysis c)Semantic Analysis www.ramkumarsjava.com
14
Q7>Syntax of any programming language is specified in terms of units called __________________. www.ramkumarsjava.com
15
Tokens or terminals www.ramkumarsjava.com
16
Q8>Syntax Analyzer is otherwise known as _____________. a)Scanner b)Parser c)Lexeme d) Sub scripter www.ramkumarsjava.com
17
Parser www.ramkumarsjava.com
18
Q9>What are the work of a semantic analyzer? www.ramkumarsjava.com
19
a)Type Checking b)Type Conversions www.ramkumarsjava.com
20
Q10>The synthesis phase is the ____________of a program. www.ramkumarsjava.com
21
Back end www.ramkumarsjava.com
22
Q11>What are the stages of synthesis of target program? www.ramkumarsjava.com
23
Memory allocation Code generation and optimization www.ramkumarsjava.com
24
Q12>Code optimization is done for- www.ramkumarsjava.com
25
faster and shorter code www.ramkumarsjava.com
26
Q13>_____________ is a data structure that is used by the compiler to hold the information about source program constructs. www.ramkumarsjava.com
27
Symbol table www.ramkumarsjava.com
28
Q14>What are the role of a compiler? www.ramkumarsjava.com
29
-Lexical Analyzer -Syntactic Analyzer -Semantic Analyzer -Code generator -Code optimizer -Error reporter www.ramkumarsjava.com
30
Q17>Code generation and optimization is not a part of synthesis phase a)True b)False www.ramkumarsjava.com
31
false www.ramkumarsjava.com
32
Q18>The first compiler was written by _____________ in ________for A-0 system language www.ramkumarsjava.com
33
Grace Hopper,1952 www.ramkumarsjava.com
34
Q19>Who invented first complete compiler? www.ramkumarsjava.com
35
The FORTRAN team led by John W.Backus at IBM in 1957 www.ramkumarsjava.com
36
Q20>___________ was one of the early commercial computers that used vacuum tubes. www.ramkumarsjava.com
37
Z22 www.ramkumarsjava.com
38
Q21>The first known demonstrated cross platform high level language was_____________. a)FORTRAN b)COBOL c)BASIC d)ALGOL www.ramkumarsjava.com
39
COBOL www.ramkumarsjava.com
40
Q22>A compiler that can be written in the programming language it compiles- www.ramkumarsjava.com
41
Self hosted www.ramkumarsjava.com
42
Q23>The first self hosting compiler was written for LISP by_______________and ______________ in 1962. www.ramkumarsjava.com
43
Tim Hart and Mike Levin www.ramkumarsjava.com
44
Q24>Structure of a compiler depends on 3 factors. What are they? www.ramkumarsjava.com
45
Nature of the source language Machine architecture and configuration Aims of compiler www.ramkumarsjava.com
46
Q25>Different types of compiler structure are- www.ramkumarsjava.com
47
Single pass compiler Multipass compiler Conventional compiler Compilers for permissive language Incremental compiler www.ramkumarsjava.com
48
Q26>Strike the one out which doesn’t match for single pass compilers. -All the stages executed in single flow -Memory requirement is small -Code generated is inefficient -Faster execution www.ramkumarsjava.com
49
memory requirement is small www.ramkumarsjava.com
50
Q27>Pascal and FORTRAN are example of ______________compiler. www.ramkumarsjava.com
51
single pass www.ramkumarsjava.com
52
Q28>____________is an example of multipass compiler. www.ramkumarsjava.com
53
java www.ramkumarsjava.com
54
Q29>A clear cut distinction between analysis and synthesis phase is brought is _________________ a)conventional b)Incremental c)Singlepass d)Multipass www.ramkumarsjava.com
55
conventional www.ramkumarsjava.com
56
Q30>C is a _________________ type of compilers. www.ramkumarsjava.com
57
conventional www.ramkumarsjava.com
58
Q31>___________________is a language that allows declarations to be placed anywhere in a program. www.ramkumarsjava.com
59
Permissive language www.ramkumarsjava.com
60
Q32>Incremental compilers are invented by ______________ and __________________ in 1973 that combine the main advantages of compilers and interpreters. www.ramkumarsjava.com
61
Berthaud and Griffiths www.ramkumarsjava.com
62
Q33>IBM visual age c++ compiler is a ______________ compiler. www.ramkumarsjava.com
63
Incremental www.ramkumarsjava.com
64
Q34>IBM/360 FORTRAN H compiler is _______________ compilers. www.ramkumarsjava.com
65
Optimization www.ramkumarsjava.com
66
Q35>A concept of developing a compiler for a language by using subsets of the same language is called_______________. a)Bootstrapping b)Cross-compilation c)Incremental Compilation d)None of the above www.ramkumarsjava.com
67
Boot strapping www.ramkumarsjava.com
68
Q36>A compiler which runs on one machine and generates code for another machine is called as ______________. a)Bootstrapping b)Cross-compilation c)Incremental Compilation d)None of the above www.ramkumarsjava.com
69
Cross compilation www.ramkumarsjava.com
70
Q37>A cross compiler is a compiler which runs on one machine and generates code for another machine a)True b)False www.ramkumarsjava.com
71
True www.ramkumarsjava.com
72
Q38>Process of generating code on one machine for executing on another is called ________________. www.ramkumarsjava.com
73
Cross Compilation www.ramkumarsjava.com
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.