Computer Science, asked by samomi, 5 months ago

Write a Python program to find the largest of the three numbers.

Answers

Answered by raviaksaini0
1
Class +2. Total marks 40
Multiple choice questions . 1 marks each.
1. What is the length of null string?
(A) 1 (b) 0 (c) 2 (d) 4
2, which string must be terminated by ............
(A) strcpy (b) strlen (c) strcmp (d) none of these
3. The default return data tyoe in function is?
(A) void (b) int (c) float (d) char
4. The function main()is ?
(A) a built-in function (b) a user define function (c) optional (d) all of these
5. Which of the following inpy function cannot be used to input miltiword string .
(A) getch () (b) gets() (c) scanf() (d) none of these
6. The function strcmp ("abcd",ABCD") will return?
(A)-1 (b) 0(c) 1 (d) none of these
7. A function with no action.
(A) is an invalid function (b) produces syntax error (c) is allowed and is known as dummy function (d) return zero
8.the parameter passing mechanism used in C is .
(A) call by value (b) call by name (c) name cell (d) none of these
9.timming ....... Remove the information from the source material.
10. We can use ........ Movie option to save it.

Write true/false:1 Marks each
1.Audio clips can only be added in time line view.
2. Video effect present in the video effect folder can be added.
3. A string is represented as array of character.
4. To use string liabary function include header file string.h in your program.
5. Strcopy() is function used to copy strings.
6. Can we pass a constant through a function.
7. Is it necessary to have one return statement in a function.
8. To return back from a function we must use return statement.
9. We can have only video clips in the collection pane.
10. The project file in window movie maker has an extension .mswmm.


C. Each question is of 2 marks
1.what is a special about the array?
2.what is the string?
3. What is the purpose of the null character?
4. How does a function definition differ from function declaration?
5. Write a difference between story board and time line?
6. What is a workspace?
7. What is the limitations on array of char?
8. What is a need of function declaration?
9. What role does the return statement plays?
10. Explain advantage of use of function?
Answered by atrs7391
3

num1 = float(input("Enter first number: "))

num2 = float(input("Enter second number: "))

num3 = float(input("Enter third number: "))

if (num1 >= num2) and (num1 >= num3):

  largest = num1

elif (num2 >= num1) and (num2 >= num3):

  largest = num2

else:

  largest = num3

print("The largest number is", largest)

Similar questions