Answer:
getline(cin, address);
Explanation:
Given
String object: address
Required
Statement that reads the entire line
The list of given options shows that the programming language is c++.
Analysing each option (a) to (e):
a. cin<<address;
The above instruction will read the string object until the first blank space.
Take for instance:
The user supplied "Lagos state" as input, only "Lagos" will be saved in address using this option.
b. cin address:
This is an incorrect syntax
c. getline(cin,address);
Using the same instance as (a) above, this reads the complete line and "Lagos state" will be saved in variable address
d. cin.get(address);
address is created as a string object and the above instruction will only work for character pointers (i.e. char*)
<em>From the above analysis, option (c) is correct.</em>
Answer:
It would assign the value of 20 to the variables a and b
Explanation:
Answer: Local Area Network (LAN)
Explanation:
A Local Area Network (LAN) is a computer network that interconnects computers within a limited physical area such as a residence, school, laboratory, university campus or office building.
An example of LAN network is "Phone, Computer and TV connected to a single network (such as a Home Network) via Cables, Wifi, Bluetooth or Hotspot". When the devices are interconnected or connected to a LAN, it becomes accessible between each other.
A simplest example of a LAN Device is a <em>Home Router.</em>
Answer:
Abstract data type is a datatype which hides all the implementation details to the end user.
Explanation:
Class is an abstract data type in object oriented programming. Class abstracts both data members and member functions implementation. Here we can hide some confidential data from end user using access specifier "private". We can make end user access only the data which is marked as "public".
example:
public class Calculate
{
private int salary;
public int workingHours;
public int reatePerHour;
public void Calcuate(){
int total=workingHours*reatePerHour;
cout<<total;
}
}
Here class calculates hides the implementation details of the method "Calculate" .We are abstracting implementation details to the end user using "Class" data type. So it is an AbstarctDataType
Answer:
The answer to this question is given below in the explanation section.
Explanation:
This question is about how to insert caption or text below the image. Marry have to follow the following steps:
- Open the article in MS Word
- Select the image to insert the text below it.
- Then go to the References menu
- Under the reference group, click on the insert caption button
- a popup, windows will get open, fill in it the required detail.
If you want to insert the image below the text, then you have to follow the following option.
- Select the text where you want to insert the image
- Go to insert men
- Under the Illustration group of menu, click on pictures button, or online pictures button and select the image and click ok.