How many bit combinations are there in a byte?
Answers were Sorted based on User's Feedback
Answer / bari
2 raise to no. of byte ie. for three byte ,8 bit combination
| Is This Answer Correct ? | 4 Yes | 16 No |
Answer / anita sachdeva
Byte contains the 8 Bits and bit contains either the value
0 or 1. there are only two states there will be 255
combinations i.e.(2 raise to power 8 minus 1)
combinations .
| Is This Answer Correct ? | 18 Yes | 46 No |
What will i and j equal after the code below is executed? Explain your answer.
A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a C++ program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.
List down the guideline that should be followed while using friend function.
What is OOPs
Q1 On the screen how do you write the following words? she sells seashells by the seashore (a) all in one line (b) in three lines Q2 Write a program that asks interactively the user’s name and age and responds with Hello name, next year you will be next_age. where next_age is age + 1 Q3 For the different values of n, what is the output? printf(“%x %c %o %d”,n,n,n,n); (a) n = 67 (b) n = 20 (c) n = 128 (d) n = 255 (e) n = 100 Q4 What will be the output of the following program? int main() { char a,b,c; scanf(“%c %c %c”,&a,&b,&c); printf(“a=%c b=%c c=%c”,a,b,c); return 0; } [Note: The user input is:ABC DEF GHI]
What is difference between malloc()/free() and new/delete?
When do we use copy constructors?
When a function is made inline. Write the situation where inline functions may not work.
advantages and disadvantages of using Borland C++ / version 5.
When is a template a better solution than a base class?
write a programme to get a character and thier ASCII value
What is fixed in c++?