GoConqr has a new look! Let us know what you think.

Quiz

SDP10 Final - Part II

Csse 1502 31 questions

Take the quiz

Questions in this 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). Image for question 1
    1. ATrue
    2. BFalse
  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.Image for option 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. AImage for option A
    2. BImage for option B
    3. CImage for option C
    4. DImage for option D
  6. 6This is an example of?Image for question 6
    1. ASerial processing
    2. BLinear processing
    3. CParallel processing
    4. Dnone of the above
  7. 7This is an example of?Image for question 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не правильный вариант

Information

Description
SDP10 Quiz on SDP10 Final - Part II, created by Csse 1502 on 13/05/2018.
Author
Csse 1502
Language
English
Views
328
Tags
sdp10
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?