Tskafli6

13 Questions | Total Attempts: 130

SettingsSettingsSettings
Please wait...
Tskafli6

Questions from the chapter: (kafli 6)


Questions and Answers
  • 1. 
    Which of the following does not require boolean structure. 
    • A. 

      While loop statement

    • B. 

      For loop statement

    • C. 

      If-then-else statement

    • D. 

      Assignment statement

  • 2. 
    Which of the following is ignored by a compiler.
    • A. 

      Comment statements

    • B. 

      Procedure headers

    • C. 

      Control statements

    • D. 

      Declarations of constants

  • 3. 
    Which of the following is not constructed by a typical compiler.
    • A. 

      Source code

    • B. 

      Symbol table

    • C. 

      Parse tree

    • D. 

      Object program

  • 4. 
    Which of the following is not associated with object-oriented programming.
    • A. 

      Resolution

    • B. 

      Polymorphism

    • C. 

      Encapsulation

    • D. 

      Inheritance

  • 5. 
    Which of the following is an example of a language that is based on the object-oriented paradigm.
    • A. 

      Lisp

    • B. 

      C

    • C. 

      Prolog

    • D. 

      C++

  • 6. 
    Which of the following is not a step in the process of translating a program.
    • A. 

      Code generation

    • B. 

      Lexical analysis

    • C. 

      Executing the program

    • D. 

      Parsing the program

  • 7. 
    Positions within arrays are identified by a means of numbers called.
    • A. 

      Instance variables

    • B. 

      Indices

    • C. 

      Parameters

    • D. 

      Constants

  • 8. 
    Which of the following is an example of a language that is based on the functional paradigm.
    • A. 

      PROLOG

    • B. 

      LISP

    • C. 

      C++

    • D. 

      C

  • 9. 
    Which of the following is not a parse tree of an expression based on the folllowing grammar.
    • A. 

      A

    • B. 

      B

    • C. 

      C

  • 10. 
    Which of the following is the scope of a variable.
    • A. 

      The structure associated with the variable

    • B. 

      The portion of the program in wich the variable can be accessed

    • C. 

      The type associated with the variable

    • D. 

      The number of characters in the variable name

  • 11. 
    Which of the following statements is not a resolvent of the following clauses. P OR Q OR ekki-R        ekki-P OR T       ekki-Q OR T       R OR T Svarmöguleikar:
    • A. 

      T OR P

    • B. 

      Q OR T

    • C. 

      Q OR ekki-R OR T

    • D. 

      P OR ekki-R OR T

  • 12. 
    Which of the following is not a possible value of the expression 4+6/2-1 Er svarið 5?
    • A. 

      True

    • B. 

      False