# What does the following statement mean? num1, num2 = get_num()

773 views

## Problem:

I am new and my logic is not so strong can any one give me right solution?
What does the following statement mean?
num1, num2 = get_num()
a. The function get_num() is expected to return a value each for num1 and num2.
b. The function get_num() is expected to return a value and assign it to num1 and num2.
c. Statement will cause a syntax error.
d. Statement will cause a run-time error.

## Solution:

The correct answer is: The function get_num() is expected to return a value each for num1 and num2.

## Related questions

187 views
Problem: I am trying to run a query, can any one guide me what does this query means? What does the following statement do? double[] array1 = new double[10]; a. Declares array1 to be a reference to an array of double values b. Creates an instance of an array of 10 double values c. Will allow valid subscripts in the range of 0 - 9 d. All of these
1 vote
65 views
Problem: In Python while practising the few question from c language i tried to implement the few of the program but most of the time it come up with the syntax error or the intend error can you help what actually i am missing the syntax error in python every time i execute it.
78 views
Problem: What does the following UML diagram entry mean? + setHeight(h : double) : void A) this is a public attribute named Height and is a double data type B) this is a private method with no parameters and returns a double data type C) this is a private attribute named Height and is a double data type D) this is a public method with a parameter of data type double and does not return a value
17 views
Problem: How do we write a program that prints a triangle, rectangle, square and a inverted triangle of stars on the screen using loops?
310 views
Problem: I am new in programming and my logic is not good, can anyone give the right solution? Which of the following could not be a linear programming problem constraint? A.1A + 2B &le; 3 B.1A + 2B &ge; 3 C.1A + 2B = 3 D.1A + 2B + 3C + 4D &le; 5 E.1A + 2B
180 views
Problem: I am finding code and not able to used right code so that I can get right output, can anyone tell the right code? Rearrange the code so that it forms a correct program that prints out the letter q:?
4 views
Problem: Now, doesnt it work this way: If I have a try and catch block in the method itself then I need not write method_name(int n) throws Exception?