Answer:
The correct program to this question can be given as:
Program:
//header file
#include<iostream> //include header file
using namespace std;
//main
int main() //defining method main
{
double radius,area=0; //defining variables
double PI=3.14; //defining variable PI and assign value
cout <<"Enter the radius: "; //message
cin >> radius; //input value by user
area = PI * radius * radius; //formula to calculate area
cout << "Area: "<< area << endl; //print area
return 0;
}
Output:
Enter the radius: 3.0
Area: 28.26
Explanation:
In the above program code, a header file is included. In the next line, the main method is defined, which contain three double type variable that is "radius, area, and PI".
- The radius variable is used to take input by the user, and the area variable is to calculate the area of the circle, and the PI is used to hold a constant value, which is "3.14".
- After taking user input in radius variable the area variable has used the formula of the circle, which calculates a value and in the last print, the function uses "cout", that prints area variable value.
Answer:
Appearances
Explanation:
In your dashboard, click on Appearance → Customize → Widgets. Choose the location where you'd like to place the widget on your site. Common options here include the Footer and Sidebar, but this may be different depending on your theme..
Go to Appearance > Widgets in the WordPress Administration Screens. Choose a Widget and either drag it to the sidebar where you wish it to appear, or click the widget, (select a destination sidebar if your theme has more than one) and click the Add Widget button.
[ RevyBreeze ]
Answer:
The new version is kept in a special virtual space; the file is only changed when he clicks “save.”
Explanation:
I took the test and got it correct.
Answer:
Blue
Explanation:
set_Property - (topButton), (#background-color), (orange)
set_Property - (bottomButton), (#background-color), (red)
set_Property - (topButton), (#background-color), (blue)
set_Property - (bottomButton), (#background-color), (green)
Here, the background color for the 'topButton' would be "blue" when the program is finished running, as it is the last task, the topButton would be set to or it is the last thing that will run for the button.
Answer:
c. Math.pow(-2.0,15.0) to (Math.pow(2.0,15.0) -1).
Explanation:
short represents a 16-bit signed integer. short is used to save memory because it occupies less space than integers where integers occupy 4 bytes short occupies 2 bytes.
Since it is signed so first bit is used to represent the sign if 0 then positive and 1 then the integer is negative.We are left with 15 bits.
So the range is -2¹⁵ to 2¹⁵-1.
Hence the answer is option c.