Question

variable someValue to the streams buffer. an output string stream variable called oss, write a statement that appends the value of a write a statement that appends the value ofth nt a. css oss. sonevalue; b. 033 someValue Given that a string variable fi1eMame is set to save ti1e. tab and an outout file stream varable OFS, which correctly opens the file with the string tilelame as the file name? a. OFS.open (tileName) : b, ofstream open)i c. ofstream,openifilelame) d. OFS <s fileName e. oFS.open (save tile.tabla . Which statement opens a file output. txt given ofatrean oFS a oFS.open foutput.ext b. oFs.open (output.txt) c. ors.t-output.txt.) d. otet ream , open ( output .tot*) 9. Assuming X·120 and Y . 74. what is the bnary number (8 bits) ofthe outcome sfXBT a. 0100 1000 b. 0011 0010 c 0211 1030 d. 1000 0111 e. 1011 0103 None of the above 0. Assuming x-120 and Y 74, what is the binary number (8 bits) of the outcome ofx a. 0100 1000 b. 0011 0010 0111 1010 d. 10000111 e. 1011 0101 f None of the above

0 0
Add a comment Improve this question Transcribed image text
Answer #1

6)
Ans:
b) CSS >> somevalue;

7)
Ans:
a)OPS.open(fileName)

8)
Ans:
a) oFS.open("output.txt");

9) Bit operator AND(&), gives output as 1, if the input of two operands is 1. If either bit of input of an operand is 0, then the result is evaluated to 0.
X = 120 = 01111000
Y = 74 = 01001010
.....................
01001000
Ans: a)01001000


10) Bit operator XOR(^): The output in case of Bit operator XOR is 1,if and only if two input bits are opposite.

X = 120 = 01111000
Y = 74 = 01001010
.....................
00110010

Ans: b)00110010

Add a comment
Know the answer?
Add Answer to:
variable someValue to the streams buffer. an output string stream variable called oss, write a statement...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT