wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

TN +2 CSC - LESSON 1 TO 10 & 12

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

An SQL command used to add record in a table.

a)

Insert

b)

Create

c)

Update

d)

Add

2.

It is a DML command that is used to display record.

a)

DISPLAY

b)

STRUCTURE

c)

WHERE

d)

SELECT

3.

This symbol is placed immediately after the SELECT command to display all the fields.

a)

$

b)

%

c)

=

d)

*

4.

What is the meaning of DDL?

a)

Data Definition Language

b)

Database definition Language

c)

Data Definition Link

d)

Data Division Langauge

5.

(a)   SQL command to view structure of the table named ‘STUDENT ‘.

6.

select all DML commands are:-

a)

INSERT

b)

UPDATE

c)

DELETE

d)

GRANT

7.

Write SQL command to create the given table.

4 lines
8.

A private class variable is prefixed with

a)

(a) __

b)

(b) &&

c)

(c) ##

d)

(d) **

9.

Which of the following class declaration is correct? (

a)

(a) class class_name[ ]

b)

(b) class class_name:

c)

c) class class_name

d)

(d) class class_name<>

10.

setA={3,6,9}, setB={1,3,9}

What will be the result of the following snippet?

a)

{1,3,6,9}

b)

{1}

c)

{3,9}

d)

{3,6,9,1,3,9}

11.

Let list1=[2,4,6,8,10], then print(List1[-2]) will result in

a)

10

b)

4

c)

6

d)

8

12.

Which of the following formatting character is used to print exponential notation in upper case?

a)

%E

b)

%e

c)

%g

d)

%n

13.

What will be the output of the following code?

a)

(a) Chennai-Schools

b)

(b) Chenna-School

c)

(c) Type error

d)

(D) Chennai

14.

Defining strings within triple quotes allows creating:

a)

(a) Multiline Strings

b)

(b) Double line Strings

c)

(c) Multiple Strings

d)

(d) Single line Strings

15.

Evaluate the following function and predict the output.

bin(16)

a)

0b1100

b)

ob10000

c)

4

d)

ob0.1010

16.

Evaluate pow(2*2,2)

a)

2

b)

8

c)

16

d)

62

17.

A named blocks of code that are designed to do one specific job is called as

a)

Function

b)

Loop

c)

Block

d)

Branching

18.

How many important control structures are there in Python?

a)

A) 3

b)

B) 4

c)

C) 5

d)

D) 6

19.

Who Developed Python?

(a)  

20.

If a problem can be broken into subproblems which are reused several times, the problem possesses which property?

a)

Memoization

b)

Optimal substructure

c)

Overlapping subproblems

d)

Wishful Thinking

21.

___ is often used to describe the worst-case of an algorithm.

a)

Big O

b)

Big Omega

c)

O(n)

d)

O(n log n)

22.

The ___ sort algorithm compares each pair of adjacent items and swaps them if they are in the unsorted order.

a)

Quick sort

b)

Insertion

c)

Selection

d)

Bubble

23.

An estimation of the time and space complexities of an algorithm for varying input sizes is called

a)

Algorithm analysis

b)

Complexity

24.

____ are containers for mapping names of variables to objects.

a)

Variables

b)

Namespace

c)

Binding

d)

Variant

25.

The datatype whose representation is unknown are called

a)

Derived datatype

b)

Abstract datatype