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

Quiz

SDP10 Final - Part II

Csse 1502 31 perguntas

Fazer o quiz

Perguntas do quiz (31)

  1. 1Given the declaration int A[10][20]; in C, the following assembly code implements A[i][j] = 1; (assuming A, i, and j are all global variables). Imagem da pergunta 1
    1. AVerdadeiro
    2. BFalso
  2. 2The code (a && b) || (!a && !b) implements -
    1. AAdder
    2. BEquality
    3. CMUX
    4. DSet membership
  3. 3What is the difference between logical and bitwise operators. (for example && and &)
    1. AThe logical and operator ‘&&’ expects its operands to be boolean expressions (either 1 or 0) and returns a boolean value.
      The bitwise and operator ‘&’ works on Integral (short, int, unsigned, char, bool, unsigned char, long) values and return Integral value.

      If an integral value is used as an operand for ‘&&’ which is supposed to work on boolean values, following rule is used in C.
      …..A zero is considered as false and non-zero is considered as true.
      For example in the following program x and y are considered as 1.

      The ‘&&’ operator doesn’t evaluate second operand if first operand becomes false. Similarly ‘||’ doesn’t evaluate second operand when first operand becomes true. The bitwise ‘&’ and ‘|’ operators always evaluate their operands.Imagem da opção A
    2. B&& (logical and operator) - The left and right operands are boolean expressions. If both the operands are non-zero, then the condition becomes true.
      >
      & (bitwise and operator) - The left and right operands are integral types. Binary AND Operator copies a bit to the result if it exists in both operands.
    3. Cэто открытый вопрос, выше два примера как можно ответить (этот вариант отмечен как правильный)
  4. 4Initially byte i of memory is i + 0x20 (mod 256), %eax contains the number 3, and %ebx contains the number 5. What is in %ebx after running x86 movl (%eax), %ebx?
    1. ANone of the above
    2. B3
    3. C0x25
    4. D0x23
  5. 5Choose the correct compilation of rax = (rbx ? rcx : rdx)?
    1. AImagem da opção A
    2. BImagem da opção B
    3. CImagem da opção C
    4. DImagem da opção D
  6. 6This is an example of?Imagem da pergunta 6
    1. ASerial processing
    2. BLinear processing
    3. CParallel processing
    4. Dnone of the above
  7. 7This is an example of?Imagem da pergunta 7
    1. ASerial processing
    2. BLinear processing
    3. CParallel processing
    4. Dnone of the above
  8. 8Object files are:
    1. Aне вариантов
    2. Bне правильный вариант
  9. 9Thread (as with OpenMP) Which of the following is true?
    1. Aнет вариантов
    2. Bне правильный ответ
  10. 10______construct encloses code, forming a parallel region.
    1. Aparallel
    2. Bне правильный вариант

Informações

Descrição
SDP10 Quiz sobre SDP10 Final - Part II, criado por Csse 1502 em 13-05-2018.
Idioma
English
Visualizações
328
Etiquetas
sdp10
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?