GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

What is output? double MyFct(double a, double b) { return (a…

What is output? double MyFct(double a, double b) { return (a + b) / 2.0;}int main() { double x = 3.0; double y = 5.0; double z = 8.0; double t; t = MyFct(x, y); t = MyFct(t, z); cout

Read Details

How many parameters does FahrenheitToCelsius have? double Fa…

How many parameters does FahrenheitToCelsius have? double FahrenheitToCelsius(double fahrenheit) { return (fahrenheit – 32.0) * 5.0 / 9.0;} int main() { double fahrenheit; cin >> fahrenheit; int c1; int c2; int c3; int c4; c1 = FahrenheitToCelsius(fahrenheit); c2 = FahrenheitToCelsius(32); c3 = FahrenheitToCelsius(78); c4 = FahrenheitToCelsius(100);}

Read Details

Given array scorePerQuiz has 10 elements. Which assigns 7th…

Given array scorePerQuiz has 10 elements. Which assigns 7th element in the array with the value 8?

Read Details

Given the following function. To change the function to retu…

Given the following function. To change the function to return the product instead of the sum, how many lines of code need to be changed? int Calculate(int a, int b) { return a + b;}int main() { cout

Read Details

What is true about void functions?

What is true about void functions?

Read Details

What is the output? int Calc(int num1, int num2) { return 1…

What is the output? int Calc(int num1, int num2) { return 1 + num1 + num2;}int main() { int x; x = Calc(4, 5); cout

Read Details

How many function calls exist in the following code? int Cal…

How many function calls exist in the following code? int Calc1 (int a, int b) { return a + b / 2;}int Calc2 (int a, int b) { return a * b / 100;}int main () { int x; int y; x = Calc1 (5,3); cout

Read Details

The following program generates an error. Why? void PrintSum…

The following program generates an error. Why? void PrintSum(int num1, int num2) { cout

Read Details

Which character array declaration is appropriate?

Which character array declaration is appropriate?

Read Details

What is the output? int FindSqr(int a) { int t; t = a * a;…

What is the output? int FindSqr(int a) { int t; t = a * a; return a;}int main () { int square; square = FindSqr(10); cout

Read Details

Posts pagination

Newer posts 1 … 46,577 46,578 46,579 46,580 46,581 … 74,093 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top