Sorting Program MCQs Quiz Online PDF Download

Learn sorting program MCQs, computer architecture test for online courses learning and test prep to practice. Computer language and instructions quiz has multiple choice questions (MCQ), sorting program quiz questions and answers to learn for online computer technology degree exam prep.

Computer technology practice test MCQ on given lines of code temp = v[k]; v[k] = v[k+1]; v[k+1] = temp represents function of with options factorial, multiplication, sorting and swapping problem solving skills for viva, competitive exam prep, interview questions with answer key. Free study guide is for online learning sorting program quiz with MCQs to practice test questions with answers.

MCQs on Sorting Program Quiz PDF Download

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

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

D

MCQ. Coping 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. Initialization in 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. Given expression addi $sp,$sp,?20 will make room in stack of

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

C