Which of the following is an invalid method/function in Python dictionary?
get( )
pop( )
popitem( )
remove( )
Select the correct output for the following python code. for I in range (6, 1, -2): print(end = ‘*$$’)
*$$*$$*$$
*$$ *$$
*$$*$$
*$$ *$$ *$$
For the following Python statement Txt = list(‘PEACE’) What shall be the output of print(Txt)?
Error in statement
[‘PEACE’]
[‘P’,’E’,’A’,’C’,’E’]
[P,E,A,C,E]
For the following Python statement Msg = (‘Good Day’) What shall be the data type of Msg ?
Error in statement
string
tuple
list
Which of the following will not run the loop statement an infinite number of times in Python ?
while True : print(“ALWAYS”)
while 1%1 : print(“ALWAYS”)
while 21%2 : print(“ALWAYS”)
while 21//2: print(“ALWAYS”)
Given the following assignment of a variable LS = [1,9,2,8,3,7,5,4] What will be the output of the following ?
[4,7,8,9,1,2,3,5]
[9,8,7,4,5,3,2,1]
[5,3,2,1,9,8,7,4]
[1,2,3,5,4,7,8,9]
Which of the following is the correct syntax for panda’s dataframe ?
pandas.dataFrame(data, index, dtype, cpy)
pandas.DataFrame(data, index, dtype, cpy)
pandas.DataFrame(data, index, col, dtype, cpy)
pandas.DataFrame(data, index, row, dtype, cpy)
Which of the following options is true in Python ?
Logical errors can be handled using try. . . except
Syntex errors can be handled using try. . . except
Execution/Runtime errors can be handled using try. . . except
No erros can handled using try. . .except
Which out of the following module is required to be used to create a binary file in Python ?
binfile
Binary
bin
pickle
A dictionary is declare as D = {10 : ‘A’, 25 : ‘B’, 32 : ‘C’, 54 : ‘D’} Which of the following is incorrect ?
D[32] += ‘*’
D[‘X’] = 100
D[20] = ‘E’
D[30] += 20
What will the following code result in ? import pandas as pd pd.Series([10,20], index = [‘A’,’B’,’C’]
IndexError
SyntaxError
ValueError
NameError
What is the output of the following ? import pandas as pd S1 = pd.Series ([100,200,300]) print(S1)
1 100 2 200 3 300 dtype: float64
0 100 1 200 2 300 dtype: int64
1 100 2 200 3 300 dtype: int64
0 100 1 200 2 300 dtype: float64
Consider the following Python code and answer the question givne below : with open(“NOTES.TXT”,”r”) as F : Line = F.readlines( ) ______________# Statement 1 which of the follwing Python statement will find and display the number of lines present in the file “NOTES. TXT”?
print(LINE.count(‘\n’))
print(LINE.len())
print(len(LINE))
print(LINE.count())
Which method out of the following is used to write a line of content in a CSV file in a Python program ?
write
writeline
writer
writerow
Which method out of the following will allow the read operation from a Binary file in a Python program ?
accept
load
read
input
Which of the following method is used to move the file pointer to read the content from a specific position in a text file inside a Python program ?
find
seek
move
tell
Which out of the following mode is required to be used while opening a binary file to allow read as well as write operations in a Python program ?
r+
rb+
ab
wb
Obseve the following flowchart and find the output.
100
160
180
120
The Boolean expression (A.B)’ is equivalent to :
A . B’
A’ + B’
A’ . B’
A + B’
Which of the following memory is non-volatile ?
ROM and Cache
RAM
ROM
Cache
Which is the Linux ?
Windows based Application Software
Proprietary Operating System
Open-source Operating System
Open-source Application Software
if ⊕ represents XOR Gate in Boolean algebra and A⊕B = C, then B⊕C equals to :
A’
0
1
A
What is an interpreter ?
A program that converts a program into machine code line by line as the program is run.
A program that writes instructions to perform.
A program that converts machine language to high-level language.
A program that converts whole of a program code into machine language in one step.
Identify the Boolean expression from the given options, which is equivalent to the Logic Circuit Diagram.
A + B’.C’ + D
(A.B’ + C’).D
(A + B’).C’ + D
A.B’ + C’.D
Identify the Boolean Gate, which represents the following truth table :
NAND
OR
XOR
NOR
What is the updated version of the IT Act, 2000 called?
Advanced IT Act, 2007
IT Act, 2007
IT Act, 2007
Advanced IT Act, 2000
Octal equivalent of the Binary number (10110)2 is:
62
16
26
52
Binary equivalent of the decimal number (11)10 is :
1111
1011
1101
1001
Intellectual Property Rights (IPR) protect the use of information and ideas that are of :
Commercial value
Ethical value
Traditional value
Historical value
In Boolean algebra, A.(A+B) is logically equivalent to :
A + B
A
B
A.B
The decimal representation for the character ‘a’ (lower A) in ASCII is ________
122
65
90
97
Decimal equivalent of the hexadecimal number (ADD)16 is :
2187
2781
2871
2178
Considering the following dictionary : Num = {10 : ‘Ten’, 100: ‘Hundred’, 10 : ‘Decimal’} What shall be the output of print(Num) ?
{10 : ‘Decimal’, 100: ‘Hundred’}
Error
{10 : ‘Ten’, 100: ‘Hundred’,10 : ‘Decimal’}
{10 : ‘Ten’, 100: ‘Hundred’}
What minimum and the maximum values will be generated from the following python statement ? print (random.randrange(100)+1)
1 and 99
0 and 99
1 and 100
0 and 100
Identify the term, which is an unauthorized real-time interception, or monitoring of private communication between two entities over network.
Snooping
Cyberstalking
Eavesdropping
Phishing
Identify the Logical Operator used in Python out of the following.
<=
+=
and
in
Which of the following Function Headers in a Python code will result in error ?
def Compu(X = 100, Y = 100, Z = 1) :
def Compu(X, Y = 10, Z = 1) :
def Compu(X = 100, Y = 10, Z ) :
def Compu(X, Y, Z = 1) :
Which of the following cannot be used as a valid identifier in Python ?
Name_1
FirstName
1stName
Name1
Choose the best option to fill the blank correctly. A ________________ is a human-friendly text form of the IP address.
Memory address
URL
domain name
MAC address
XML is designed to ________ and ________ data. Select the beast pair of answers from the following options.
store, transport
format, design
design, transport
store, design
Identify the communication protocol, which establishes and dedicated and direct connection between two communiting devices. This protocol defines how to devices with authenticate each other and establish a direct link between them to exchange the data.
TELNET
FTP
PPP
SMTP
Using join, which of the follwoing MySQL query is almost equivalent to : SELECT NAME, MARKS FROM STUDENT, RESULT WHERE STUDENT.ROLL = RESULT.ROLL;
SELECT NAME, MARKS FORM STUDENT NATURAL JOIN RESULT;
SELECT NAME, MARKS FROM STUDENT, RESULT;
SELECT NAME, MARKS FROM STUDENT JOIN RESULT;
SELECT NAME, MARKS FROM STUDENT EQUI JOIN RESULT;
Which datatype is mostly returned by fetchall( ) method in Python – MySQL connectivitiy ? Select the most common answer.
A list of dictionaries or an empty list, if no more rows are available.
A single tuples or an empty tuple, if no more rows are available.
A single list or an empty list, If no more rows are available.
A list of tuples are an empty list, If no more rows are available.
Which type of cable has high bandwidth supports high data transfer rate, signals can travel longer distances and electromagnetic noise cannot affect the cable, However expensive. Identify the transmission media.
Twisted pair cable.
Cat6 cable.
Coaxial cable.
Optical fiber.
Select the correct full form of the term ARPANET from the given options.
Advanced Research Programs Academic Network
Advanced Research Project Agency Network.
American Research Projects Advanced Network.
American Research Programs Advanced Network.
Identify the topology from the given options, which is a hierarchical topology in which there are multiple branches, and each branch can have one or more basic topologies, and are usually connect multiple LANs.
Start topology.
Mesh topology.
Bus topology.
Tree topology.
Identify the term from the given options, which is a small file or data packet stored by a website on the client’s computer and used by the websites to store browsing information of the user.
Spyware.
Trojan.
Firewall.
Cookies.
GPRS is basically standard barrier of.
4G technology
2G technology.
2.5G technology.
3G technology.
Which computer hardware device used to convert data from a digital format into a format suitable for an analog transmission medium? Select the best answer out of the given options.
Repeater
Hub.
Modem
Switch.
Identify the switching technique in which the message is sent in one go, but it is divided into smaller pieces, and they are sent individually. The pieces are given a unique number and adresses to identify their order at the receiving end.
Binary switching
Circuit switching
Message switching
Packet switching
As per NEP 2020 from which class will vocational education be introduced?
Class 9
Class 6.
Class 7.
Class 8.
Ms Monica wants to introduce the topic on ‘Nutrition’ to her class three students. She should :
Ask the students to open their tiffin boxes, see the contents and discuss their advantages and disadvantages.
Draw the diagram of the digestive system on the blackboard.
Use chart showing different kinds of foods and their advantages.
Give examples of different foods rich in nutrients and their advantages.
The best method to teach the concept of the ‘germination of a seed’ is to :
Make students plant seeds and observe germination.
Show pictures of seed growth.
Provide detailed explanations.
Draw pictures on the board and give descriptions.
Which approach of learning out of the following, engages participants in activity, leads them to reflect on the activity critically and obtain useful insight and learning?
Observation.
Experiential learning.
Collaboration.
Passive learning.
Which of the following components of pre-service teacher education program has granted scope for experiential learning?
Critical reading based on great thinkers work.
Internship through school attachment.
Pedagogy courses through use of critical thinking.
Foundation courses through critical exposure.
A school organizes an educational trip for middle school students to Jim Corbett National Park. What would be the teachers advisory to the children during the visit?
Observe keenly make note and share observations with other fellow students and teachers.
Enjoy the trip along with fellow students.
Observe everything without asking questions about it.
Note down their doubts and ask the questions after reaching back.
What is the full form of ABC as per the NEP 2020 ?
Academic Bank of Credit.
Assessment Book of Certificates.
Assessment Book of Credits.
Academic Bank of Certificates.
What are the classes which cover at secondary stage according to NEP 2020 curriculum structure?
Class 9 to 10
Class 6 to 9
Class 9 to 12
Class 6 to 8
Which course will be discontinued as per National Education Policy 2020?
Ph.D.
Ed.D.
M.Ed.
M.Phil.
As per NEP 2020, students’ holistic multidimensional progress card will be redesigned in which of the following format?
Comprehensive progress card.
Tabular progress card.
Continuous progress card.
360-degree progress card.
Out of the following expressions, which one will not find the result as Xraised to the power Y?
math.pow(X,Y)
X**Y
pow(X,Y)
power(X,Y)
Which out of the following is considered as a membership operator in python ?
not
is
in
or
Which of the following is correct precedence of operators in Python?
not, Braces, or, and
Braces, not, and, or
Braces, or ,and, not
not, Braces, and, or
Withstring method out of the following will always break the string into 3parts in Python.
mid
split
break
partiton
Consider the following assignment for a List L. L = [10, 20, 30, 40, 50, 60] Which print statement option will display the content in the following way? L = [60, 10, 20, 30, 40, 50]
print(L[len(L)-1] + L[l : len(L)])
print(L[-1], L[1 : ])
print(l[-1] + L[1:])
print(L[-1] + L[:len(L)-1])
What is the output of the following? import numpy as np A = np.array([[2,3],[10,20]]) print(A+1)
[ [ 2 3 ] ] [11 21 ] ]
[ [ 3 3] [11 20 ] ]
[ [ 3 4] [10 20] ]
[ [ 3 4 ] [11 21] ]
What will the following code result in? import numpy as np A = np.array([12,23]) B = np.array([10,20]) print(A – B)
[ [ 10 20] [ 12 23] ]
[ 2 3]
[-2 -3]
[ [ 12 23] [10 20] ]
What is the default color for matplotlib plots?
Black.
Red.
Blue.
Green.
Which module is required to be imported in a Python program to use mean, median and mode methods?
standard
math
stats
statistics
Which of the following is false about global variables in Python?
global keyboard is a must for first time of assignment of a global variable.
global variables can be accessed anywhere in the program.
global immutable variables require global keyword inside function.
global mutable variables don’t require global keyword inside function.
What is the purpose of legend( ) function in matplotlib ?
To label different lines or markers on a plot.
To label the X and Y axis of a plot.
To add a title to a plot.
To add annotations to a plot.
Observe the following graph and find the missing statement in the Python code. import matplotlib.pyplot as pl _____________________ pl.show( )
pl.plot( [5, 2, 3, 1] )
pl.line( [5, 2, 3, 1] )
pl.bar( [5, 2, 3, 1] )
pl.scatter( [5, 2, 3, 1] )
The number of attributes in a relation is called the __________of relation.
Cardinality.
Tuples.
Degree.
Domain.
Find the number of rows and columns of Cartesian product of two tables If the number of rows and columns of the first table is 2 and 3 respectively, and the number of rows and columns of the second table is 4 and 5 respectively.
Number of rows = 8 & Number of columns = 15
Number of rows = 6 & Number of columns = 15
Number of rows = 8 & Number of columns = 8
Number of rows = 6 & Number of columns = 8
Identify the key, which is a column (or attribute) or a group of columns in a table in RDBMS that is used to unique identify the rows of data in that table.
Candidate key
Primary key
Alternate key
Foreign key
Which command in mySQL is used to list all (non temporary) tables in a given database.?
VIEW TABLES
SHOW TABLES
DESCRIBE TABLES
DISPLAY TABLES
Which of the following is not true for VARCHAR data type in MySQL ?
Generally faster compared to CHAR data type.
Variable character data type.
A set of character data of Indeterminate length.
Generally memory efficient compared to CHAR data type.
Identify the output value (ignoring the output header) of the MySQL query. SELECT 6 mod 20;
20
2
3
6
Which of the following MySQL query is syntactically correct and most preferred one?
SELECT SECTION, COUNT(*) FROM STUDENT WHERE MARKS < 33 GROUP BY SECTION HAVING COUNT(*) >0 ORDER BY SECTION;
SELECT SECTION, COUNT(*) FROM STUDENT GROUP BY SECTION WHERE MARKS<33 AND COUNT(*)>0 ORDER BY SECTION;
SELECT SECTION, COUNT(*) FROM STUDENT ORDER BY SECTION GROUP BY SECTION WHERE MARKS < 33 AND COUNT(*) > 0;
SELECT SECTION, COUNT(*) FROM STUDENT WHERE MARKS<33 HAVING COUNT(*) > 0 GROUP BY SECTION ORDER BY SECTION;
Which of the following MySQL query will display all the name from the table STUDENT, which are having maximum five characters and starting with the alphabet ‘A’?
SELECT NAME FROM STUDENT WHERE NAME = ‘A%%%%’;
SELECT NAME FROM STUDENT WHERE NAME LIKE ‘A%%%%’;
SELECT NAME FROM STUDENT WHERE NAME LIKE ‘A_ _ _ _’;