Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ QUESTIONS ANSWER ALL AND TRY TO TELL ME WHY ITS THAT AWNSER! 1. How many cha

ID: 3923995 • Letter: C

Question

C++ QUESTIONS

ANSWER ALL AND TRY TO TELL ME WHY ITS THAT AWNSER!

1. How many characters are there in the extended ASCII character set used on our PCs?

a. 256

b. 127

c. 26

d. it depends on the data type used

2. The data type char and the data type __________ are often interchageable in C++.

a. double

b. float

c. int

d. string

3. What will happen if a char is cout'd as an int?

a. the character will be displayed

b. the ASCII value of the character will be displayed

c. it will not compile

d. it will produce a run-time error

Explanation / Answer

1.

a.256

since a place of codes that extends the essential ASCII set. The essential ASCII set uses 7 bits for each character, giving it a total of 128 unique signs. The comprehensive ASCII character set uses 8 bits, which gives it an additional 128 characters.

2.

c.int

3.

a.the character will be displayed

Since a char is an integral type which can be used to store the numerical representation of a character .We can enter into a char and imagine it's a character, or imagine it's a number, but not both.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote