# Logical Instructions MCQs Quiz Online PDF eBook Download

Learn Logical Instructions MCQs, logical instructions quiz answers pdf to study online computer architecture course. Practice Computer Language and Instructions Multiple Choice Questions & Answers (MCQs), "Logical Instructions" quiz questions and answers to learn online certificate courses. Learn 32 bits mips addressing, computer hardware procedures, computer hardware operands, arrays and pointers test prep for 2 year computer science degree.

Practice logical instructions MCQ: If (\$s2 < \$s3) \$s1 = 1; else \$s1 = 0 in assembly language can be written as, with choices sll \$s1,\$s2,\$s3, slt \$s1,\$s2,\$s5, sll \$s1,\$s2,\$s4, and slt \$s1,\$s2,\$s3 to learn online certificate courses. Practice merit scholarships assessment test, online learning Logical Instructions Quiz Questions for competitive exams in computer science major for computer and information science.

## MCQs on Logical Instructions PDF eBook Download

MCQ: If (\$s2 < \$s3) \$s1 = 1; else \$s1 = 0 in assembly language can be written as

1. sll \$s1,\$s2,\$s3
2. slt \$s1,\$s2,\$s5
3. sll \$s1,\$s2,\$s4
4. slt \$s1,\$s2,\$s3

D

MCQ: Logical Instructions

1. bne \$s3,\$s4,Else; add \$s0,\$s1,\$s2; j Exit; Else:sub \$s0,\$s1,\$s2;
2. bne \$s3,\$s4,Else; add \$s0,\$s1,\$s2; Else:sub \$s0,\$s1,\$s2; Exit:
3. bne \$s3,\$s4,Else; add \$s0,\$s1,\$s2; j Exit; Else:sub \$s0,\$s1,\$s2; Exit:
4. beq \$s3,\$s4,Else; add \$s0,\$s1,\$s2; j Exit; Else:sub \$s0,\$s1,\$s2; Exit:

C

MCQ: For checking, that the register \$s2 is less than 15, we can write as

1. slt \$t0,\$s2,15
2. slti \$t0,\$s2,15
3. slti \$t0,\$s1,15
4. slti \$t0,\$s15,15

B

MCQ: Expression srl \$\$s1,\$s2,10 represents the

1. \$s1 = \$s2 >> 10
2. \$s1 = \$s2 << 10
3. \$s1 = \$s2 >> 20
4. \$s1 = \$s2 << 20

A