Answer:
Explanation:
#include <iostream>
using namespace std;
double cube(double);
int main()
{
double ci=0;
cout << "Enter avalue :";
cin >> ci;
cout << "Cube of " << ci << "is =" << cube(ci) << endl;
return 0;
}
double cube(double i)
{
return(i*i*i);
}
Answer:
c. StringBuilder
Explanation:
An alternative to the String class would be the StringBuilder Class. This class uses Strings as objects and allows you to mix and match different strings as well as adding, removing, implementing, and modifying strings themselves as though they were similar to an array. Unlike the string class StringBuilder allows you to modify and work with a combination of strings in the same piece of data as opposed to having various objects and copying pieces which would take up more memory.
Answer:
The JavaScript statement is
var str1 = "Information Technology";
var result = str1.toUpperCase();
Explanation:
JavaScript is used to validate the client side it means it provide the client side validation.
Following are the function of JavaScript that converted the string into uppercase.
function val()
{
var str1 = "Information Technology ";
var result = str1.toUpperCase();
}
The toUpperCase() function convert the string into uppercase in JavaScript
OUTPUT
INFORMATION TECHNOLOGY