Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 16

MEDI-CAPS INTERNATIONAL SCHOOL

1.COMPUTER SYSTEM OVERVIEW


WORKSHEET
1. What is the basic building block of any computer?

2. What is the function of memory in computer?

3. What are the functions performed by control unit in computer?

4. Differentiate RAM and ROM.

5. What are the basic components of any typical mobile system?

6. What is application software?

7. What is system software ?

8. What is operating system and how it is important for any computer?

9. Draw the basic building block of any typical mobile system

10. Differentiate compiler and interpreter

MEDI-CAPS INTERNATIONAL SCHOOL


2.DATA REPRESENTATION-BASIC CONCEPT
WORKSHEET
1. Convert the following decimal numbers to binary :
i. 13
ii. 106
iii. 84
iv. 23
2. Convert the following binary number to decimal:
i. 100102
ii. 1010102
iii. 1010100.0112
iv. 10102
v. 1110102
3. Convert 202 into its binary equivalent number.
4. Convert 125 into its binary equivalent number.
MEDI-CAPS INTERNATIONAL SCHOOL
3.GETTING STARTED WITH PYTHON
WORKSHEET
1. Who is the developer of Python Programming Language?

2. How Python was named for Python Programming language?

3. Is python cross platform language, how?

4. Python is free and open source language. here, what is free and open source?

5. When was Python released?

6. What are the advantages of Python Programming Language?

7. What are the limitation of Python Programming Language?

8. In how many different ways we can work of Python?

9. Differentiate interactive and script mode of Python programming language?

MEDI-CAPS INTERNATIONAL SCHOOL


4..PYTHON FUNDAMENTALS
WORKSHEET
1. What are literals in Python? How many types of literals are there in Python?

2. Differentiate keyword and identifier.

3. What are tokens in Python?

4. What will be the output of following?

a=20

b=a+1

a=33

print(a+b)

5. What is wrong with following code fragment?

a=20
print(a)
b=33
print(b)
6. What is wrong with following code fragment?
name="freya"

classs=4

print(name+classs)

7. What will be the output of following python code?

a,b=3,4

a,b,c=b,a+3,b-1

print(a,b,c)

8. What will be the output of following python code?

a,b=3,4

c,a=b*4,a+4

print(a,b,c)

9. Differentiate block/code block/suite?

10. How comments are given in Python program?

MEDI-CAPS INTERNATIONAL SCHOOL


5.DATA HANDLING
WORKSHEET
1. How many parts are there for any complex number?

2. What is data type in python? Is there any importance of data type?

3. Differentiate mutable and immutable data types? List these

4. Differentiate implicit type conversion and explicit type conversion.

5. List the augmented assignment operator supported by python.

6. What is the output of the following code :

print(9//2)

7. what will be the output of following code fragments

a,b=5,6
a,b,c=10,b,a

a,b,c=c/2,a+4,b*6+2

print(a)

print(b)

print(c)

8. Python Program to Convert Celsius To Fahrenheit

_________________________________________________
MEDI-CAPS INTERNATIONAL SCHOOL
6.CONDITIONAL AND ITERATIVE STATEMENTS
WORKSHEET
1.What is the use of range() function in python?

2.Else clause is available with if as well as loop construct, can you differentiate the use of else in
both.

3.What is empty statement?


4.What is determinable and non determinable loop in python?
5.What are jump statements in python?
6.What is entry control loop?
7.What is named condition?
8.What is the output of the following program?

x = ['dc', 'ba']

for i in x:

i.upper()

print(x)

9.What is the output of the following program?

x = 321

for i in x:

print(i)

10. What is the output of the following program?

for i in [4, 3, 2, 1][::-1]:

print (i)
MEDI-CAPS INTERNATIONAL SCHOOL
7.STRING MANIPULATION/TEXT HANDLING
WORKSHEET
1. What is the output of the following Python program section?
st='Computer Science'
x=st.lower()
y=x.replace('computer','Computer')
print(y)
2. What would be printed from the following Python program section?
txt='computer science and informatics practices'
words=txt.split(' ')
l=len(words)
print (l)
3. What would be printed from the following Python program section?
st=['C','o','m','p','u','t','e','r']
w=''.join(st)
print(w)
4. Write a Python program to calculate the length of a string
5. Write a Python program to count the character frequency in a string
6. What is the output of the following?
my_string = "python"
i = "i"
while i in my_string:
print(i, end =" ")
25. What is the output of the following?
my_string = "python"
for i in range(my_string):
print(i)
7. What is the output of the following?
my_string = 'python'
for i in range(len(my_string)):
my_string[i].upper()
print (my_string)
8. Write a Python program to Check Whether a String is Palindrome or Not
MEDI-CAPS INTERNATIONAL SCHOOL
8.LIST MANIPULATION
WORKSHEET
1. Write difference between append() and extend() methods of list.

2. How we can Select An Element From A List

3. How we can determine the size of the list.

4. Can we concatenates two lists,how

5. How we can sort the elements of the list.

6. How we can clone a list.

7. How you will intersect two list elements

8. Can we remove duplicate elements of a list,how.

9. What is the output of the following code?

a=[101,123,561,[178]]

b=list(a)

a[3][0]=915

a[1]=134

print(b)

10. What is the output of the following code?

a=[132,526,127]

a.append([827])

a.extend([425,627])

print(a)
MEDI-CAPS INTERNATIONAL SCHOOL
9.DICTIONARIES
WORKSHEET
1. Is dictionary more useful than list,if yes then how?

2. Slicing/concatenation is applicable over dictionary?

3. Differentiate list and dictionary.

4. Why lists can’t be used as keys?

5. Read the code shown below carefully and pick out the keys?

dict = {'freya':10, 'mohak':1}

6. Suppose dict = {'freya':10, 'mohak':1},to delete the entry for “freya” what

command you will write?

7. Suppose dict = {'freya':10, 'mohak':1}, what happens when we try to retrieve a

value using the expression dict[“amit”]?

8. What will be the output?

dict = {'freya':10, 'mohak':1}

print('amit' in dict)

9. What will be the output?

dict = {1:'X', 2:'Y', 3:'Z'}

del dict[1]

dict[1] = 'D'

del dict[2]

print(len(dict))

10. What will be the output?

dict ={}

dict['dict']= 1

dict['b']=[2, 3, 4]

print(dict)
MEDI-CAPS INTERNATIONAL SCHOOL
9.MODULE
WORKSHEET
1. What is module in python?

2. How are modules used in a Python program?

3. What is python module search path?

4. Differentiate package & module.

5. Define a module calculation with add,substract,multiply,divide and use this

module in a your main program.

6. Define a module factorial with a function factcal which accept a number and

return its factorial value,use this function in your main program.

7. What is the output of the following piece of code fragment?

from math import factorial

print(math.factorial(5))

8. How can you share global variables across modules?


MEDI-CAPS INTERNATIONAL SCHOOL

10.PANDAS
WORKSHEET
1. Name a few libraries in Python used for Data Analysis and Scientific computations.

2. What is the main difference between a Pandas series and a single-column DataFrame in

Python?

3. Write code to sort a DataFrame in Python in descending order.

4. Can we create a DataFrame with multiple data types in Python? If yes, how can we do it?

5. What are some features of Pandas that you like or dislike?

6. What is the use of pandas in Python?

7. What is a DataFrame in pandas?

8. How we can Create a Pandas DataFrame

9. How we can select an Index or Column From a Pandas DataFrame.

10. How we can add an Index, Row or Column to a Pandas DataFrame

11. How we can delete Indices, Rows or Columns From a Pandas Data Frame

12. How we can Rename the Index or Columns of a Pandas DataFrame


MEDI-CAPS INTERNATIONAL SCHOOL
12.DATA TRANSFER BETWEEN CSV FILES/SQL DB & DATAFRAME
WORKSHEET
1. What is csv file?

2. What is dataframe object of python pandas?

3. What is sql database?

4. Which method of dataframe object is used to store dataframe object’s data to a

csv file?

5. Write python code to Create a dataframe with name and dob of three person and

store this dataframe to a csv file.

6. Write python code to read csv file into dataframe and then display the contents of

this dataframe.

7. How we can load csv file without header?

8. Write syntax to load a csv file with specifying headers.

9. Write the names of two important modules required to interact with sql databases

with dataframe
MEDI-CAPS INTERNATIONAL SCHOOL
11.RELATIONAL DATABASE CONCEPTS
WORKSHEET
1. What is database?

2. What is dbms?

3. What is RDBMS?

4. What is database system?

5. What is data model?

6. What are these?

a. Tuple

b. Relation

c. Attribute

d. Entity

e. Cardinality

f. Degree

7. A table “Transport” in a database has degree 3 and cardinality 8. What is the number of rows

and columns in it?

8. Differentiate between Alternate key and Candidate key.

9. What is the difference between primary and foreign key?

10. A table STUDENT has 4 rows and 2 columns and another table TEACHER has 3

row and 4 columns. How many rows and columns will be there if we obtain the

Cartesian product of these two tables?


MEDI-CAPS INTERNATIONAL SCHOOL
12.SQL COMMANDS
WORKSHEET
1. What is MySQL?

2. How is a database related to a table ?

3. Write SQL command to create the table VEHICLE with given constraint:

Table : VEHICLE

COLUMN_NAME DATATYPE(SIZE) CONSTRAINT

RegNo CHAR(10) Primary Key

Regdate DATE

Owner VARCHAR(30)

Address VARCHAR(40)

4. Write MySQL command to create the table “Toyz” with the following

structure and constraints.

Table : TOYZ

Column_Name Datatype(Size) Constraints

Toy_no Int(10) Primary Key

Tou_name Varchar(20)

Type Char(10)

Price Decimal(8,2)

Colour Varchar(15)

5. Write MySQL command to create the Table ‘LIBRARY’ with given constraints.

Table: LIBRARY

COLIMN_NAME DATATYPE(SIZE) CONSTRAINT

BookId Int(10) Primary Key

BookName Varchar(40) Not Null

Type Char(4)

Author Varchar(40)
No_Copies Int(6)

Price Decimal(8,2)

6. Consider the table EXAM given below. Write commands in MySql for(i) to (iv)

and output for (v) to (vii)

Table: EXAM

(i) To list the names of those students, who have obtained Division as FIRST in

the ascending order of NAME.

(ii) To display a report listing NAME, SUBJECT and Annual stipend received

assuming that the stipend column has monthly stipend.

No Name Stipend Subject Average Division

1 Karan 400 English 68 FIRST

2 Aman 680 Mathematics 72 FIRST

3 Javed 500 Accounts 67 FIRST

4 Bishakh 200 Informatics 55 SECOND

5 Sugandha 400 History 35 THIRD

6 Suparna 550 Geography 45 THIRD

(iii) To count the number of students, who have either accounts or informatics as

subject.

(iv) To insert a new row in the table EXAM:

6,”Mohan”,500,”English”,73,”Second”

(v) SELECT AVG(Stipend) FROM EXAM WHERE DIVISION=”THIRD”

(vi) SELECT COUNT(DISTINCT Subject) FROM EXAM;

(vii) SELECT MIN(Average) FROM EXAM WHERE Subject=”English”;

7. Consider the following table names EXAM with details of marks. Rite

command of MySQl for (i) to (IV) and Output for (v) to (Vii).
Table : EXAM.

Adno SName Percentage Cl section Stream

R001 Sushant 90.2 12 A Science

R002 Vaidyanath 80.5 12 B Humanities

R003 Miara 68.9 12 B Science

R004 Niara 96.0 12 A Commerce

R005 Shinjini 88.9 12 D Commerce

(i) To display all information of the students of humanities in descending order

of percentage.

(ii) To display Adno, Name, Percentage and Stream of those students whose

name is less than 6 characters long.

(iii) To add another column Bus)Fees with datatype and size as decimal (8,2).

(iv) To increase percentage by 2% of all the humanities students.

(v) SELECT COUNT(*) FROM EXAM;

(vi) SELECT Sname, Percentage FROM EXAM WHERE Name LIKE “N%”;

(vii) SELECT ROUND(Percentage,0) FROM EXAM WHERE Adno=”R005”;

8.In a database there are two tables: Table ITEM: Table BRAND:

Write MySql queries for the following:

(i) To display ICode,IName and corresponding Brand of those Items, whose price

is between 20000 and 45000 (both values inclusive).

(ii) To display ICode, Price and BName of the item which has IName as“Television”?

(iii) To increase the price of all the Items by 15%.


MEDI-CAPS INTERNATIONAL SCHOOL
14.CYBER SAFETY
WORKSHEET
1. What is cyber safety?

2. What do you understand by identity theft?

3. Differentiate cyber bullying and cyber stalking.

4. Why cyber safety is important in internet?

5. What is identity fraud?

6. What is cybercrime?

7. What is virus?

8. What is phishing?

9. What are the different computer security threats?

10. What is the significance of a firewall in a computer’s security scheme?

11. Write short notes on

a. Spyware

b. Spam

c. Pc intrusion

d. Adware

e. Denial of services

f. Sweeper attacks

You might also like