Wednesday, August 2, 2023

Unit Test - 01 Class 12 - 03 Aug

 

Test - 01



1. What is Function? Explain types of functions with example.                        04 Marks

2. What is argument? Explain types of arguments with example.                    05 Marks

3. What is the difference between actual and formal parameter?                    02 Marks

4. True/False                                                                                                           05 Marks

(a) Positional arguments must be written before keyword arguments.

(b) The values of default arguments must be passed from the calling function.

(c) Variable length argument values assign as a tuple in the function definition.

(d) Function is a part of program with perform a specific task

(e) The values which is passed at the function calling are called function arguments.

5. Write the output of the following code.                                                            04 Marks

(a) 

L = [1, 5, 8, 6, 9]

print(L[3])

(i) 8            (ii) 6                (iii) 3                    (iv) None of these


(b)

T1 = (1, 2)

T2 = (3, 4)

print (T1+T2)


(i) (1, 2, 3, 4)            (ii) (4, 6)                (iii) Error                    (iv) None of these


(c) 

D = {1:10, 2: 20, 3: 30, 1:40}

print(D.keys())


(i) dict_keys([1, 2, 3])           (ii) [1, 2, 3]                (iii) (1, 2, 3)                     (iv) None of these

(d)

S="Hello India"

print(len(S))

(i) 11                (ii) 10                (iii) 5                 (iv) None of these

Unit Test - 01 Class 11 - 03 Aug

 Test - 01

1. Convert the following into Binary code.            03 Marks

(a) (52)10

(b) (537)8

(c) (12A)16

2. Convert the following into Decimal Code.            03 Marks

(a) (10110)2

(b) (127)8

(c) (541)16

3. Convert to following into octal.                            03 Marks

(a) (145)10

(b) (11001)2

(c) (10A5)16

4. Convert the following into hexadecimal                03 Marks

(a) (1100110)2

(b) (425)8

(c) (258)10

5. Write the 2 difference between data and information.            02 Marks

6. Write the full form of the following.                                        03 Marks

(a) CPU

(b) PPM

(c) OCR

7. Arrange the following memory unit in ascending order            02 Marks

MB

KB

GB

TB

Byte

8. Write the name of two operating system.                                01 Marks

Tuesday, May 30, 2023

ICT in Education

ICT TOOLS

1. Geogebra for mathematics 

GeoGebra is an interactive geometry, algebra, statistics and calculus application, intended for learning and teaching mathematics and science from primary school to university level. GeoGebra is available on multiple platforms, with apps for desktops, tablets and web.
2. Stellarium for SST

Stellarium is a free open source planetarium for your computer. It shows a realistic sky in 3D, just like what you see with the naked eye, binoculars or a telescope.

3. PHeT for simulation 

PhET is a suite of research-based interactive computer simulations for teaching and learning physics, chemistry, math, and other sciences. PhET simulations can be run online or downloaded for free from the PhET website.

4. Blog

A blog is a website where a person writes regularly about topics that interest them, usually with photographs and links to other websites they find interesting

Saturday, April 29, 2023

Function in Python Test 29 April 2023

 Function Chapter Test  Class - 12 A Computer Science

GBSSS Khajoori Khas

Date: 29/04/2023

 

1. What will be the output of the following code? 

def check(): 

global num 

num=1000 

print(num) 

num=100 

print(num) 

check()

 print(num)

 

2. Function can alter only Mutable data types? (True/False)

 


3. What will be the output of the following code? 

 

def drawline(char='$',time=5): 

print(char*time) 

drawline() 

drawline('@',10) 

drawline(65) 

drawline(chr(65))

 

4. What will be the output of the following code? 

def Fun1(mylist): 

for i in range(len(mylist)): 

if mylist[i]%2==0: 

mylist[i]/=2 

else: 

mylist[i]*=2 

list1 =[21,20,6,7,9,18,100,50,13] 

Fun1(list1) 

print(list1)

 

5. What will be the output of the following code? 

X = 100 

def Change(P=10, Q=25): 

global X 

if P%6==0: 

X+=100 

else: 

X+=50 

Sum=P+Q+X 

print(P,'#',Q,'$',Sum) 

Change() 

Change(18,50) 

Change(30,100)

 

6. What will be the output of the following code? 

def Alter(M,N=50): 

M = M + N 

N = M - N 

print(M,"@",N) 

return M

A=200 

B=100 

A = Alter(A,B) 

print(A,"#",B) 

B = Alter(B) 

print(A,‟@‟,B)

 

7. A Function can call another function or itself? (True/False)
8. _______ keyword is used to define a function
9. What are the different types of function? 
10. What are the different types of function arguments?




Series in Pandas Test - 29 April 2023

 Class 12 - B Series in Pandas Test:, GBSSS Khajoori Khas

1. Create a Series and Explain the use of head() and tail()

import pandas as pd

D=[10,20,30,40,50,60,70,80,90]

I=['a','b','c','d','e','f','g','h','i']

S=pd.Series(D,I)

print(S)

print(S.head())  #print —-------------------- elements

print(S.tail())     #print —-------------   elements

print(S.head(3))    #print —-----------------  elements

print(S.tail(3))    #print —----------- elements

print(S.head(-2))   #print —--- —---------------- elements (not print —------------  elements)

print(S.tail(-2))   #print —---------------- elements (not print —---------------- elements)

2. Which of the following are modules/libraries in Python?

a. NumPy

b. Pandas

c. Matplotlib

d. All of the above

3. NumPy stands for ____

a. Number Python

b. Numerical Python

c. Numbers in Python

d. None of the above

  1. _________ is an important library used for analyzing data.

a. Math

b. Random

c. Pandas

d. None of the above

  1. Important data structure of pandas is/are ___________

a. Series

b. Data Frame

c. Both of the above

d. None of the above

  1. Pandas Series can have _________________ data types

a. float

b. integer

c. String

d. All of the above

  1. _________ is used when data is in Tabular Format.

a. NumPy

b. Pandas

c. Matplotlib

d. All of the above

  1. Which of the following commands is used to install pandas?

a. pip install pandas

b. install pandas

c. pip pandas

d. None of the above