Recursion in C Language

  • Recursion concepts
  • Recursive...
    View Complete Description
    ×

    Topic Summary

    • Recursion concepts
    • Recursive programming
    • Example program
10
Questions
Question Type Legends

Easy

Medium

Difficult

Multiple Choice Questions for Recursion in C Language

  • 1 Shift left logical the following bit pattern by one position: 0011 1111
    1. 0111 1110
    2. 0111 1111
    3. 0011 1110
    4. 1011 1111

  • 2 Write the assembly language instruction that copies the bit pattern in register $13 to register $15
    1. ori $15,$13,$0
    2. andi $13,$15,$15
    3. and $13,$15,$15
    4. or $15,$13,$0

  • 3 Write the assembly language statement that will invert the values of each bit in register $5 and put the result in register $8.
    1. nori $8,$5,$0
    2. nor $8,$5,$0
    3. xor $8,$5,$0
    4. nor $5,$8,$0

  • 4 Here is a program that loads register $5 with a bit pattern. Complete the program so that register $4 receives the pattern in register $5 shifted left logical by three positions. ori $5, $0, 0x92AF # put a bit pattern into register $5 sll ___, ___, ___ # shift left logical by three, put # result in register $4
    1. sll $5, $3, $4
    2. sll 3, $5, $4
    3. sll 5, 3, 4
    4. sll $4, $5, 3

  • 5 Shift right logical the following bit pattern by one position: 0011 1111
    1. 0000 1111
    2. 1111 1110
    3. 0001 1110
    4. 0001 1111

  • 6 Shift left logical the following bit pattern by two positions: 0011 1111
    1. 0111 1110
    2. 0111 1111
    3. 0011 1110
    4. 1011 1111

Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn and Evaluate

Follow Us
© 2020 - Subject Expert