¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

SDP10 Final - Part II

Csse 1502 31 preguntas

Hacer el test

Preguntas del test (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). Imagen de la pregunta 1
    1. AVerdadero
    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.Imagen de la opción 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. AImagen de la opción A
    2. BImagen de la opción B
    3. CImagen de la opción C
    4. DImagen de la opción D
  6. 6This is an example of?Imagen de la pregunta 6
    1. ASerial processing
    2. BLinear processing
    3. CParallel processing
    4. Dnone of the above
  7. 7This is an example of?Imagen de la pregunta 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не правильный вариант

Información

Descripción
SDP10 Test sobre SDP10 Final - Part II, creado por Csse 1502 el 13/05/2018.
Idioma
English
Visitas
328
Etiquetas
sdp10
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?