WorksheetsDAT B0721 - The Activity Day 2
Total questions: 26
Worksheet time: 9mins
Guess the technology name!!
Tensorflow
Scikit Learn
Numpy
Pandas
What is the output for the following code?
20
25
30
35
Which among the options is true about the view() function?
It is the NumPy framework
It copies the array but changes in it won't be reflecting
It doesn't copy the array but changes in it will be reflecting
It copies the array but changes in it reflect in the original array
What is the output for the following code?
10
12
9
11
For tuples and list which is correct?
List and tuples both are mutable.
List is mutable whereas tuples are immutable.
List and tuples both are immutable.
List is immutable whereas tuples are mutable
Choose the correct syntax for reading from a text file stored in ‘‘c:\scores.txt’’?
Infile = open(file=''c:\\\scores.txt'', ''r'')
Infile = open.file(''c:\\scores.txt'',''r'')
Infile = open(''c:\\scores.txt'', ''r'')
C - Infile = open(''c:\\score.txt'',''r'')
Suppose we have two sets A & B, then A<B is:
True if len(A) is less than len(B)
True if A is a proper subset of B
True if the elements in A when compared are less than the elements in B
True if A is a proper superset of B
When the given code is executed how many times, ' 'you are learning python ' ' will be printed.
9
10
11
Infinite Number of times
What is the output? a = (1, 2), a[0] +=1
(1,1,2)
2
Type Error
(2,2)
Which datatype is immutable?
Tuple
List
Dictionary
Set
What is the correct file extension for Python files?
.pyt
.ipynb
.py
.pyth
What is the correct syntax to output "Hello World" in Python?
"Hello World'
print(Hello World)
prinl('Hello World')
print('Hello World')
Guess the name of the following techonology?
Octacat
Git
GitHub
GitLab
How many times will the loop run?
9
10
11
Infinite
So far, how's your experience with the quiz questions?
They are Easy
They are Boring
They are Informative
They are quite Difficult
They are Perfect
What will be the output, if the value of "x" is 5?
1
5
25
120
125
What will be the output?
10
Error
None
20
What is true about the Docstring of a function?
It is a string written as the first line in function block
It can be written in single, double or triple quotes
It is ignored by the interpreter
All of the above
What will be the output?
[1, 0, 1, 0, 1, 1]
[1, 0, 1, 1, 1, 1]
1, 0, 1, 0, 1, 1
[1, 0, 0, 1, 1, 1]
What will be the output?
1 1
1 2
2 2
2 1
Guess the name of the following techonology?
BeautifulSoup
Django
Flask
Kivy
Which among them is a database system?
SQL
Python
RDBMS
Oracle
What does the operator "*" mean in SQL?
All the data
Any data
Specific Data
Repeat the data specfic times
What is "Students" in the SQL query - SELECT * FROM Students
Database
Table
Column
Row
What is the correct SQL query to find names of employee start with ‘A’ from the "Employees" table?
SELECT * FROM Employees WHERE EmpName like 'A%' ;
SELECT ALL FROM Employees WHERE EmpName like 'A%';
SELECT * FROM Employees WHERE EmpName like 'A%'
SELECT * FROM Employees WHERE EmpName like '%A';
Write an SQL query to fetch the count of employees from the table "EmployeeSalary", working in project ‘P1’
SELECT COUNT(Everything)
FROM EmployeeSalary
WHERE Project = 'P1'
SELECT COUNT(*)
FROM EmployeeSalary
WHERE Project = 'P1';
SELECT COUNT(*)
FROM EmployeeSalary
WHERE Project = 'P1';
SELECT COUNT(*)
FROM EmployeeSalary
LIKE Project = 'P1';
