info@avatto.com
+91-9920808017
16. In some programming languages, an identifier is permitted to be a letter followed by any number of letters or digits. If L and D denotes the sets of letters and digits respectively, which of the following expressions define an identifier?
( L∪ D ) *
L ( L ∪ D)*
( L . D )*
L . ( L . D )*
Your email address will not be published. Required fields are marked *
Report
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
Comment
17. A language L allows declaration of arrays whose sizes are not known during compilation. It is required to make efficient use of memory. Which one of the following is true?
a compiler using static memory allocation can be written for L
a compiler cannot be written for L ; an interpreter must be used
a compiler using dynamic memory allocation can be written for L
none of these
18. What are x and y in the following macro definition? macro Add x, y Load y Mul x Store y end macro
variables
identifiers
actual parameters
formal parameters
19. What is the value of X printed by the following program? program COMPUTE ( input, output ); var X : integer ; procedure FIND ( X: real ); begin X : = sqrt (X); end; begin X : = 2 FIND (X) writeln (X) end
2
√2
Run-time error
20. Which of the following macros can put a macro assembler into an infinite loop?
MACRO M1, X IF EQ, X if X = 0 then.... M1 X + 1 ENDC IF NE, X : IF X ≠ 0 then...... WORD X : address (X) is stored here ENDC ENDM
MACRO M2, X IF EQ, X M2 X ENDC IF NE, X WORD X + 1 ENDC ENDM
both (A) and (B)
Login with Facebook
Login with Google
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login