Tskafli6

13 Questions | Attempts: 130
Share
SettingsSettings
Please wait...
  • 1/13 Questions

    Which of the following is ignored by a compiler.

    • Comment statements
    • Procedure headers
    • Control statements
    • Declarations of constants
Please wait...
Tskafli6 - Quiz
About This Quiz

Questions from the chapter: (kafli 6)


Quiz Preview

  • 2. 

    Which of the following does not require boolean structure. 

    • While loop statement

    • For loop statement

    • If-then-else statement

    • Assignment statement

    Correct Answer
    A. Assignment statement
  • 3. 

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

    • Code generation

    • Lexical analysis

    • Executing the program

    • Parsing the program

    Correct Answer
    A. Executing the program
  • 4. 

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

    • Lisp

    • C

    • Prolog

    • C++

    Correct Answer
    A. C++
  • 5. 

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

    • Instance variables

    • Indices

    • Parameters

    • Constants

    Correct Answer
    A. Indices
  • 6. 

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

    • Source code

    • Symbol table

    • Parse tree

    • Object program

    Correct Answer
    A. Source code
  • 7. 

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

    • Resolution

    • Polymorphism

    • Encapsulation

    • Inheritance

    Correct Answer
    A. Resolution
  • 8. 

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

    • PROLOG

    • LISP

    • C++

    • C

    Correct Answer
    A. LISP
  • 9. 

    Which of the following is the scope of a variable.

    • The structure associated with the variable

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

    • The type associated with the variable

    • The number of characters in the variable name

    Correct Answer
    A. The portion of the program in wich the variable can be accessed
  • 10. 

    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:

    • T OR P

    • Q OR T

    • Q OR ekki-R OR T

    • P OR ekki-R OR T

    Correct Answer
    A. T OR P
  • 11. 

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

    • A

    • B

    • C

    Correct Answer
    A. B
  • 12. 

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

    • True

    • False

    Correct Answer
    A. True

Quiz Review Timeline (Updated): Oct 28, 2013 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Oct 28, 2013
    Quiz Edited by
    ProProfs Editorial Team
  • Nov 28, 2012
    Quiz Created by
    Viddz1
Back to Top Back to top
Advertisement