O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

Exam 1

Thomas Scott 12 perguntas

Fazer o quiz

Perguntas do quiz (12)

  1. 1An NFA's transition function returns
    1. AA Boolean value
    2. BA state
    3. CA set of states
    4. DAn edge
  2. 2Can a DFA simulate NFA
    1. ANo
    2. BYes
    3. CSometimes
    4. DDepends on NFA
  3. 3In Flex, which of the following specifies an exclusive start condition HELLO?
    1. A%s HELLO
    2. B%x HELLO
    3. C%%x HELLO
    4. D%%s HELLO
  4. 4In C++, which of the following is NOT considered as a static semantic error
    1. AVariables used without declaration
    2. BRedefinition of variables in the same scope
    3. CThe number of arguments in a function call doesn't match the number of parameters in the function definition
    4. DTypes of operands of an operator are not compatible
    5. ENone of the above
  5. 5Which of the following files is generated by Flex?
    1. Atiger.ll
    2. Btiger.yy
    3. Clex.yy.cc
    4. Dtokens.h
    5. Etiger.tab.cc
  6. 6Which one of the following is not a stage of the compilation process?
    1. ASyntax Analysis
    2. BSemantic Analysis
    3. CScanner Generator
    4. DLexical Analysis
  7. 7The lexical analyzer takes _______ as input and produces a stream of ______ as output.
    1. AToken, source program
    2. BEither of the two
    3. CSource program, tokens
    4. DNone of the mentioned
  8. 8The scanner generator takes _______ as input and produces ______ as output.
    1. ARegular expressions, tokens
    2. BRegular expressions, scanner
    3. CLexeme, scanner
    4. DToken, scanner
  9. 9Which of the following is NOT a feature of compiler?
    1. AScan the entire program first and translate into machine code
    2. BTo detect syntax errors
    3. COptimize the generated code
    4. DExecution time is more comparing with pure interpreter
  10. 10Which of the following pairs of regular expressions are equivalent?
    1. A1(01)* and (10)*1
    2. Bx(xx)* and (xx)*x
    3. Cx+ and x+x*
    4. DAll of the mentioned

Informações

Descrição
This is a study guide for Compiler exam one.
Idioma
English
Visualizações
38
Etiquetas
cscimtsucompilercomputer science
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?