Punjab 12th Class Computer Chapter 6 Functions Mcqs Test Online Punjab 12th Class Computer Chapter 6 Functions Mcqs Test Online 1234567891011121314151617181920Show paginator Hide paginator Question 1 of 20Computer Science 1. Variables defined in a function are not known outside the __________. 1.Folder 2.Message 3.Program 4.Function Question 1 of 20Question 2 of 20 2. ____________ is a program unit or module that is designed to perform some particular task. 1.Folder 2.Statement 3.Function 4.File Question 2 of 20Question 3 of 20 3. All C programs must have a function called. 1.Main() 2.Scan()3.Start() 4.First() Question 3 of 20Question 4 of 20 4. These functions are also known as C library functions. 1.Strcmp() 2.All a, b & c 3.Pow() 4.Sqrt() Question 4 of 20Question 5 of 20 5. Functions are _________ of one another. 1.Logical 2.Dependent 3.Independent 4.None of all Question 5 of 20Question 6 of 20 6. Function declaration is very similar to declaration of ____________ before they are. 1.File 2.Variables 3.Procedures 4.Graphics Question 6 of 20Question 7 of 20 7. The body of the function, the statements that do the work, follow the function _________. 1.Relation 2.Structure 3.Definition 4.Statement Question 7 of 20Question 8 of 20 8. Function declaration also known as: 1.Prototype 2.Monotype 3.Sypotype 4.Cynotype Question 8 of 20Question 9 of 20 9. Using of variable declared in user defined function in the function main() the compiler will give an _________ message. 1.Erase 2.Variable3.Error 4.Constant Question 9 of 20Question 10 of 20 10. The function _________ is always executed first. 1.Initial() 2.Main() 3.Top() 4.First()Question 10 of 20Question 11 of 20 11. __________ is a predefined function of C language. 1.None of them 2.Printfn() 3.Streamp() 4.Scanf() Question 11 of 20Question 12 of 20 12. What does “void” do before the function name? 1.That this function should call before main() function 2.That this function does not have any statement 3.That this function does not have any name 4.That this function does not return anything Question 12 of 20Question 13 of 20 13. Functions are written only _________ but may be referenced at several points in a program. 1.Once 2.Several 3.Twice 4.Fourth Question 13 of 20Question 14 of 20 14. Function declaration does not end with __________. 1.Semicolon (;) 2.Comma (,) 3.Question mark (?)4.Colon (:) Question 14 of 20Question 15 of 20 15. Just like variables, function declaration tells compiler the ____________ of the function. 1.Name 2.Purpose 3.Solution 4.Property Question 15 of 20Question 16 of 20 16. The body of the function is enclosed within. 1.Brackets 2.Parenthesis 3.Braces 4.Commas Question 16 of 20Question 17 of 20 17. The function definition is the _________ itself. 1.Prototype 2.Statement 3.Function 4.Similar Question 17 of 20Question 18 of 20 18. How many values the “return” statement can return? 1.Three 2.Four 3.One 4.Two Question 18 of 20Question 19 of 20 19. C programs are made more flexible through the use of 1.Data 2.Folders 3.Functions 4.Calculations Question 19 of 20Question 20 of 20 20. The brackets followed by function name tell the compiler that you are referring to a function and not to a __________. 1.Constant 2.Variable 3.Reciprocal4.Exponent Question 20 of 20 Loading... Test By Subject Punjab Test By Topics 12th Class Computer You Can Learn and Gain more Knowledge through our Online Quiz and Testing system Just Search your desired Preparation subject at Gotest.