Exam 22: Bits, Characters, C Strings and Structs

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

Typedef is used to:

Free
(Multiple Choice)
4.7/5
(33)
Correct Answer:
Verified

A

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

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

C

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

Free
(Multiple Choice)
5.0/5
(34)
Correct Answer:
Verified

C

The advantages of using typedef do not include:

(Multiple Choice)
5.0/5
(31)

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

(Multiple Choice)
4.8/5
(43)

Which is the proper way to create an array of structure variables of type Data?

(Multiple Choice)
4.9/5
(35)

Structure variables may not be initialized by:

(Multiple Choice)
4.8/5
(41)

Arrays are:

(Multiple Choice)
4.7/5
(40)

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

(Multiple Choice)
4.7/5
(41)

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

(Multiple Choice)
4.8/5
(31)

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

(Multiple Choice)
4.7/5
(37)

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

(Multiple Choice)
4.8/5
(33)

A bit field must be declared as a:

(Multiple Choice)
4.9/5
(41)

The main difference between structures and classes is:

(Multiple Choice)
4.8/5
(36)

What is the output of the following statement? Cout << strspn"Cows like to moo.", "Ceik losw");

(Multiple Choice)
4.9/5
(41)

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

(Multiple Choice)
4.9/5
(45)

Which of the following is not a bitwise operator?

(Multiple Choice)
4.9/5
(45)

Evaluate 00001000 & 11000101 ) ^ 11110000 ).

(Multiple Choice)
4.9/5
(36)

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

(Multiple Choice)
4.7/5
(43)

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

(Multiple Choice)
4.9/5
(43)
Showing 1 - 20 of 26
close modal

Filters

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