12CS EM OneMarks Without Answers
12CS EM OneMarks Without Answers
12
Computer Science
BOOK BACK AND ADDITIONAL ONE MARK QUESTIONS
1. FUNCTION
Choose the best answer:
1. The small sections of code that are used to perform 10. The functions which cause side effects to the
a particular task is called arguments passed are called
(A) Subroutines (B) Files (A) Impure function (B) Partial Functions
(C) Pseudo code (D) Modules (C) Dynamic Functions (D) Pure functions
2. Which of the following is a unit of code that is often ADDITIONAL QUESTIONS
defined within a greater code structure? 1. The syntax to define function begins with
(A) Subroutines (B) Function a) fun b) func c) let d) rec
(C) Files (D) Modules 2. Which of the following key indicate that the function
3. Which of the following is a distinct syntactic block? is a recursive function?
(A) Subroutines (B) Function a) rec b) recursive c) recur d) recu
(C) Definition (D) Modules 3. All functions are ______ definitions.
4. The variables in a function definition are called as a) static b) data type c) dynamic d) return
(A) Subroutines (B) Function 4. A function definition which calls itself is called
(C) Definition (D) Parameters a) main function b) self-function
5. The values which are passed to a function definition c) function definition d) recursive function
are called 5. Which of the following do not have any side effects?
(A) Arguments (B) Subroutines a) User defined functions b) Pure functions
(C) Function (D) Definition c) Impure functions d) Assigned functions
6. Which of the following are mandatory to write the 6. Which of the following function is a impure function?
type annotations in the function definition? (a) strlen() (b) sin() (c) random() (d) gcd()
(A) {} (B) () (C) [] (D) <> 7. An instance created for the class is
7. Which of the following defines what an object can a) Function b) Variables
do? c) Objects d) Constructors
(A) Operating System (B) Compiler
(C) Interface (D) Interpreter
8. Which of the following carries out the instructions
defined in the interface?
(A) Operating System (B) Compiler
(C) Implementation (D) Interpreter
9. The functions which will give exact result when same
arguments are passed are called
(A) Impure functions (B) Partial Functions
(C) Dynamic Functions (D) Pure functions
வாழ்த்துகளுடன்
அ. பிரபாகர்