Answer:
cin.ignore function written as cin.ignore()
Explanation:
- As we know that cin is an object that is used to obtain the input entered by the user through the keyboard.
- cin.ignore() is a function which is used to ignore or skip one or more characters in the keyboard buffer.
- Keyboard buffer is a small storage area which is used to store keystrokes.
- When a key is pressed on the keyboard it is referred to as a keystroke.
- So before processing, these keystrokes are stored in keyboard buffer.
- So when we use cin to input a character from the user through the keyboard, the keyboard buffer must be empty. If that's not done then the character entered will be taken by the buffer of previous variable.
- Lets take an example of why we want to use cin.ignore() function.
- For example you want the employee (user) to enter his name and you are using cin to read this name from the user.
char empname[8];
cin>>empname;
- Now if the user types his name lets say Anonymous and press enter key this will be taken as new line character and it will store this newline character \n into the buffer.
- cin >> statement reads data from the buffer and stops reading when it reaches newline character.
- So Anonymous is read in and stored in empname variable but newline character is left in the keyboard buffer.
- Lets say after cin>>empname we write another statement that takes a character from user. A user wants to enter character "a".
char character;
character = cin.get();
- When cin.get finds the newline character \n in keyboard buffer, it uses it (as cin.get can read the newline character in the buffer) without waiting for the user to input "a".
- So cin.ignore() function is used to avoid such situation.
- We can specify the characters to be ignore within the cin.ignore() function such as cin.ignore(10,'\n') will ignore 10 characters in the buffer before taking new line or until a \n character comes.
- You can simply use cin.ignore() which will ignore the very next character just as \n in our example. In our example we can use cin.ignore() after the cin>>empname; and before using cin.get();
Answer:
Correct limitation for Attribute Name and value is option
b: Value and name combined must not exceed 400KB
Explanation:
For amazon dynamo db You can have unlimited attribute per item but one attribute cannot exceed 400 kb in size.400Kb is the limit of an item which can be stored in db.
If bigger data is required to store than data is stored some where and links/url to data are stored in the db.
For Item max size is 64KB
Answer:
C
Explanation:
A faulty motherboard causes a computer to reboot after a short period of time.
The motherboard is a printed circuit board, It transmits power and allows for effective communication to and between the RAM, CPU and all other computer external components. Motherboard is essential for the coordination of all the activities in the computer.
A faulty motherboard could be as a result of a leaking capacitor in it, which is caused by a bad power source.
If that occurs there is need for replacement of the Motherboard to ensure the smooth running of the computer.
Answer:
I think the answer would be A.
Explanation:
If I'm wrong plz let me know (I think I may be wrong)
Answer:
Linear.
Explanation:
The common name for the growth rate function N is linear.N growth rate is directly proportional to the input.So it grows linearly.It does not grow rapidly like other growth functions like quadratic,exponential and cubical.
Constant growth does not grow over time it stays as it is.
Hence the answer to this question is linear.