1) chose from following function headers defines a function that returns a floating point number and two integers as arg
Posted: Thu May 05, 2022 12:46 pm
1) chose from following function headers defines a function that
returns a floating point number and two integers as arguments?
A. int super_function(float first, float second) , B. float
super_function(int first, float second) , C. float
super_function(int first, int second)
2) Which of the below functions matches with the following
function call: int number = funktio(float number1, int
number2);
A. char good_function(float x, float y)
{...programming statements...}
, B. int good_function(float x, float y)
{...programming statements...}
C. ) int good_function(float x, int y)
{...programming statements...}
3)
Let's assume every row of the file contains a persons name i.e.
string that can contain spaces. Which of the following statements
reads the name in it's entirety to a string type variable
full_name? The file object name is streaming.
A. streaming.get(full_name);
B. getline(streaming, full_name);
C. streaming.getline(full_name);
D. get(streaming, full_name);
returns a floating point number and two integers as arguments?
A. int super_function(float first, float second) , B. float
super_function(int first, float second) , C. float
super_function(int first, int second)
2) Which of the below functions matches with the following
function call: int number = funktio(float number1, int
number2);
A. char good_function(float x, float y)
{...programming statements...}
, B. int good_function(float x, float y)
{...programming statements...}
C. ) int good_function(float x, int y)
{...programming statements...}
3)
Let's assume every row of the file contains a persons name i.e.
string that can contain spaces. Which of the following statements
reads the name in it's entirety to a string type variable
full_name? The file object name is streaming.
A. streaming.get(full_name);
B. getline(streaming, full_name);
C. streaming.getline(full_name);
D. get(streaming, full_name);