5.107 · exercise

Basic quiz: floating point

How the single and double precision views of one register differ, which directives place floating-point values in memory, what operands the arithmetic instructions accept, and the gdb format that reads a register as a number.

0 of 5 correct

Multiple choice

A double precision value sits in a d register. How many bits wide is that register?

Multiple choice

Which directive places a double precision constant in .data?

Multiple choice

An assembly subroutine returns a double precision result to a C caller. Which register holds the return value?

Multiple choice

How do the basic floating-point arithmetic instructions such as fadd and fmul differ from their integer counterparts in the operands they accept?

Multiple choice

In gdb, which print format shows a register value as a floating-point number?