What can we conclude from the following code calculategrades

What can we conclude from the following code? calculategrades0 returns a grade based on the variable in 0 it would calculate a grade pushes what data type calculategrades is into 0 calls the calculategrades function A void function returns variable of type; int, boot, double, etc. True False This kind of identifier can be used for every function definition inner outer local global These are fixed values that the program may not after. variables permutables constants stables

Solution

its function calling.

Suppose we define a function like this

void calculateGrades(){

}

Now to do action on this function, we can call it by

calculateGrades();

So its d, call the calculategrades function

5)

void does not represent a data type. Defining a function using return type void means you are not returning any value from that function.

So void apple(){

}

will return nothing. but

int apple(){} will return int type.

So answer is false, void does not return int, double or boolean etc.

6)

I could not understand the problem statement. There is no such thing as inner or outer identifier. local and global. Local can be declared inside any function such that when function get executed that identifier can\'t be used by others. global identifier can be used by any function. So same identifier can be change by many.

example

global identifier-> int d = 2;

void apple(){

int k;

k = 2;

printf(\"%d\", d); // 2 will print

}

void orange(){

printf(\"%d\", k); // k is not declared as it was only local to apple and orange does not know about it

printf(\"%d\", d); // print 2 as d is global

}

So you can understand the reasoning.

But from what I understand the answer is d global.

7) constant

variables are named as variable because it can change.

stables and permutables are not any pre-defined identifier.

constant are named as constant because you declare it once and you can\'t change it.

const int max = 23;

max = 24;// error

so answer is c, constants

 What can we conclude from the following code? calculategrades0 returns a grade based on the variable in 0 it would calculate a grade pushes what data type calc
 What can we conclude from the following code? calculategrades0 returns a grade based on the variable in 0 it would calculate a grade pushes what data type calc

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site