Seminar 2

Seminar 2

University

10 Qs

quiz-placeholder

Similar activities

Learning Activity-2: Atomicity

Learning Activity-2: Atomicity

University

12 Qs

Mediapad

Mediapad

University

12 Qs

TALENT NINJAS (ROUND 3) - PROCESSORS

TALENT NINJAS (ROUND 3) - PROCESSORS

University

15 Qs

ROrg Wdh vor Weihnachten

ROrg Wdh vor Weihnachten

University

8 Qs

Average Round - WMSU ICpEP Quizbowl 2021

Average Round - WMSU ICpEP Quizbowl 2021

University

10 Qs

PDS - 04225  Intro to Data Structures and Algorithms - Chapter 2

PDS - 04225 Intro to Data Structures and Algorithms - Chapter 2

University

10 Qs

Tin học

Tin học

University

5 Qs

Database Management system

Database Management system

University

12 Qs

Seminar 2

Seminar 2

Assessment

Quiz

Computers

University

Medium

Created by

Микола Трохимович

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the MIPS assembly equivalent for the C declaration char greeting[6] = {'H', 'e', 'l', 'l', 'o', '\0'};?

greeting: .asciiz "Hello"

greeting: .char 'H','e','l','l','o',0

greeting : .byte ’H’,’e’,’l’,’l’,’o’,’\0’

greeting: .space 6

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the MIPS assembly equivalent for the C declaration char my_string[] = "I’m the string?

str: .asciiz "I’m the string"

str: .word 'I','’','m',' ','t','h','e',' ','s','t','r','i','n','g',0

str: .byte "I’m the string"

str: .space 14

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the MIPS assembly equivalent for the C declaration int vector_1 [10];?

vector_1 : .data 10

vector_1 : .space 40

vector_1 : .word 10

int vector_1 [10];

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the purpose of the following MIPS assembly instructions?

Compute the product of $t3 and $t4, storing the result in $t5.

Multiply the values in $t3 and $t4 and store the lower 32 bits of the result in $t5

Add the values in $t3 and $t4 and store the result in $t5

Divide the values in $t3 and $t4, storing the quotient in $t5

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the purpose of the following MIPS assembly instructions?

Divide the values in $t5 and $t4, storing the quotient in $t6 and the remainder in $t2.

Multiply the values in $t5 and $t4, storing the lower 32 bits of the result in $t6 and the upper 32 bits in $t2.

Divide the values in $t4 and $t5, storing the quotient in $t6 and the remainder in $t2.

Multiply the values in $t4 and $t5, storing the lower 32 bits of the result in $t6 and the upper 32 bits in $t2.

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Make 0x2 ⊕ 0x5 (where ⊕ stands for exclusive-or)

0111

0110

0100

0000

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Indicate what will be the hexadecimal value of the bytes stored in the memory addresses (hexadecimal) 0x10010004?

@0x10010004: 0x09

@0x10010004: 0x-7

@0x10010004: 0xF9

@0x10010004: 0x02

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?