wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DAT B0721 - The Activity Day 2

Total questions: 26

Worksheet time: 9mins

Name
Class
Date
1.

Guess the technology name!!

a)

Tensorflow

b)

Scikit Learn

c)

Numpy

d)

Pandas

2.

What is the output for the following code?

a)

20

b)

25

c)

30

d)

35

3.

Which among the options is true about the view() function?

a)

It is the NumPy framework

b)

It copies the array but changes in it won't be reflecting

c)

It doesn't copy the array but changes in it will be reflecting

d)

It copies the array but changes in it reflect in the original array

4.

What is the output for the following code?

a)

10

b)

12

c)

9

d)

11

5.

For tuples and list which is correct?

a)

List and tuples both are mutable.

b)

List is mutable whereas tuples are immutable.

c)

List and tuples both are immutable.

d)

List is immutable whereas tuples are mutable

6.

Choose the correct syntax for reading from a text file stored in ‘‘c:\scores.txt’’?

a)

Infile = open(file=''c:\\\scores.txt'', ''r'')

b)

Infile = open.file(''c:\\scores.txt'',''r'')

c)

Infile = open(''c:\\scores.txt'', ''r'')

d)

C - Infile = open(''c:\\score.txt'',''r'')

7.

Suppose we have two sets A & B, then A<B is:

a)

True if len(A) is less than len(B)

b)

True if A is a proper subset of B

c)

True if the elements in A when compared are less than the elements in B

d)

True if A is a proper superset of B

8.

When the given code is executed how many times, ' 'you are learning python ' ' will be printed.

a)

9

b)

10

c)

11

d)

Infinite Number of times

9.

What is the output? a = (1, 2), a[0] +=1

a)

(1,1,2)

b)

2

c)

Type Error

d)

(2,2)

10.

Which datatype is immutable?

a)

Tuple

b)

List

c)

Dictionary

d)

Set

11.

What is the correct file extension for Python files?

a)

.pyt

b)

.ipynb

c)

.py

d)

.pyth

12.

What is the correct syntax to output "Hello World" in Python?

a)

"Hello World'

b)

print(Hello World)

c)

prinl('Hello World')

d)

print('Hello World')

13.

Guess the name of the following techonology?

a)

Octacat

b)

Git

c)

GitHub

d)

GitLab

14.

How many times will the loop run?

a)

9

b)

10

c)

11

d)

Infinite

15.

So far, how's your experience with the quiz questions?

a)

They are Easy

b)

They are Boring

c)

They are Informative

d)

They are quite Difficult

e)

They are Perfect

16.

What will be the output, if the value of "x" is 5?

a)

1

b)

5

c)

25

d)

120

e)

125

17.

What will be the output?

a)

10

b)

Error

c)

None

d)

20

18.

What is true about the Docstring of a function?

a)

It is a string written as the first line in function block

b)

It can be written in single, double or triple quotes

c)

It is ignored by the interpreter

d)

All of the above

19.

What will be the output?

a)

[1, 0, 1, 0, 1, 1]

b)

[1, 0, 1, 1, 1, 1]

c)

1, 0, 1, 0, 1, 1

d)

[1, 0, 0, 1, 1, 1]

20.

What will be the output?

a)

1 1

b)

1 2

c)

2 2

d)

2 1

21.

Guess the name of the following techonology?

a)

BeautifulSoup

b)

Django

c)

Flask

d)

Kivy

22.

Which among them is a database system?

a)

SQL

b)

Python

c)

RDBMS

d)

Oracle

23.

What does the operator "*" mean in SQL?

a)

All the data

b)

Any data

c)

Specific Data

d)

Repeat the data specfic times

24.

What is "Students" in the SQL query - SELECT * FROM Students

a)

Database

b)

Table

c)

Column

d)

Row

25.

What is the correct SQL query to find names of employee start with ‘A’ from the "Employees" table?

a)

SELECT * FROM Employees WHERE EmpName like 'A%' ;

b)

SELECT ALL FROM Employees WHERE EmpName like 'A%';

c)

SELECT * FROM Employees WHERE EmpName like 'A%'

d)

SELECT * FROM Employees WHERE EmpName like '%A';

26.

Write an SQL query to fetch the count of employees from the table "EmployeeSalary", working in project ‘P1’

a)

SELECT COUNT(Everything)

FROM EmployeeSalary

WHERE Project = 'P1'

b)

SELECT COUNT(*)

FROM EmployeeSalary

WHERE Project = 'P1';

c)

SELECT COUNT(*)

FROM EmployeeSalary

WHERE Project = 'P1';

d)

SELECT COUNT(*)

FROM EmployeeSalary

LIKE Project = 'P1';