Questions

3 Marks Each

🎯

Test yourself on this topic

11 questions · timed · auto-graded

Question 53 Marks
Write the function definition for the following: (a) A function ADD() accepts two parameters. (b) A function ADD() accepts two parameters and returns a single value. (c) A function Vote_Casting() will accepts age and citizen as parameter returns Boolean value. (d) A function Show () accepts no parameters and returns nothing.
View full question & answer
Question 63 Marks
Answer the following questions based on the given script/code.

(a) Name local variable(s).
(b) Name global variable(s).
(c) __________ is built-in function.
(d) ______________ is user-defined function.

(e) Name actual parameter(s).
(f) Name formal parameter(s).

Answer
(a) a, b (b) x (c) print() (d) show4() (e) 10,15 (f) a, b
View full question & answer
Question 73 Marks
Answer the following questions based on the given script/code.

(a) Name the variable used as parameter.
(b) Name the variable used as an argument
(c) Write function header statement.

(d) Which statement will return a value?
(e) Name a local variable(s).
(f) Name a global variable(s).
(g) Write function call statement.
(h) Variable 'a' will return the value to variable ______________.
(i) Name formal parameter

Answer
(a) a (b) b (c) def show(a) : (d) return a (e) a (f) b (g) res=show(b) (h) res (i) a
View full question & answer
Question 113 Marks
What will be the scope of the variables a, b, c, d, e?

Answer
Variable a,b and c has local scope of show(). Variable x and y has local scope of show1(). Variable z has global scope.
View full question & answer
3 Marks Each - Computer Science STD 12 Science Questions - Vidyadip