Programming Languages set 1

1 Que: A compiler can check
a. Logical Error  
b. Syntax Error  
c. Both Logical and Syntax Error  
d. Not Logical and Syntax Error    
2 Que: A grammar for a programming language is a formal description of  
a. Syntax       
b. semantics  
c. Structure
d. Code
3 Que: A grammar will be meaningless    
a. if terminal set and non terminal set are not disjoint       
b. if the left handside of a production has no non-terminal    
c. if the left hand side of a production has non terminalvery application
d. all of the above
4 Que: A main procedural program contains modules. These modules are also called____________.
a. Packages      
b. Units  
c. Both (a) and (b)  
d. None of the above  
5 Que: A program which translates high level program into machine code is classified as
a. compiler     
b. translator
c. instruction analyst
d. translating analyst
6 Que: A special quantity named in a program and its value can be changed is called
a. variables      
b. Syntax Error  
c. mantissa  
d. exponent  
7 Que: A special quantity whose value does not change is classified as
a. constant       
b. mantissa
c. exponent    
d. variables  
8 Que: A special value placed at end of items data list is called  
a. rogue value    
b. vague values  
c. decimal value
d. numerical value
9 Que: All numbers including decimals are classified as
a. integers         
b. real numbers  
c. prime numbers
d. composite numbers
10 Que: An assembler translates
a. routine into subroutine  
b. processing time into manual time  
c. assembly code into machine code
d. machine code into assembly code