Search Header Logo

Systems

Authored by Dylan Scott

Computers

University

Used 4+ times

Systems
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

33 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the binary number '11010110' in hexadecimal?

0x56

0xD6

0xA9

0x7B

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

For IEEE 754, what is the number of bits used for the sign, exponent, and fraction?

1 sign, 7 exponent, 24 fraction

2 sign, 6 exponent, 24 fraction

1 sign, 8 exponent, 23 fraction

1 sign, 8 exponent, 24 fraction

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is negative 7 in 4-Bit Two's Complement?
Hint: +7 is 0111

1000

1111

0111

1001

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following C code snippet?

255

-1

0

Does not compile

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following statements correctly checks if two strings str1 and str2 are equal in C?

if (str1 == str2)

if (strcmp(str1, str2) == 0)

if (str1.equals(str2))

if (*str1 == *str2)

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of a function prototype in C?

To define the body of a function

To declare a function for later use

To initialize variables used in a function

To call a function

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

When passing a string to a function in C, what is actually being passed?

The first character of the string

The entire string as a copy

The address of the first character of the string

The length of the string

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers