0% found this document useful (0 votes)
94 views19 pages

12CS EM OneMarks Without Answers

Uploaded by

ssekardharshan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views19 pages

12CS EM OneMarks Without Answers

Uploaded by

ssekardharshan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

என்றும் மாணவர்கள் நலனில்

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

..1.. A. PRABHAKAR - 9442979144


2. DATA ABSTRACTION
Choose the best answer: a) Pairs b) Triplet c) Single d) Quadrat
1. Which of the following functions that build the 5. How many ways are used to access the list
abstract data type? element?
(A) Constructors (B) Destructors a) 3 b) 2 c) 5 d) 4
(C) recursive (D) Nested 6. The expansion of ADT is
2. Which of the following functions that retrieve a) Built-in datatype b) Derived datatype
information from the data type? c) Concrete datatype d) Abstract Data Type
(A) Constructors (B) Selectors 7. The expansion of CDT is
(C) recursive (D )Nested a) Built-in datatype b) Derived datatype
3. The data structure which is a mutable ordered c) Concrete Data Type d) Abstract Data Type
sequence of elements is called 8. To facilitate data abstraction, you will need to
(A) Built in (B) List create ______ types of functions.
(C) Tuple (D) Derived data a) 3 b) 2 c) 5 d) 4
4. A sequence of immutable objects is called 9. Which of the following creates List expressions?
(A) Built in (B) List a) ( ) b) [ ] c) < > d) { }
(C) Tuple (D) Derived data 10. Which of the following constructs Tuples
5. The data type whose representation is known are expressions?
called a) ( ) b) [ ] c) < > d) { }
(A) Built in datatype (B) Derived datatype 11. We are using here a powerful strategy for
(C) Concrete datatype (D) Abstract datatype designing programs:
6. The data type whose representation is unknown a) Abstraction b) Wishful thinking
are called c) Constructors d) Pairs
(A) Built in datatype (B) Derived datatype 12. List is constructed by placing expressions within
(C) Concrete datatype (D) Abstract datatype square brackets separated by
7. Which of the following is a compound structure? a) Period(.) b) Colon(:)
(A) Pair (B) Triplet (C) single (D) quadrat c) Semicolon(;) d) Comma(,)
8. Bundling two values together into one can be 13. Identify the correct list usage from the following:
considered as i. LIST[10,20] ii. LIST(10,20)
(A) Pair (B) Triplet (C) single (D) quadrat iii. LIST[(0,10),(1,20)] iv. LIST{10,20}
9. Which of the following allow to name the various a) i Only b) i, ii Only
parts of a multi-item object? c) i, iii Only d) i, ii, iii, iv
(A) Tuples (B) Lists 14. Which of the following is used to represent multi-
(C) Classes (D) quadrat part objects where each part is named?
10. Which of the following is constructed by placing a) Class b) Function
expressions within square brackets? c) Structure d) Object
(A) Tuples (B) Lists (C) Classes (D) quadrats
ADDITIONAL QUESTIONS
1. _______ provides modularity.
a) Abstraction b) Constructor
c) Recursion d) Structures
2. Splitting a program into many modules is called
a) Control Flow b) Looping
c) Abstraction d) Modularity
3. Which of the following are the representations for
“Abstract Data Types”?
a) Object b) Classes
c) Functions d) Inheritance
4. Which of the following is a compound structure?

..2.. A. PRABHAKAR - 9442979144


3. SCOPING
Choose the best answer: ADDITIONAL QUESTIONS
1. Which of the following refers to the visibility of 1. The duration for which a variable is alive is called
variables in one part of a program to another part its
of the same program? a) Scope time b) end time
(A) Scope (B) Memory c) life time d) variable time
(C) Address (D) Accessibility 2. Scope refers to the visibility of
2. The process of binding a variable name with an a) variables b) parameters
object is called ______ c) functions d) all of these
(A) Scope (B) Mapping 3. Which are composed of one or more
(C) late binding (D) early binding independently developed modules?
3. Which of the following is used in programming a) Access control b) Encapsulation
languages to map the variable and object? c) Programs d) Data types
(A) :: (B) := 4. It is a fundamental concept in security that
(C) = (D) == minimizes risk to the object.
4. Containers for mapping names of variables to a) Access control b) Encapsulation
objects is called ______ c) Inheritance d) Data types
(A) Scope (B) Mapping 5. In terms of hierarchy, the scope with highest
(C) Binding (D) Namespaces priority is
5. Which scope refers to variables defined in current a) Local b) Enclosed c) Global d) Built-in
function? 6. In terms of hierarchy, the scope with lowest
(A) Local Scope (B) Global scope priority is
(C) Module scope (D) Function Scope a) Local b) Enclosed c) Global d) Built-in
6. The process of subdividing a computer program 7. Always, a function will first look up for a variable
into separate sub-programs is called______ name in its
(A) Procedural Programming a) local scope b) Enclosed scope
(B) Modular programming c) Global scope d) Built-in scope
(C) Event Driven Programming 8. Which contain instructions, processing logic&data?
(D) Object oriented Programming a) Scope b) Object c) Modules d) Interface
7. Which of the following security technique that 9. Which of the following can be separately compiled
regulates who can use resources in a computing and stored in a library?
environment? a) Programs b) Scope c) Namespace d) Modules
(A) Password (B) Authentication 10. Which of the following members of a class are
(C) Access control (D) Certification denied access from the outside of class?
8. Which of the following members of a class can be a) private b) public c) protected d) All of these
handled only from within the class? 11. The members that are accessible from outside the
(A) Public members (B) Protected members class is
(C) Secured members (D) Private members a) private b) public c) protected d) All of these
9. Which members are accessible from outside the 12. The arrangement of private instance variables and
class? public methods ensures the principle of
(A) Public members (B) Protected members a) Data Encapsulation b) Inheritance
(C) Secured members (D) Private members c) Polymorphism d) All of these
10. The members that are accessible from within the 13. The members accessible from within the class and
class and are also available to its subclasses is are also available to its sub-classes is
called ______ a) private b) public c) protected d) All of these
(A) Public members (B) Protected members 14. The symbol prefixed with the variable to indicate
(C) Secured members (D) Private members protected and private access specifiers is
a) Single underscore b) Double underscore
c) (a) or (b) d) Backslash

..3.. A. PRABHAKAR - 9442979144


4. ALGORITHMIC STRATEGIES
Choose the best answer: 10. The Θ notation in asymptotic evaluation
1. The word comes from the name of a Persian represents
mathematician Abu Ja’far Mohammed ibn-i Musa (A) Base case (B) Average case
al Khowarizmi is called? (C) Worst case (D) NULL case
(A) Flowchart (B) Flow 11. If a problem can be broken into subproblems which
(C) Algorithm (D) Syntax are reused several times, the problem possesses
2. From the following sorting algorithms which which property?
algorithm needs the minimum number of swaps? (A) Overlapping subproblems
(A) Bubble sort (B) Quick sort (B) Optimal substructure
(C) Merge sort (D) Selection sort (C) Memoization
3. Two main measures for the efficiency of an (D) Greedy
algorithm are 12. In dynamic programming, the technique of storing
(A) Processor and memory the previously calculated values is called?
(B) Complexity and capacity (A) Saving value property
(C) Time and space (B) Storing value property
(D) Data and space (C) Memoization
4. The algorithm that yields expected output for a (D) Mapping
valid input is called as ADDITIONAL QUESTIONS
(A) Algorithmic solution 1. A finite set of instructions to accomplish a particular
(B) Algorithmic outcomes task is called
(C) Algorithmic problem (a) Flow chart (b) Algorithm
(D) Algorithmic coding (c) Pseudo code (d) Walkthrough
5. Which of the following is used to describe the 2. The way of defining an algorithm is called
worst case of an algorithm? (a) Algorithmic procedure (b) Algorithmic definition
(A) Big A (B) Big S (C) Big W (D) Big O (c) Algorithmic function (d) Algorithmic strategy
6. Big  is the reverse of 3. An algorithm that yields expected output for a valid
(A) Big O (B) Big  (C) Big A (D) Big S input is called
7. Binary search is also called as (a) Problem solving (b) Derivations
(A) Linear search (B) Sequential search (c) Algorithmic solution (d) None of the above
(C) Random search (D) Half-interval search 4. The efficiency of which state can be expressed as
8. The Θ notation in asymptotic evaluation O(n)?
represents (a) Average case (b) Best case
(A) Base case (B) Average case (c) Worst case (d) NULL case
(C) Worst case (D) NULL case 5. The efficiency of __ state can be expressed as O(1)?
9. The Θ notation in asymptotic evaluation (a) Average case (b) Best case
represents (c) Worst case (d) NULL case
(A) Base case (B) Average case 6. Linear search is also called as
(C) Worst case (D) NULL case (a) Continuous search (b) Ordered search
15. By default, all members in a python class are (c) Binary search (d) Sequential search
a) private b) public 7. Half – interval search algorithm is also called as
c) protected d) All of these (a) Linear search (b) Binary search
16. By default, all members in C++ and Java class are (c) Continuous search (d) Ordered search
a) private b) public
c) protected d) All of these

..4.. A. PRABHAKAR - 9442979144


5. PYTHON – VARIABLES AND OPERATORS
Choose the best answer: 3. In how many ways python programs can be
1. Who developed Python? written?
(A) Ritche (B) Guido Van Rossum (a) 1 (b) 2 (c) 3 (d) 4
(C) Bill Gates (D) Sunder Pitchai
4. All data values in Python are
2. The Python prompt indicates that Interpreter is
(a) class (b) object (c) data type (d) function
ready to accept instruction.
5. Python files are by default saved with extension
(A) >>> (B) <<< (C) # (D) <<
(a) .pyth (b) .python (c) .pyt (d) .py
3. Which of the following shortcut is used to create
6. Expand : IDLE
new Python Program?
(a) Integrated Device Learning Editor
(A) Ctrl + C (B) Ctrl + F (C) Ctrl + B (D) Ctrl + N
(b) Internal Development Loading Environment
4. Which of the following character is used to give
(c) Integrated Development Learning Environment
comments in Python Program?
(d) Internal Drive Loaded Environment
(A) # (B) & (C) @ (D) $
7. Which command is used to execute python script?
5. This symbol is used to print more than one item on
(a) Run → Run Module
a single line.
(b) File → Run Module
(A) Semicolon(;) (B) Dollor($)
(b) Shell → RunModule
(C) comma(,) (D) Colon(:)
(d) Terminal → RunModule
6. Which of the following is not a token?
8. To run the Python script by pressing the key
(A) Interpreter (B) Identifiers
(a) F2 (b) F5 (c) F7 (d) F10
(C) Keyword (D) Operators
9. input ( ) accepts all data as ____ but not as
7. Which of the following is not a Keyword in Python?
numbers.
(A) break (B) while
(a) digits (b) strings (c) character (d) None
(C) continue (D) operators
10. The function used to convert string data as integer
8. Which operator is also called as Comparative
explicitly is
operator?
(a) int() (b) integer() (c) num() (d) digit()
(A) Arithmetic (B) Relational
11. In Python which of the following is used to indicate
(C) Logical (D) Assignment
blocks of codes for class, function or body of the
9. Which of the following is not Logical operator?
loops and block of selection command?
(A) and (B) or
(a) Spaces (b) Tabs
(C) not (D) Assignment
(c) Both a) and b) (d) Empty Line
10. Which operator is also called as Conditional
operator? 12. Which separation is necessary between tokens?
(A) Ternary (B) Relational (a) Whitespace (b) dot
(C) Logical (D) Assignment (c) tab (d) All of these
ADDITIONAL QUESTIONS 13. It is an invalid identifier.
1. The Python language was developed by Guido van (a) 12Name (b) name
Rossum of the National Research Institute of (c) totalmark (d) num
Mathematical and Computer Science (CWI) in 14. Which operator is called a comparative operator?
which country? (a) = (b) == (c) += (d) //
(a) Philippines (b) Saudi Arabia 15. Which operator is called assignment operator?
(c) Netherland (d) Australia (a) = (b) == (c) ** (d) //
8. The algorithm uses the ‘Divide and Conquer’ 16. What is the output for the following code?
technique is >>> 5 + 50 * 10
(a) Insertion sort (b) Bubble sort a) 550 (b) 55 (c) 505 (d) 15
(c) Linear search (d) Binary search 17. Octal literals are preceded with
2. Python was released in the year (a) 0x (b) 0o (c) 0h (d) 0i
(a) 1990 (b) 1991
(c) 1992 (d) 1993

..5.. A. PRABHAKAR - 9442979144


18. What is the output of the following code? 22. What is the output for the following code?
a =100 >>> a=97
b=10 >>> b=35
print(a/b) >>> a>b or a==b
(a) 10 (b) 10.0 (c) 10.5 (d) 3 (a) True (b) False (c) 0 (d) 1
19. The output for the following line is 23. What is the output for the following code?
print(“\” Python \””) >>> a=97
(a) Python (b) ‘Python’ >>> b=35
(c) “Python” (d) “’ Python”’ >>> not (a>b and a==b)
20. What is the output for the following code? (a) True (b) False (c) 0 (d) 1
>>> x = 10 24. What is the output for the following code?
>>> y = 20 a, b = 30, 20
>>> print(“The Sum is : “,x+y) min = a if a < b else b
(a) 30 (b) the sum is 30 print(min)
(c) The Sum is 30 (d) The Sum is : 30 (a) 20 (b) 30 c) True d) False
21. What is the output of the following code? 25. What is the output for the following code?
a=100 x = 1 + 3.14j
b=30 print(x.imag)
c=a//b (a) 1+3.14j (b) 1 (c) 3.14 (d) 3.14j
print(c)
(a) 10 (b) 10.0 (c) 10.5 (d) 3
6. CONTROL STRUCTURES
Choose the best answer: 7. What is the output of the following snippet?
1. How many important control structures are there T=1
in Python? while T:
(A) 3 (B) 4 (C) 5 (D) 6 print(True)
2. elif can be considered to be abbreviation of break
(A) nested if (B) if..else (A) False (B) True (C) 0 (D) 1
(C) else if (D) if..elif 8. Which punctuation should be used in the blank?
3. What plays a vital role in Python programming? if <condition>_
(A) Statements (B) Control statements-block 1
(C) Structure (D) Indentation else:
4. Which statement is generally used as a statements-block 2
placeholder? (A) ; (B) : (C) :: (D) !
(A) continue (B) break (C) pass (D) goto 9. Which of the following is known as definite loop?
5. The condition in the if statement should be in the (A) do..while (B) while (C) for (D) if..elif
form of 10. Which amongst this is not a jump statement?
(A) Arithmetic or Relational expression (A) for (B) pass (C) continue (D) break
(B) Arithmetic or Logical expression ADDITIONAL QUESTIONS
(C) Relational or Logical expression 1. A program statement that causes a jump of control
(D) Arithmetic from one part of the program to another is called
6. What is the output of the following snippet? (a) statements (b) Control statements
i=1 (c) Blocks (d) Scope
while True: 2. Which of the following is not an alternative or
if i%3 ==0: branching statement in Python?
break (a) simple if (b) if..else
print(i,end='') (c) if..elif ..else (d) while
i +=1
(A) 12 (B) 123 (C) 1234 (D) 124
..6.. A. PRABHAKAR - 9442979144
3. Which of the following terminates the loop 11. What is the output for the following code?
containing it? i = 10
(a) break (b) continue (c) pass (d) jump while (i<=15):
4. The statement which is used to skip the remaining print(i,end=’\t’)
part of the loop and start with next iteration is i+=1
(a) break (b) continue (c) pass (d) jump else:
5. Which of the following is a null statement in print(i)
Python? (a) 10 11 12 13 14 15 16 (b) 11 13 15 16
(a) break (b) continue (c) pass (d) null (c) 10 12 14 16 (d) 10 12 14 15 16
6. The statement used as a placeholder is 12. What is the output for the following code?
(a) break (b) continue (c) pass (d) null for word in "Computer Science":
7. What is the output for the following code? if word=="e":
i = 10 break
print(word, end='')
while (i<=15):
(a) Computr Scinc (b) Compute
print(i,end=’\t’)
(c) Comput (d) Computer Scinc
i+=2
13. What is the output for the following code?
(a) 10 11 12 13 14 15 (b) 11 13 15
for word in "Computer Science":
(c) 10 12 14 (d) 10 12 14 15
if word=="e":
8. What is the stop value for the following statement?
continue
range(30)
print(word, end='')
(a) 0 (b) 1 (c) 30 (d) 29
(a) Computr Scinc (b) Compute
9. What is the start value for the following
(c) Comput (d) Computer Scinc
statement?
14. What is the output for the following code?
range(20)
i=1
(a) 0 (b) 1 (c) 20 (d) 19 while True:
10. What is the output for the following code? if i%5==0:
for i in range(2,10,2): break
print(i,end=’ ‘) print(i,end=' ')
(a) 2 4 6 8 10 (b) 2 4 6 8 i+=1
(c) 2 4 6 (d) 1 2 4 6 8 (a) 1 2 (b) 1 2 3 (c) 1 2 3 4 5 (d) 1 2 3 4
7. PYTHON FUNCTIONS
Choose the best answer: 6. Which function is called an anonymous un-named
1. A named blocks of code that are designed to do function
one specific job is called as (A) Lambda (B) Recursion
(A) Loop (B) Branching (C) Function (D) define
(c) Function (D) Block 7. Which of the following keyword is used to begin
2. A Function which calls itself is called as the function block?
(A) Built-in (B) Recursion (A) define (B) for (C) finally (D) def
(C) Lambda (D) return 8. Which of the following keyword is used to exit a
3. Which function is called an anonymous un-named function block?
function (A) define (B) return (C) finally (D) def
(A) Lambda (B) Recursion 9. While defining a function which of the following
(C) Function (D) define symbol is used.
4. A named blocks of code that are designed to do (A) ; (semicolon) (B) . (dot)
one specific job is called as (C) : (colon) (D) $ (dollar)
(A) Loop (B) Branching (c) Function (D) Block 10. In which arguments the correct positional order is
5. A Function which calls itself is called as passed to a function?
(A) Built-in (B) Recursion (A) Required (B) Keyword
(C) Lambda (D) return (C) Default (D) Variable-length
..7.. A. PRABHAKAR - 9442979144
11. Read the following statement and choose the 9. The symbol used to define arguments in Variable –
correct statement(s). length argument is
(I) In Python, you don’t have to mention the a) # b)  c) $ d) :
specific data types while defining function. 10. The following code is an example for
(II) Python keywords can be used as function def sample(b,c,a):
name. print(“Welcome”)
(A) I is correct and II is wrong return
(B) Both are correct sample(a,b,c)
(C) I is wrong and II is correct (D) Both are wrong a) Keyword arguments
12. Pick the correct one to execute the given b) Variable – length argument
statement successfully. c) Default argument
if ____ : d) Required argument
print(x, " is a leap year") 11. What is the output of the following code?
(A) x%2=0 (B) x%4==0 (C) x/4=0 (D) x%4=0 def loc():
13. Which of the following keyword is used to define y = “Local”
the function testpython(): ? loc()
(A) define (B) pass (C) def (D) while print(y)
ADDITIONAL QUESTIONS a) Local b) y c) y = “Local” d) Error
1. It avoids repetition and makes high degree of code 12. What is the output of the following code?
reusing. def hello():
(a) Function (b) Loop (c) Branching (d) Jumping return
2. Basically, we can divide functions into _____ types. print(hello())
(a) 1 (b) 2 (c) 3 (d) 4 a) hello – Python b) Hello – Python
3. How many types of arguments are used by c) None d) hello
functions in Python? 13. What is the output of the following code:
(a) 1 (b) 2 (c) 3 (d) 4 def hello():
4. Which of the following statement indicates end of print(“hello – Python”)
the function? return
(a) Function prototype (b) Function name print(hello())
(c) end (d) return a) hello – Python b) Hello – Python
5. The variables used in the function definition are None None
called c) None d) None
(a) Parameters (b) Arguments hello – Python python
(c) Identifiers (d) Constants 14. What is the output of the following code?
6. The values we pass to the function parameters are def add(a,b=3,c):
called return a+b+c
a) Parameters b) Arguments print(add(5,10,15))
c) Identifiers d) Constants a) 30 b) 23 c) 10 d) Error
7. Which of the following allows you to put 15. What is the output of the following code?
arguments in improper order? def add(a,b=3,c=2):
a) Keyword arguments return a+b+c
b) Variable – length argument print(add(5,10,15))
c) Default argument a) 30 b) 23 c) 10 d) Error
d) Required argument 16. What is the output of the following code?
8. An argument that takes a default value if no value Sum=lambda a1,a2:a1+a2
is provided in the function call is print(Sum(20,40))
a) Keyword arguments print(Sum(-20,40))
b) Variable – length argument a) 60 b) 20 c) 240 d) 60
c) Default argument d) Required argument -60 -20 20 20
..8.. A. PRABHAKAR - 9442979144
17. What is the output of the following code? 23. What is the output of the following code?
c=1 x=0
def add(): def add():
c=c+2 global x
print(c) x=x+5
add() print(x)
a) 1 b) 3 c) 2 d) Error add()
18. Default recursive calls in Python is print(x)
a) 1000 b) 2000 c) 1100 d) 2200 a) 5 b) 10 c) 5 d) Error
19. In Python, anonymous functions are defined using 10 10 5
the keyword, 24. What is the output of the following code?
a) def b) rec c) lambda d) let x=5
20. Which of the following keyword is necessary to def loc():
modify the value of global variable inside the x = 10
function? print(x)
a) glob b) global c) glopal d) public loc()
21. What is the output of the following code? print(x)
x = -18.3 a) 5 b) 10 c) 5 d) 10
print(round(x)) 10 10 5 5
a) 18 b) -18 c) -18.5 d) -19
22. What is the output of the following statement?
eval(‘25*2-5*4’)
a) -300 b) 180 c) 30 d) -450
8. STRINGS AND STRING MANIPULATION
Choose the best answer: (A) index value of slide operation
1. Which of the following is the output of the (B) first argument of slice operation
following python code? (C) second argument of slice operation
str1="TamilNadu" (D) third argument of slice operation
print(str1[::-1]) 8. Which of the following formatting character is used
(A) Tamilnadu (B) Tmlau to print exponential notation in upper case?
(C) udanlimaT (D) udaNlimaT (A) %e (B) %E (C) %g (D) %n
2. What will be the output of the following code? 9. Which of the following is used as placeholders or
str1 = "Chennai Schools" replacement fields which get replaced along with
str1[7] = "-" format( ) function?
(A) Chennai-Schools (B) Chenna-School (A) { } (B) < > (C) ++ (D) ^^
(C) Type error (D) Chennai 10. The subscript of a string may be:
3. Which of the following operator is used for (A) Positive (B) Negative
concatenation? (C) Both (A) and (B) (D) Either (A) or (B)
(A) + (B) & (C) * (D) = Additional QUESTIONS
4. Defining strings within triple quotes allows 1. Which of the following is used to handle an array
creating: of characters?
(A) Single line Strings (B) Multiline Strings a) Word b) Character c) String d) Letters
(C) Double line Strings (D) Multiple Strings 2. Index values are otherwise called as
5. Strings in python: a) Size b) Length
(A) Changeable (B) Mutable c) Superscript d) Subscript
(C) Immutable (D) flexible 3. The positive subscript of a string always starts from
6. Which of the following is the slicing operator? a) 0 b) 1 c) 2 d) 3
(A) { } (B) [ ] (C) < > (D) ( ) 4. The negative subscript of a string starts from
7. What is stride? a) 0 b) 1 c) -1 d) 3
..9.. A. PRABHAKAR - 9442979144
5. The operator used to append a new string with an 13. What is the output for the following code?
existing string is str=”Computer”
a) + b) += c) ++ d) * print(str[0:5])
6. The operator used to display a string in multiple a) Compute b) Compu
number of times is c) Computer d) Comput
a) + b) & c) * d) ++ 14. What is the output for the following code?
7. The string formatting operator is str=”Cat”
a) % b) += c) ++ d) <> str[0]=”B”
8. The function which allows you to change all print(str)
occurrences of a particular character in a string is a) Bat b) Cat c) CaB d) Error
a) modify() b) change() 15. Stride is a ________ argument in slicing operation.
c) replace() d) update() a) first b) second c) third d) fourth
9. Which of the following function returns the 16. What is the output for the following code?
number of characters in a string? str=”Computer”
a) len(str) b) str.len() print(str[::2])
c) length(str) d) str.length() a) Comue b) Cmue c) mue d) Coptr
10. The function which returns the number of 17. What is the output for the following code?
substrings occurs within the given range is str1 = "Welcome to learn Python"
a) count() b) find() print(str1[::-2])
c) search() d) None of these a) o b) otPnalo mce
11. What is the output for the following code? c) nhy re teolW d) e
str = “School” 18. What is the output for the following code?
print(str[2]) str1=”Welcome”
a) c b) o c) h d) l print(str1.center(15,’*’))
12. What is the output for the following code? a) ***Welcome*****
str = “School” b) *******Welcome*******
print(str[-2]) c) ****Welcome****
a) c b) o c) h d) l d) ****welcome****

9. LISTS, TUPLE, SETS AND DICTIONARY


Choose the best answer: 6. Which of the following Python function can be
1. Pick odd one in connection with collection data used to add more than one element within an
type existing list?
(A) List (B) Tuple (A) append() (B) append_more()
(C) Dictionary (D) Loop (C) extend() (D) more()
2. Let list1=[2,4,6,8,10], then print(List1[-2]) will 7. What will be the result of the following Python
result in code?
(A) 10 (B) 8 (C) 4 (D) 6 S=[x**2 for x in range(5)]
3. Which function is used to count the number of print(S)
elements in a list? (A) [0,1,2,4,5] (B) [0,1,4,9,16]
(A) count() (B) find() (C) [0,1,4,9,16,25] (D) [1,4,9,16,25]
(C) len() (D) index() 8. What is the use of type() function in python?
4. If List=[10,20,30,40,50] then List[2]=35 will result (A) To create a Tuple
(A) [35,10,20,30,40,50] (B) 10,20,30,40,50,35] (B) To know the type of an element in tuple.
(C) [10,20,35,40,50] (D) [10,35,30,40,50] (C) To know the data type of python object.
5. If List=[17,23,41,10] then List.append(32) will (D) To create a list.
result 9. Which of the following statement is not correct?
(A) [32,17,23,41,10] (B) [17,23,41,10,32] (A) A list is mutable
(C) [10,17,23,32,41] (D) [41,32,23,17,10] (B) A tuple is immutable.
..10.. A. PRABHAKAR - 9442979144
(C) The append() function is used to add an 9. What is the output for the following code?
element. List = [10,20,30,[40,50,60],70]
(D) The extend() function is used in tuple to add print(len(List))
elements in a list. a) 7 b) 6 c) 5 d) 3
10. Let setA={3,6,9}, setB={1,3,9}. What will be the 10. Which of the following represents A={10,20,30 }?
result of the following snippet? a) List b) Tuple c) Dictionary d) Set
print(setA|setB) 11. What is the output for the following code?
(A) {3,6,9,1,3,9} (B) {3,9} li = list(range(2,11,2))
(C) {1} (D) {1,3,6,9} print(li)
11. Which of the following set operation includes all a) [1,3,5,7,9] b) [2,4,6,8,10]
the elements that are in two sets but not the one c) [2,4,6,8] d) [1,2,3,4,5,6,7,8,9,10]
that are common to two sets? 12. What is the output for the following code?
(A) Symmetric difference (B) Difference S=[x**2 for x in range(1,11)]
(C) Intersection (D) Union print(S)
12. The keys in Python, dictionary is specified by a) [1,2,3,4,5,6,7,8,9,10] b) [1,2,3,4,5,6,7,8,9,10,11]
(A) = (B) ; (C)+ (D) : c) [1,4,9,16,25,36,49,64,81,100]
ADDITIONAL QUESTIONS d) [2,4,6,8,10]
1. Which of the following is not a “sequence data 13. What is the output for the following code?
type”? mylist=[36,12,12]
a) List b) Tuples c) Set d) String x=mylist.index(12)
2. It is an ordered collection of values enclosed within print(x)
square brackets [ ]. a) 0 b) 1 c) -1 d) 2
a) Tuples b) Set c) List d) Dictionary 14. Which of the following represents
3. Which of the following consists of several values A={roll:101,age:25,name:'ABC' }?
separated by comma and enclosed within (a) List b) Tuple c) Dictionary d) Set
parentheses? 15. What is the output for the following code?
a) Tuples b) Set c) List d) Dictionary >>> S1={1,2,2,’A’,3.14}
4. Which of the following is a mutable and an unordered >>> print(S1)
collection of elements without duplicates? a) {1,2,’A’,3.14} b) {1,2,2,’A’,3.14}
a) List b) Tuple c) Set d) Dictionary c) Error d) No Output
5. Which type stores a key along with its element? 16. L=[2,4,7,11,15] – the negative index represents 11
a) List b) Tuple c) Set d) Dictionary is
6. Which of the following is the correct way of a) -4 b) -1 c) -3 d) -2
creating list? 17. L=[2,4,7,11,15] - the positive index represents 11
I. Marks = [10,20,30,40] is
II. Fruits=[“Apple”,”Orange”,”Mango”,”Banana”] a) 4 b) 3 c) 2 d) 0
III. Mylist = [] 18. Which of the following function is used to know the
IV. Data = [“Welcome”, 3.14,10,[5,10]] data type of a python object?
a) I, II Only b) I, II, III Only a) data() b) type() c) format() d) datatype()
c) All are wrong d) All are correct 19. The correct way of declaring a tuple with one
7. What is the output for the following code? element is
Marks = [10,23,41,75] a) tup=(10,) b) tup=(10.) c) tup=(10-) d) tup=(10);
print(Marks[-3]) 20. The function used to delete all elements in a
a) 10 b) 23 c) 41 d) 75 dictionary is
8. What is the output for the following code? a) del() b) clear() c) delete() d) clean()
>>> Dict = {x : 2 * x for x in range(1,4)}
a) {1:2,2:4,3:9,4:16,5:25} b) {1:2,2:4,3:6}
c) {1:2,2:4,4:16} d) {}

..11.. A. PRABHAKAR - 9442979144


10. PYTHON CLASSES AND OBJECTS
Choose the best answer: ADDITIONAL QUESTIONS
1. Which of the following are the key features of an 1. Which of the following is not an object-oriented
Object-Oriented Programming language? programming language?
(A) Constructor and Classes a) C b) C++ c) Python d) Java
(B) Constructor and Object 2. The key features of Object-Oriented Programming
(C) Classes and Objects are
(D) Constructor and Destructor a) Classes b) Objects
2. Functions defined inside a class: c) a) and b) d) Structures
(A) Functions (B) Module 3. Which one is referred as instance of a class?
(C) Methods (D) section a) Class b) Object c) Methods d) Members
3. Class members are accessed through which 4. In Python, by default the variables which are
operator? defined inside the class is
(A) & (B) . (C) # (D) % a) Private b) Public c) Protected d) Hidden
4. Which of the following method is automatically 5. Any class member can be accessed by using object
executed when an object is created? with a ____ operator.
(A) __object__( ) (B) __del__( ) a) Semicolon(;) b) Hash(#)
(C) __func__( ) (D) __init__( ) c) Colon(:) d) Dot(.)
5. A private class variable is prefixed with 6. Which of the following will act as a constructor?
(A) __ (B) && (C) ## (D) ** a) _ _init b) _ _self_ _ c) _ _del_ _ d) _ _init_ _
6. Which of the following method is used as 7. Which of the following is used to initialize the class
destructor? variables?
(A) __init__( ) (B) __dest__( ) a) Class b) Object
(C) __rem__( ) (D) __del__( ) c) Constructor d) Destructor
7. Which of the following class declaration is correct? 8. In Python, a class is defined by using the keyword
(A) class class_name (B) class class_name<> a) this b) self c) class d) def
(C) class class_name: (D) class class_name[ ] 9. In Python, every class has a unique name followed by
8. Which of the following is the output of the a) Semicolon(;) b) Period(.)
following program? c) Colon(:) d) None
class Student: 10. The class method must have the first parameter
def __init__(self, name): named as
self.name=name a) this b) self c) class d) def
print (self.name) 11. A variable prefixed with a double underscore
S=Student(“Tamil”) becomes
(A) Error (B) Tamil (C) name (D) self a) Private b) Public c) Protected d) Hidden
9. Which of the following is the private class variable? 12. Which of the following variable can be accessed
(A) __num (B) ##num only within the class?
(C) $$num (D) &&num a) Private b) Public c) Protected d) Hidden
10. The process of creating an object is called as:
(A) Constructor (B) Destructor
(C) Initialize (D) Instantiation

..12.. A. PRABHAKAR - 9442979144


11. DATABASE CONCEPTS
Choose the best answer: a) Relation b) Table c) File d) All of these
1. What is the acronym of DBMS? 8. This model is mainly used in IBM Main Frame
(A) DataBase Management Symbol computers.
(B) Database Managing System a) Hierarchical Model b) Object Model
(C) DataBase Management System c) Entity Relationship Model d) Relational Model
(D) DataBasic Management System 9. The relational database model was first proposed
2. A table is known as by E.F.Codd in
(A) tuple (B) attribute (C) relation (D) entity a) 1960 b) 1970 c) 1980 d) 1990
3. Which database model represents parent-child 10. ER Model was developed by Chen in
relationship? a) 1966 b) 1970 c) 1972 d) 1976
(A) Relational (B) Network 11. In ER Model, the entities are represented by
(C) Hierarchical (D) Object a) Rectangle b) Ellipse c) Diamond d) Circle
4. Relational database model was first proposed by 12. In ER Model, the attributes are represented by
(A) E F Codd (B) E E Codd a) Rectangle b) Ellipse c) Diamond d) Circle
(C) E F Cadd (D) E F Codder 13. In ER Model, ________ represents the relationship
5. What type of relationship does hierarchical model in ER diagrams.
represents? a) Rectangle b) Ellipse c) Diamond d) Circle
(A) one-to-one (B) one-to-many 14. RDBMS Stands for
(C) many-to-one (D) many-to-many a) Rotational Database Management System
6. Who is called Father of Relational Database from b) Real Database Management System
the following? c) Relational Database Management System d)
(A) Chris Date (B) Hugh Darween Round Database Management System
(C) Edgar Frank Codd (D) Edgar Frank Cadd 15. In which of the following model, data is
7. Which of the following is an RDBMS? represented as a simple treelike structure?
(A) Dbase (B) Foxpro a) Hierarchical Model b) Object Model
(C) Microsoft Access (D) MS Excel c) Network Model d) Relational
8. What symbol is used for SELECT statement? 16. Database Normalization was first proposed by
(A) σ (B) Π (C) X (D) Ω a) Dr. Edgar F Codd b) Dr. Edgar E Codd
9. A tuple is also known as c) Chen d) E F Chen
(A) table (B) row (C) attribute (D) field 17. In which of the following relationship one row in a
10. Who developed ER model? table is linked with only one row in another table?
(A) Chen (B) EF Codd (C) Chend (D) Chand a) One-to-One b) One-to-Many
ADDITIONAL QUESTIONS c) Many-to-One d) Many-to-Many
1. Which are raw facts stored in a computer? 18. A student can have only one exam number is an
a) Tables b) Database c) Information d) Data example of _____ Relationship
2. Which of the following gives a meaningful a) One-to-One b) One-to-Many
information about the data? c) Many-to-One d) Many-to-Many
a) Information b) Database c) DBMS d) Tables 19. Many books in a Library are issued to many
3. How many major components are there in DBMS? students is an example for
a) 3 b) 5 c) 7 d) 4 a) One-to-One Relationship
4. A row is also known as b) One-to-Many Relationship
a) Attribute b) Tuple c) Relation d) Data c) Many-to-One Relationship
5. A column is known as d) Many-to-Many Relationship
a) Attribute b) Tuple c) Relation d) Data 20. The symbol used for Cartesian product is
6. Hierarchical model was developed by a) π b) α c) X d) *
a) Windows b) IBM c) Wipro d) Apple 21. The symbol used for PROJECT is
7. The entire collection of related data in one table is a) π b)  c) X d) ᓂ
referred as
..13.. A. PRABHAKAR - 9442979144
12. STRUCTURED QUERY LANGUAGE
Choose the best answer:
1. Which commands provide definitions for creating 5. A condition applicable on a field or set of fields is
table structure, deleting relations, and modifying a) Commands b) Clauses
relation schemas. c) Constraint d) Keywords
(A) DDL (B) DML (C) DCL (D) DQL 6. EDML stands for
2. Which command lets to change the structure of a) Embedded Data Manipulation Language
the table? b) Essential Data Manipulation Language
(A) SELECT (B) ORDER BY (C) MODIFY (D) ALTER c) Embedded Data Monitoring Language
3. The command to delete a table is d) Embedded Data Manipulation Learning
(A) DROP (B) DELETE 7. Which constraint may use relational and logical
(C) DELETE ALL (D) ALTER TABLE operators for condition?
4. Queries can be generated using a) Check b) Unique c) Limit d) Assign
(A) SELECT (B) ORDER BY (C) MODIFY (D) ALTER 8. The constraint used to assign a default value for
5. The clause used to sort data in a database the field in table is
(A) SORT BY (B) ORDER BY a) Assign b) Default c) Set d) Reset
(C) GROUP BY (D) SELECT 9. Which keyword will display every row of the table
ADDITIONAL QUESTIONS without considering duplicate entries?
1. SQL stands for a) DISTINCT b) ALL c) DUPLICATE d) IN
a) Structured Question Language 10. Which command used to delete all the rows but it
b) Structured Query Language does not free the space containing the table?
c) Standard Query Language A) DELETE b) ERASE C) TRUNCATE d) DROP
d) Standard Question Language 11. Which command used to delete all the rows from
2. The original version of SQL was developed at the table, the structure remains and the space is
a) ORACLE Corporation b) IBM’s Research Centre freed?
c) Microsoft Corporation d) Google a) DELETE b) ERASE c) TRUNCATE d) DROP
3. SQL was originally called as 12. Which keyword is used to sort the data in
a) SQLite b) MySQL c) Sequel d) RSQL descending order?
4. The latest version of SQL was released in a) ASC b) DSC c) DESC d) DASC
a) 2018 b) 2004 c) 2006 d) 2008
13. PYTHON AND CSV FILES
Choose the best answer: 6. Which of the following is a string used to terminate
1. A CSV file is also known as a …. lines produced by writer()method of csv module?
(A) Flat File (B) 3D File (C) String File (D) Random File (A) Line Terminator (B) Enter key
2. The expansion of CRLF is (C) Form feed (D) Data Terminator
(A) Control Return and Line Feed 7. What is the output of the following program?
(B) Carriage Return and Form Feed import csv
(C) Control Router and Line Feed d=csv.reader(open('c:\PYPRG\ch13\city.csv'))
(D) Carriage Return and Line Feed next(d)
3. Which of the following module is provided by for row in d:
Python to do several operations on the CSV files? print(row)
(A) py (B) xls (C) csv (D) os if the file called “city.csv” contain the following
4. Which of the following mode is used when dealing details
with non-text files like image or exe files? chennai, mylapore
(A) Text mode (B) Binary mode mumbai, andheri
(C) xls mode (D) csv mode 5 A) chennai,mylapore (B) mumbai,andheri
5. The command used to skip a row in a CSV file is (C) chennai (D) chennai,mylapore
(A) next() (B) skip() mumba mumbai,andheri
(C) omit() (D) bounce()

..14.. A. PRABHAKAR - 9442979144


8. Which of the following creates an object which 4. In Python, if no mode is specified the default mode
maps data to a dictionary? _______ is used
(A) listreader() (B) reader() a) a b) w c) rt d) b
(C) tuplereader() (D) DictReader() 5. Which file mode is used to open for appending at
9. Making some changes in the data of the existing the end of the file without truncating it?
file or adding more data is called a) a b) w c) rt d) b
(A) Editing (B) Appending 6. Which file mode is used to open in binary mode?
(C) Modification (D) Alteration a) a b) w c) rt d) b
10. What will be written inside the file test.csv using 7. Which file mode is used to Open a file for updating
the following program (reading and writing)?
import csv a) a b) w c) rt d) +
D = [['Exam'],['Quarterly'],['Halfyearly']] 8. Which method will free up the resources that were
csv.register_dialect('M',lineterminator = '\n') tied with the file?
with open('c:\pyprg\ch13\line2.csv', 'w') as f: a)remove() b) delete() c) release() d) close()
wr = csv.writer(f,dialect='M') 9. A class of CSV module which helps to define
wr.writerows(D) parameters for reading and writing CSV is
f.close() a) reader() b) dialect c) writer() d) close()
(A) Exam Quarterly Halfyearly 10. The parameter used to remove whitespaces after
(B) Exam Quarterly Halfyearly the delimiter is
(C) E (D) Exam, a) removespace b) delspace
Q Quarterly, c) skipinitialspace d) delimiter
H Halfyearly 11. Which of the following method takes 1-
ADDITIONAL QUESTIONS dimensional data (one row) to write in a file?
1. Expansion of CSV a) write() b) writerow()
a) Common Separated Values c) writer() d) writerows()
b) Colon Separated Values 12. Which of the following method takes 2-
c) Condition Separated Values dimensional data (multiple rows) to write in a file?
d) Comma Separated Values a) write() b) writerow()
2. Files saved in ________ cannot be opened or c) writer() d) writerows()
edited by text editors. 13. The default value for Line terminator is
a) CSV b) EXCEL c) PYTHON d) C++ a) \n b) \r c) \l d) \n or \r
3. If the fields of data in your CSV file contain
commas, you can protect them by enclosing those
data fields in ________
a) slash (/) b) double-quote(“)
c) colon (:) d) semi-colon (;)
14. IMPORTING C++ PROGRAMS IN PYTHON
Choose the best answer: 4. A framework for interfacing Python and C++ is
1. Which of the following is not a scripting language? (A) Ctypes (B) SWIG (C) Cython (D) Boost
(A) JavaScript (B) PHP (C) Perl (D) HTML 5. Which of the following is a software design
2. Importing C++ program in a Python program is technique to split your code into separate parts?
called (A) Object oriented Programming
(A) wrapping (B) Downloading (B) Modular programming
(C) Interconnecting (D) Parsing (C) Low Level Programming
3. The expansion of API is (D) Procedure oriented Programming
(A) Application Programming Interpreter 6. The module which allows you to interface with the
(B) Application Programming Interface Windows operating system is
(C) Application Performing Interface (A) OS module (B) sys module
(D) Application Programming Interlink (c) csv module (d) getopt module
..15.. A. PRABHAKAR - 9442979144
7. getopt() will return an empty array if there is no
error in splitting strings to 4. Expansion of SWIG is
(A) argv variable (B) opt variable a) Simplified Wrapper Information Generator
(c) args variable (d) ifile variable b) Software Wrapper Interface Generator
8. Identify the function call statement in the following c) Software Wrapper Information Generator
snippet.
d) Simplified Wrapper Interface Generator
if __name__ =='__main__':
5. It is not an interface of C language?
main(sys.argv[1:])
a) Ctypes b) PythonC API
(A) main(sys.argv[1:]) (B) __name__
c) Boost d) Cython
(C) __main__ (D) argv
6. Which of the following is a scripting language?
9. Which of the following can be used for processing
a) HTML b) Ruby c) JAVA d) C++
text, numbers, images, and scientific data?
7. To clear the screen in command window use
(A) HTML (B) C (C) C++ (D) PYTHON
a) clear b) clrscr c) cls d) clean
10. What does __name__ contains?
8. Which keyword is used to import the definitions
(A) c++ filename (B) main() name
inside a module to another module?
(C) python filename (D) os module name
a) import b) getopt c) sys d) os
ADDITIONAL QUESTIONS 9. Which of the following is not a module in
1. In which language data type is not required while
Python?
declaring variable?
a) sys b) getopt c) argv d) os
a) Python b) java c) C++ d) All of these
10. The list of command-line arguments passes to the
2. A framework for interfacing C and C++ is
Python program is
a) Ctypes b) SWIG
a) sys b) getopt c) argv d) sys.argv
c) Cython d) Boost
11. A module of Python helps you to parse(split)
3. Expansion of MinGW is
command-line options and arguments is
a) Minimalist Graphics for Windows
a) OS b) getopt c) argv d) sys
b) Minimalist GNU for Windows
12. A special variable by default stores the name of the
c) Minimum Graphics for Windows
file is
d) Minimum GNU for Windows
a) __main__ b) __name__
c) __sys__ d) __getopt__

15. DATA MANIPULATION THROUGH SQL


Choose the best answer: 5. Which of the following executes the SQL command
1. Which of the following is an organized collection of to perform some action?
data? (A) execute() (B) key()
(A) Database (B) DBMS (C) cursor() (D) run()
(C) Information (D) Records 6. Which of the following function retrieves the
2. SQLite falls under which database system? average of a selected column of rows in a table?
(A) Flat file database system (A) Add() (B) SUM()
(B) Relational Database system (C) AVG() (D) AVERAGE()
(C) Hierarchical database system 7. The function that returns the largest value of the
(D) Object oriented Database system selected column is
3. Which of the following is a control structure used (A) MAX() (B) LARGE()
to traverse and fetch the records of the database? (C) HIGH() (D)MAXIMUM()
(A) Pointer (B) Key 8. Which of the following is called the master table?
(C) Cursor (D) Insertion point (A) sqlite_master (B) sql_master
4. Any changes made in the values of the record (C) main_master (D) master_main
should be saved by the command 9. The most commonly used statement in SQL is
(A) Save (B) Save As (A) cursor (B) select
(C) Commit (D) Oblige (C) execute (D) commit
..16.. A. PRABHAKAR - 9442979144
10. Which of the following keyword avoid the 4. Group functions cannot be used in ______ clause
duplicate? but can be used in HAVING clause.
(A) Distinct (B) Remove a) HAVING b) WHERE c) COUNT d) SUM
(C) Where (D) GroupBy 5. Which of the following is not a function?
ADDITIONAL QUESTIONS a) SUM() b) AVG() c) WHERE() d) COUNT()
1. Which method that returns the next number of 6. Which of the following is an aggregate function?
rows (n) of the result set? a) TOTAL() b) AVERAGE() c) WHERE() d) COUNT()
a) fetchall() b) fetchone() 7. The sqlite3 module supports _____ kinds of
c) fetchmany() d) count() placeholders
2. In Sqlite3 Which symbol is used to print the list of a) 1 b) 4 c) 3 d) 2
all elements in a single line with space? 8. Sqlite3 have the following placeholders
a) & b) * c) # d) () a) ? and /name b) / and :name
3. Which clause is used to filter data based on the c) ? and :name d) / and ?name
group functions? 9. In Python, the path of a file can be either
a) HAVING b) WHERE c) FILTER d) DISTINCT represented as
a) “/” or “//” b) “/” or “\”
c) “\\” or “:” d) “/” or “?”
16. DATA VISUALIZATION USING PYTHON: LINE CHART, PIE CHART AND BAR CHART
Choose the best answer:
1. Which is a python package used for 2D charts?
(A) matplotlib.pyplot (B) matplotlib.pip
(C) matplotlib.numpy (D) matplotlib.plt
2. Identify the package manager for Python packages,
or modules.
(A) Matplotlib (B) PIP
(C) plt.show() (D) python package
3. Which of the following feature is used to represent
data and information graphically? 7. Identify the right type of chart using the following hints.
(A) Data List (B) Data Tuple Hint 1: This chart is often used to visualize a trend
(C) Classes and Objects (D) Data Visualization in data over intervals of time.
4. ______ is the collection of resources assembled to Hint 2: The line in this type of chart is often drawn
create a single unified visual display. chronologically.
(A) Interface (B) Dashboard (A) Line chart (B) Bar chart
(C) Objects (D) Graphics (C) Pie chart (D) Scatter plot
5. Which of the following module should be imported 8. Read the statements given below. Identify the right
to visualize data and information in Python? option from the following for pie chart.
(A) csv (B) Pie chart Statement A: To make a pie chart with Matplotlib,
(C) MySQL (D) matplotlib we can use the plt. pie() function.
_______ is a type of chart which displays Statement B: The autoplt parameter allows us to
information as a series of data points connected by display the percentage value using the Python
straight line segments. string formatting.
(A) csv (B) Pie chart (A) Statement A is correct
(C) Bar Chart (D)All the above (B) Statement B is correct
The correct answer is Line Chart or Line Graph (C) Both the statements are correct
6. Read the code: (D) Both the statements are wrong
import matplotlib.pyplot as plt
plt.plot(3,2)
plt.show()
Identify the output for the above coding.
..17.. A. PRABHAKAR - 9442979144
ADDITIONAL QUESTIONS 7. Which of the following represents the frequency
1. The graphical representation of information and data is distribution of continuous variables?
a) Data Chart b) Data Visualization a) Bar chart b) Line chart
c) Data graph d) Data Monitor c) Pie chart d) Histogram
2. The representation of information in a graphic format is 8. This cross-looking button allows you to click it, and
a) Dashboard b) Infographics then click and drag your graph around.
c) Information graphics d) Box Plot a) Home button b) Pan Axis
3. A collection of resources assembled to create a c) Configure Subplots button d) Zoom button
single unified visual display is 9. This button allows you to configure various spacing
a) Dashboard b) Infographics options with your figure and plot.
c) Information graphics d) Box Plot a) Home button b) Pan Axis
4. A type of plot that shows the data as a collection of c) Configure Subplots button d) Zoom button
point is 10. ______ and _______ are the two ways to display
a) Box plot b) Line plot data in the form of a diagram.
c) Scatter plot d) pyplot a) Bar Graph b) Histogram
5. The method inside the file to display your plot is c) a) and b) d) Dashboard
a) plot.show() b) plt.show()
c) plot.open() d) plt.open()
6. Which chart shows the relationship between a
numerical variable and a categorical variable?
a) Bar chart b) Line chart
c) Pie chart d) Histogram

வாழ்த்துகளுடன்
அ. பிரபாகர்

..18.. A. PRABHAKAR - 9442979144


..19.. A. PRABHAKAR - 9442979144

You might also like