C QUESTIONS ANSWER ALL AND TRY TO TELL ME WHY ITS THAT AWNSE

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

Solution

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.

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.

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site