Exam 22: Bits, Characters, C Strings and Structs

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Let x be an unsigned int on a machine with 4-byte unsigned ints. What effect does x>>=1; X<<=1; Have?

Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
Verified

C

The most basic unit of data on a computer is the:

Free
(Multiple Choice)
4.9/5
(31)
Correct Answer:
Verified

A

Structure variable declarations can be incorporated into a structure definition by placing a comma-separated list of variable names:

Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
Verified

D

The functions of the character-handling library typically manipulate characters as:

(Multiple Choice)
4.9/5
(42)

The strtol and stroul functions do not:

(Multiple Choice)
4.8/5
(35)

The advantages of using typedef do not include:

(Multiple Choice)
4.9/5
(35)

To change the string "ABCDEFGHI" to "aaaaaFGHI" you would use the _________ function.

(Multiple Choice)
4.8/5
(36)

The ___________ function allows characters of one part of a string to be copied into another, overlapping part of the same string.

(Multiple Choice)
4.6/5
(29)

Arrays are:

(Multiple Choice)
4.8/5
(38)

The main difference between the functions atof, atoi and atol is:

(Multiple Choice)
4.9/5
(31)

Assuming that string1 = "hello" and string2 = "hello world", which of the following returns 0?

(Multiple Choice)
5.0/5
(33)

Which is the proper way to create a built-in array of structure variables of type Data?

(Multiple Choice)
4.9/5
(33)

__________ is not allowed.

(Multiple Choice)
4.8/5
(28)

Two structure variables of the same type with the same member values, when compared will:

(Multiple Choice)
4.8/5
(39)

Which of the following correctly copies the contents of string2 into string1? Assume that string2 is equal to "goodbye" and string1 is equal to "good morning"?

(Multiple Choice)
4.7/5
(24)

Which function would be the most useful for determining if a certain word is contained in a string representing a sentence?

(Multiple Choice)
5.0/5
(25)

Memcmp would return ___________ for the call memcmp("Hi, how are you?", "Hi, how are things?", 6).

(Multiple Choice)
4.9/5
(37)

Strtok does not:

(Multiple Choice)
4.9/5
(34)

The number of bits in a bit field is specified with:

(Multiple Choice)
4.8/5
(35)

Let Bit1 = Bit2 = 1. Which of the following does not have the same result as the others?

(Multiple Choice)
4.8/5
(37)
Showing 1 - 20 of 30
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)