This document is a revision test for Grade XII Computer Science, consisting of 50 multiple-choice questions covering various topics such as data types, algorithms, SQL commands, and Python programming. Each question has four options to choose from, testing the students' knowledge and understanding of computer science concepts. The total marks for the test are 50.
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
0 ratings0% found this document useful (0 votes)
15 views4 pages
Xii Cs 1 Mark Set-1
This document is a revision test for Grade XII Computer Science, consisting of 50 multiple-choice questions covering various topics such as data types, algorithms, SQL commands, and Python programming. Each question has four options to choose from, testing the students' knowledge and understanding of computer science concepts. The total marks for the test are 50.
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/ 4
GRADE XII COMPUTER SCIENCE
ONE MARKS REVISION TEST TOTAL MARKS : 50
1 Which of the following allow to name the various parts of a multi-item object? (A) Tuples (B) Lists (C) Classes (D) quadrats 2 From the following sorting algorithms which algorithm needs the minimum number o swaps? (A) Bubble sort (B) Insertion sort (C) Selection sort (D) All the above 3 Which statement is generally used as a placeholder? A) continue B) break C) pass D) goto 4 While defining a function which of the following symbol is used. (a) ; (semicolon) (b) . (dot) (c) : (colon) (d) $ (dollar) 5 Which of the following is a compound structure? (A) Pair (B) Triplet (C) single (D) quadrat 6 What is the use of type() function in python? (a) To create a Tuple (b) To know the ty of an element in tuple. (c) To know the data type of python object. (d) To create a lis 7 The subscript of a string may be: (a) Positive (b) Negative (c) Both (a) and (b) (d) Either (a) or (b) 8 Containers for mapping names of variables to objects is called (A) Scope (B) Mapping (C) Binding (D) Namespaces 9 The algorithm that yields expected output for a valid input in called as (A) Algorithmic solution (B) Algorithmic outcomes (C) Algorithmic problem (D) Algorithmic coding 10 A named blocks of code that are designed to do one specific job is called as (a) Loop (b) Branching (c) Function (d) Block 11 Big Ω is the reverse of (A) Big O (B) Big θ (C) Big A (D) Big S 12 The values which are passed to a function definition are called (A) Arguments (B) Subroutines (C) Function (D) Definition 13 Pick odd one in connection with collection data type (a) List (b) Tuple (c) Dictionary (d) Loop 14 Which of the following executes the SQL command to perform some action? (A) execute() (B) key() (C) cursor() (D) run() 15 The subscript of a string may be: (a) Positive (b) Negative (c) Both (a) and (b) (d) Either (a) or (b) 16 The members that are accessible from within the class and are also available to its subclasses is called (A) Public members (B)Protected members (C) Secured members (D) Private memb 17 Which of the following set operation includes all the elements that are in two sets bu not the one that are common to two sets? (a) Symmetric difference (b) Difference (c) Intersection (d) Union 18 Which of the following function is used to count the number of elements in a list? (a) count() (b) find() (c) len() (d) index() 19 Which of the following character is used to give comments in Python Program ? A) # B) & C) @ D) $ 20 Which of the following functions that build the abstract data type? (A) Constructors (B) Destructors (C) recursive (D)Nested 21 Which of the following formatting character is used to print exponential notation in upper case? (a) %f (b) %E (c) %g (d) %n 22 This symbol is used to print more than one item on a single line. A) Semicolon (;) B) Dollar($) C) comma(,) D) Colon(:) 23 Which punctuation should be used in the blank? if _ statements- block 1 else: statements- block 2 A) ; B) : C) :: D) ! 24 If a problem can be broken into sub problems which are reused several times, the problem possesses which property? (A) Overlapping sub problems (B) Optimal substructure (C) Memoization (D) Greed 25 Read the following statement and choose the correct statement(s). (I) In Python, you don’t have to mention the specific data types while defining function. (II) Python keywords can be used as function name. (a) I is correct and II is wrong (b) Both are correct (c) I is wrong and II is correct (d) Both are wrong 26 Which of the following is a unit of code that is often defined within a greater code Structure? (A) Subroutines (B) Function (C) Files (D) Modules 27 Defining strings within triple quotes allows creating: (a) Single line Strings (b) Multiline Strings (c) Double line Strings (d) Multiple Strings 28 The condition in the if statement should be in the form of A) Arithmetic or Relational expression B) Arithmetic or Logical expression C) Relational or Logical expression D) Arithmetic 29 Which command lets to change the structure of the table? a. SELECT b. ORDER BY c. MODIFY d. ALTER 30 The data type whose representation is known are called (A) Built in data type (B) Derived data type (C) Concrete data type (D) Abstract data type 31 The most commonly used statement in SQL is (A) cursor (B) select (C) execute (D) commit 32 Which of the following refers to the visibility of variables in one part of a program to another part of the same program? (A) Scope (B) Memory (C) Address (D) Accessibility 33 Identify the package manager for installing Python packages, or modules. a. Matplotlib b. PIP c. plt.show() d. python package 34 SQ Lite falls under which database system? (A) Flat file database system (B) Relational Database system (C) Hierarchical database system (D) Object oriented Database system 35 Which of the following feature is used to represent data and information graphically? a. Data List b. Data Tuple c. Classes and Objects d. Data Visualization 36 Which of the following is a string used to terminate lines produced by writer()method csv module? (A) Line Terminator (B) Enter key (C) Form feed (D) Data Terminat 37 Which of the following defines what an object can do? (A) Operating System (B) Compiler (C) Interface (D) Interpreter 38 Making some changes in the data of the existing file or adding more data is called (A)Editing (B) Appending (C)Modification (D) Alteration 39 Who is called Father of Relational Database from the following? a) Chris Date b) Hugh Darween c) Edgar Frank Codd d) Edgar Frank Cadd 40 The module which allows you to interface with the Windows operating system is (A) OS module (B) sys module (c) csv module (d) getopt module 41 The keys in Python, dictionary is specified by (a) = (b) ; (c) + (d) : 42 Which of the following is called the master table? (A) sqlite_master (B) sql_master (C) main_master (D) master_main 43 Which of the following class declaration is correct? (a) class class_name (b) class class_name<> (c) class class_name: (d) class class_name[ ] 44 Which of the following is a control structure used to traverse and fetch the records o the database? (A) Pointer (B) Key (C) Cursor (D) Insertion point 45 Which of the following is an RDBMS? a) Dbase b) Foxpro c) Microsoft Access d) Microsoft Excel 46 getopt() will return an empty array if there is no error in splitting strings to (A) argv variable (B) opt variable (c)args variable (d) ifile variable 47 Which of the following is the private class variable? (a) __num (b) ##num (c) $$num &&num 48 Importing C++ program in a Python program is called (A) wrapping (B) Downloading (C) Interconnecting (D) Parsing 49 The command to delete a table including the structure is a. DROP b. DELETE c. DELETE ALL d. ALTER TABLE 50 Which of the following creates an object which maps data to a dictionary? (A) listreader() (B) reader() (C) tuplereader() (D) DictReader ()