We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
DAWN MATRIC HR.SEC.SCHOOL.DHARMAPURI 16.
Binary search is also called as
QUARTERLY EXAM-2024-2025 (A) Linear search (B) Sequential search (C) Random search (D) Half-interval search CLASS:XII [CS] ONE MARK TEST MARKS: 60 17. Which scope refers to variables defined in current function? SUBJECT:COMPUTER SCIENCE TIME: 30MIN (A) Local Scope (B) Global scope (C) Module scope (D) Function Scope 18. Which of the following security technique that regulates who can use resources in a computing I.CHOOSE THE CORRECT ANSWER:- 60X1=60 environment? 1. The small sections of code that are used to perform a particular task is called (A) Password (B)Authentication (C) Access control (D) Certification (A) Subroutines (B) Files (C) Pseudo code (D) Modules 19.A variable which is declared outside of all the functions in a program is known as 2. The data structure which is a mutable ordered sequence of elements is called (A) Local variable (B)Global variable (C) Private variable (D)Public variable (A) Built in (B) List (C) Tuple (D) Derived data 20. Which of the following members of a class can be handled only from within the class? 3.. A sequence of immutable objects is called (A) Public members (B)Protected members (C) Secured members (D) Private members (A) Built in (B) List (C) Tuple (D) Derived data 21. Which members are accessible from outside the class? 4. Which of the following is constructed by placing expressions within square brackets? (A) Public members (B)Protected members (C) Secured members (D) Private members (A) Tuples (B) Lists (C) Classes (D) quadrats 22. The members that are accessible from within the class and are also available to its sub-classes is 5. The variables in a function definition are called as called (A) Subroutines (B) Function (C) Definition (D) Parameters (A) Public members (B)Protected members (C) Secured members (D) Private members 6. The values which are passed to a function definition are called 23. The word comes from the name of a Persian mathematician Abu Ja’far Mohammed ibn-i Musa al (A) Arguments (B) Subroutines (C) Function (D) Definition Khowarizmi is called? 7. Which of the following are mandatory to write the type annotations in the function definition? (A) Flowchart (B) Flow (C) Algorithm (D) Syntax (A) { } (B) ( ) (C) [ ] (D) < > 24. From the following sorting algorithms which algorithm needs the minimum number of swaps? 8. The data type whose representation is known are called (A) Bubble sort (B) Insertion sort (C) Selection sort (D) All the above (A) Built in datatype (B) Derived datatype 25. Who developed Python ? (C) Concrete datatype (D) Abstract datatype (A) Ritche (B) Guido Van Rossum (C) Bill Gates D) Sunder Pitchai 9. Which of the following defines what an object can do? 26. The Python prompt indicates that Interpreter is ready to accept instruction. (A) Operating System (B) Compiler (C) Interface (D) Interpreter (A) >>> (B) <<< (C) # D) << 10. Which of the following carries out the instructions defined in the interface? 27. Which of the following shortcut is used to create new Python Program ? (A) Operating System (B) Compiler (C) Implementation (D) Interpreter (A) Ctrl + C (B) Ctrl + F (C) Ctrl + B D) Ctrl + N 11.The functions which will give exact result when same arguments are passed are called 28. Value and variables when used with operator are known as (A) Impure functions (B) Partial Functions (A) Operators (B) Identifiers (C) Keyword D)operands (C) Dynamic Functions (D) Pure functions 29. Which of the following is not Logical operator? 12. The functions which cause side effects to the arguments passed are called (A) and (B) or (C) not D) Assignment (A) impure function (B) Partial Functions 30. Which operator is also called as Conditional operator? (C) Dynamic Functions (D) Pure functions (A) Ternary (B) Relational (C) Logical D) Assignment 13. Which of the following refers to the visibility of variables in one part of a program to another part of 31. How many important control structures are there in Python? the same program. (A) 3 (B) 4 (C) 5 D) 6 (A) Scope (B) Memory (C) Address (D) Accessibility 32. elif can be considered to be abbreviation of 14. The process of binding a variable name with an object is called (A) nested if (B) if..else (C) else if D) if..elif (A) Scope (B) Mapping (C) late binding (D) early binding 33.Which operator performed exponential calculation on operators and assign value to the left operand? 15. Which of the following is used in programming languages to map the variable and object? (A) =* (B) =** (C) **= D) *= (A) :: (B) := (C) = (D) == 34. Which of the following is not an identifier? 51. If List=[10,20,30,40,50] then List[2]=35 will result (A)Sum (B) total_marks (C) total_mark1 D) total-mark (A) [35,10,20,30,40,50] (B) [10,20,30,40,50,35] (C) [10,20,35,40,50] (D) [10,35,30,40,50] 35. Which statement is composed of a sequence of statements which are executed one after another? 52. If List=[17,23,41,10] then List.append(32) will result (A)Sequential (B)Alternative (C) Iterative D)Control (A) [32,17,23,41,10] (B) [17,23,41,10,32] (C) [10,17,23,32,41] (D) [41,32,23,17,10] 36. Which function is called anonymous un-named function 53. Which of the following Python function can be used to add more than one element (A) Lambda (B) Recursion (C) Function (D) define within an existing list? 37. A named blocks of code that are designed to do one specific job is called as (A) append() (B) append_more() (C) extend() (D) more() (A) Loop (B) Branching (C) Function (D) Block 54. What will be the result of the following Python code? 38. A Function which calls itself is called as S=[x**2 for x in range(5)] (A) Built-in (B) Recursion (C) Lambda (D) return print(S) 39. Which of the following is the slicing operator? (A) [0,1,2,4,5] (B) [0,1,4,9,16] (C) [0,1,4,9,16,25] (D) [1,4,9,16,25] (A) { } (B) [ ] (C) < > (D) ( ) 55. What is the use of type() function in python? 40. What is stride? (A) To create a Tuple (B) To know the type of an element in tuple. (A) index value of slide operation (B) first argument of slice operation (C) To know the data type of python object. (D) To create a list. (C) second argument of slice operation (D) third argument of slice operation 56. Functions defined inside a class: 41. While defining a function which of the following symbol is used. (A) Functions (B) Module (C) Methods (D) section (A) ; (semicolon) (B) . (dot) (C) : (colon) (D) $ (dollar) 57. Class members are accessed through which operator? 42. In which arguments the correct positional order is passed to a function? (A) & (B) (C) # (D) % (A) Required (B) Keyword (C) Default (D) Variable-length 58. Which of the following set operation includes all the elements that are in two sets but not the one that 43. The subscript of a string may be: are common to two sets? (A) Positive (B) Negative (C) Both (A) and (B) (D) Either (A) or (B) (A) Symmetric difference (B) Difference (C) Intersection (D) Union 44. Which of the following function is used to return the length(no of characters) of the string. 59. The keys in Python, dictionary is specified by (A) str(len) (B) str(length) (C) len(str) (D) string(length) (A) = (B) ; (C) + (D) : 45. Which of the following operator is used for Repeating ? 60.Which punctuation should be used in the blank? (A) + (B) & (C) * d) = if <condition>_ 46. Read the following statement and choose the correct statement(s). statements-block 1 (I) In Python, you don’t have to mention the specific data types while defining function. else: (II) Python keywords can be used as function name. statements-block 2 (A) I is correct and II is wrong (B) Both are correct (A) ; (B) : (C) :: (D) ! (C) I is wrong and II is correct (D) Both are wrong 47.Which of the following argument type is passed to a function in correct positional order. (A)Required arguments (B) Keyword **************************** (C)Default arguments (D)Variable-length 48. Pick odd one in connection with collection data type (A) List (B) Tuple (C) Dictionary (D) Loop 49. Let list1=[2,4,6,8,10], then print(list1[-2]) will result in (A) 10 (B) 8 (C) 4 (D) 6 50. Which of the following method is used as destructor? (A) __init__( ) (B) __dest__( ) (C) __rem__( ) (D) __del__( )