Sorting Program MCQs Quiz Online PDF Download

Practice sorting program MCQs, computer architecture MCQ online for test prep. Computer language and instructions quiz has multiple choice questions (MCQ), sorting program quiz questions and answers as given lines of code temp = v[k]; v[k] = v[k+1]; v[k+1] = temp represents function of, answer key help with choices as factorial, multiplication, sorting and swapping problem solving for viva, competitive exam preparation, interview questions. Free study guide is to learn sorting program quiz online with MCQs to practice test questions with answers.

MCQs on Sorting Program Quiz PDF Download

MCQ. The given lines of code temp = v[k]; v[k] = v[k+1]; v[k+1] = temp represents the function of

  1. Factorial
  2. Multiplication
  3. Sorting
  4. Swapping

D

MCQ. Coping the parameter $a0 into $s2 will be written in assembly instruction as

  1. add $s2, $a0
  2. move $s2, $a0
  3. add $s3, $a1
  4. move $s3, $a1

B

MCQ. The initialization in the For Loop for (i = 0; i < n; i += 1) can be written in assembly language as

  1. move $s0, $zero
  2. move $s0, $1
  3. add $s0, $zero
  4. add $s0, $1

A

MCQ. The given expression addi $sp,$sp,

  1. 2 registers
  2. 3 registers
  3. 5 registers
  4. 6 registers

C