1. Which of the following is not hardware of a computer system?
- KEYBOARD
- PRINTER
- OPERATING SYSTEM
- MOUSE
2. Which out of the following is the least capacity of memory unit compared to other options?
- MB
- KB
- GB
- TB
3. A collection of 4 bits is known as
- BYTE
- WORD
- NIBBLE
- K.BYTE
4. While working on computer, if we open a document in MS OFFIC WORD, which of the following is used
- RAM
- ROM
- BIOS
- I/O BUS
5. ______________ is not an operating system.
- UNIX
- WINDOWS
- ANDROID
- MS OFFICE
6. What will be the result of the following Boolean expression?
NOT True OR False AND True
- False
- True
- Error in Expression
- No result
7. Which Boolean expression is correct interpretation of the following logic circuit?
8. Which of the following represents Absorption law correctly?
- X+Y.Z = (X+Y).(X+Z)
- X+X.Y = X
- (X+Y)’ = X’ Y’
- (X..X)’ = X’
9. Which of the following is exact equivalent of given binary number in Octal number?
(101110001011)2
- (232023)8
- (A8A)8
- (5613)8
- (3165)8
10. What is full form of ISCII encoding scheme?
- Indian Standard code for interchange of information
- Indian Standard code for information interchange
- Indian Standard coding for information in Interchange
- Indian Scheme of coding for information interchange
11. Which of the following cannot be registered under cybercrime?
- Sending pornographic material online
- Stealing of brand new internet routers from a showroom
- Accessing CCTV camera of a private company without their knowledge
- Sending threats on social media accounts
12. Which of the following is an example of a very strong password?
- STRONG
- Abc1234
- admin
- Ap9#2@cQ
13. Which of the following protocol is used to upload and download files from remote server/ computers?
- SMTP
- VoIP
- HTTP
- FTP
14. Garuda Skill education has set up their new skill training campus in a place near Pune. The campus has three close by buildings connected with each other using CAT6 cable. Which type of network is Estimation in the campus?
- PAN
- MAN
- LAN
- WAN
15. Which of the following is not in network device?
- Switch
- Router
- Hub
- RAM
16. Which of the following wired medium will be able to have highest speed data communication possible?
- Single pair telephone cable
- Fiber optic cable
- Co-axial cable
- Twisted pair cable
17. Which of the following is an invalid IP address?
- 100.0.10.32
- 255.255.255.10
- 192.168.10.15
- 256.10.12.5
18. What is full form of ARPANET?
- Advancement of Research Project Agency Network
- Advanced Research Project Agency Network
- Add on Research Project Agency Network
- American Research Project Agency Network.
19. Which of the following is not an example of cloud computing services?
- SaaS
- IaaS
- PaaS
- SaaP
20. Which of the following is not an application of AI?
- Chat Bot
- Financial Accounting System
- Driverless Car
- Face Recognition System
21. Which of the following is an invalid identifier in Python programming language?
- none
- False
- true
- For
22. Which of the following is not a valid operator in Python?
- = =
- = >
- / /
- * *
23. Identify the correct output of the following Python arithmetic expression:
1 + ( 2 – 3 ) * 4 * * 5 / / 6
- -171
- 172
- -170
- 170
24. Evaluate the following expression:
not True or not False and False
- True
- False
- None
- will generate an Error.
25. Identify the correct output of the following Python command:
print(10 or 40)
- 10
- 40
- 50
- 400
26. Identify the correct output of the following Python program segment?
Pi=3.141592
print(‘%d4f’ %Pi)
- 3.14
- 3.1415
- 3.1416
- 3.0000
27. Which of the following is immutable data type in Python?
- Set
- List
- Tuple
- Dictionary
28. If we have 2 Python lists as follow:
List1=[10,20,30]
List2=[40,50,60]
If we want to generate a list List3 as
List3= [10,20,30,40,50,60]
Then best Python command out of the following is:
- List3 = List1 + List2
- List3 = List1.append(List2)
- List3 = List1.update(List2)
- List3 = List1.extend(List2)
29. Identify the correct output of the following Python code:
L-13, 3, 2, 2, 1, 11
L.append(L.pop(L.pop()))
print(L)
- [3,2,2,1,3]
- [3,3,2,2,3]
- [1,3,2,2,1]
- [1,1,2,2,3,3]
30. Identify the output of the Python Command:
print(22.0/5)
- 4.4
- 4
- 4.0
- 2
31. Find the output of the following Python code:
L1 = [1,4,3,2]
L2 = L1
L1.sort()
print(L2)
- [1,4,3,2]
- [1,2,3,4]
- 1 4 3 2
- 1 2 3 4
32. If PL is Python list as follow:
PL = [‘Basic’, ‘C’, ‘C++’]
Then what will be the status of the list PL after
PL.sort(reverse = True) ?
- [‘Basic’,’C’,’C++’]
- [’C++’,’C’,‘Basic’]
- [‘C’,’C++’,’Basic’]
- [‘Basic’,’C++’,’C’]
33. Identify the correct output of the following Python program.
CHARR = [[‘A’,’B’],[‘C’,’D’],[‘E’,’F’]]
print(CHARR [1][1])
- ‘A’
- ‘B’
- ‘C’
- ‘D’
34. The following Python list S is implemented as a stack.
S=[10, 12, 0, 4, 6]
If 10 is the element added (pushed) last into the stack S, which command from the following option is best to remove (pop) an element from the Stack S, if not empty.
- S.pop(0)
- S.pop( )
- S.remove( )
- S.remove(0)
35. Traditionally the end of a stack from where PUSH(additional) and POP(deletion) take place, of popularly known as :
- FRONT
- TOP
- LIFO
- FIFO
36. Identify the correct output of the Python code :
L1 = [1,2,3]
L2 = [4,5]
L3 = [6,7]
L1. extend(L2)
L1.append(L3)
print(L1)
- [1,2,3,4,5,6,7]
- [1,2,3,[4,5],6,7]
- [1,2,3,4,5,[6,7]]
- [1,2,3,[4,5],[6,7]]
37. Identify the correct output of the Python code:
TUP ([1, 2], [3, 4], [5, 6])
TUP[2] [1]-8
print(TUP)
- ([1, 2], [8, 4], [5, 6])
- ([1, 2], [3, 4], [8, 6])
- ([1, 2], [3, 4], [5, 8])
- will generate an error as a Tuple is immutable
38. Identify the output of the following Python program segment:
S = ‘Python Programming’
L=S.split()
S=’,’.join(L)
print(S)
- Python Programming
- Python, Programming
- ,Python Programming,
- ,Python, Programming,
39. If S-‘python language’ is a Python string, which of the following command will display the following output with ‘P’ in upper case and remaining in lower case?
- print(S.upper())
- print(S.title())
- print(S.capitalize())
- print(S.sentence())
40. Identify the correct output of the following Python Code:
Str = “Hello World! Hello India!”
Pos-Str.index (“Hello”)
print (Pos)
- 0
- 13
- [0, 13]
- (0, 13)
41. If a List L-[‘Hello’, ‘World!’] Identify the correct output of the following Python command:
print(*L)
- Hello World!
- Hello, World!
- ‘Hello’, ‘World!’
- ‘Hello’ ‘ ‘World!
42. If Str is a Python string as
Str= “Hello World!”
What will be the output of the following Python Command?
print(Str.find(‘1’))
- 2
- 3
- [2, 3, 7]
- (2, 3, 7)
43. Suppose a Python tuple TUP is declared as
TUP = (‘A’,’B’,’C’)
Which of the following command is invalid ?
- TUP = (‘D’)
- TUP = (‘D’,)
- TUP += (‘D’)
- TUP += (‘D’,)
44. Identify the correct output of the following Python code:
TUP (3, 1, 2, 4)
sorted(TUP)
print (TUP)
- (3, 1, 2, 4)
- (1, 2, 3, 4)
- [3, 1, 2, 4]
- [1, 2, 3, 4]
45. Find the correct output of the following Python program segment :
T=(‘1’)
print(T*3)
- 3
- (‘1’,’1’,’1’)
- 111
- (‘3’)
46. Select the correct output of the given Python code from the following options :
S = ‘INDIAN’
L=S.Partition(‘N’)
NS = L[0]+’-’+L[1]+’-’+L[2]
print(NS)
- I – N – DIA – N –
- I – DIA –
- I – DIAN
- I – N – DIAN
47. To execute the following code in Python, which module need to be imported?
print(_ mean ([1, 2, 3]) )
- math
- random
- statistics
- probability
48. If D is Python dictionary as
D= {‘A’ : 1, ‘B’ : 2, ‘C’ : 3}
Then, which of the following command will remove the entire dictionary from the memory ?
- del(D)
- D.del()
- D.clear()
- D.remove()
49. What will be the output of the following Python code ?
D1 = {‘A’ : 5,’B’ : 7, ‘C’ : 9}
D2 = {‘B’ : 5, ‘D’ : 10}
D1.update(D2)
print(D1)
- {‘A’ : 5, ‘B’ : 5, ‘C’ : 9, ‘D’ : 10}
- ‘A’ : 5, ‘B’ : 5, ‘C’ : 9, ‘B’ : 5, ‘D’ : 10}
- {‘A’ : 5, ‘C’ : 9, ‘D’ : 10}
- {‘B’ : 7, ‘D’ : 10, ‘A’ : 5, ‘C’ : 9}
50. Select the output for the given Python code from the following options:
D1 = { 1 : 2, 2 : 3, 3 : 4 }
D2 = D1.get(1,2)
print(D2)
- 2
- 3
- [2,3]
- {1 : 2, 2 : 3 }
51. Which of the following functions cannot be used with string(str) data type?
- islower( )
- isupper( )
- isalpha( )
- isnum( )
52. Examine the given Python program and select the purpose of the program from the following options:
N = int(input(“Enter the number”))
for i in range(2, N):
if (N%i = = 0 ):
print(i)
- to display the proper factors (excluding 1 and the number N itself)
- to check whether N is a prime or Not
- to calculate sum of factors of N
- to display all prime factor of the number N
53. If A-random.randint(B, C) assigns a random value between 1 and 6 (both inclusive) to the identifier A, what should be the values of B and C, if all required modules have already been imported?
- B = 0 C = 6
- B = 0 C = 7
- B=1, C = 7
- B = 1 C = 6
54. Identify the correct output of the following Python code:
From math import *
A = 5.6
print(floor(A), ceil(A))
- 5 6
- 6 5
- -5 -6
- -6 -5
55. Identify the correct output of the following Python program segment:
Import math
print(math.fabs(-10))
- 1
- -10
- -10.0
- 10
56. Consider the given Python programme and identify one possible output of this code out of the following options:
from random import *
Low-randint(2, 3)
High-randrange(5, 7)
for N in range (Low, High)
print(N, end = ‘ ‘)
- 3 4 5
- 2 3
- 4 5
- 3 4 5 6
57. Assuming all required modules have already been imported, identify the correct output of the following Python program segment:
Data [4, 4, 1, 2, 4]
print(mean(Data), mode(data))
- 1 4
- 4 1
- 3 4
- 4 3
58. Observe the Python code carefully and answer the following question:
Def FUN(A):
L = [ ]
For i in range (2, A):
if (A%i = = 0):
L.append(i)
print(L)
N = 10
FUN(N)
Identify the global identifier in the above code :
- A
- L
- i
- N
59. Observe the following Python program carefully.
import random
Def DICE(Low = 1, High = 6):
RND = random.randint(Low, High)
print(RND, end = ‘ ‘ )
DICE( )
DICE(2)
DICE(2,4)
Which of the following options cannot be an output of the above code?
- 4 3 3
- 4 1 3
- 3 5 4
- 6 4 3
60. Identify the output of the following Python code:
def EXP(N2)
global N1
N1, N2 = N1 + 5, N2 + 10
print (N1, N2, end = ‘ ‘ )
N1 =10
EXP(N1)
print(N1)
- 10 20 15
- 15 20 10
- 15 20 15
- 10 20 10
61. Which of the following mode, when used in file opening statement in Python, generates an error, if the file does not exist?
- a +
- r +
- w +
- a
62. Consider the following Python command:
File = open(‘Myfile’,’a’)
Which of the following option cannot be true ?
- ‘Myfile’ can be a text file
- ‘Myfile’ can be a csv file
- ‘Myfile’ can be a binary file
- ‘Myfile’ will be created if not exist
63. Which of the following is not true for the Python command:
File = open(‘story.txt’, ‘a+’)
- More text can be written into ‘story.txt’
- Content of the file ‘story.text’ can be read.
- Content of the file ‘story.text’ can be modified.
- Command generates an error, if the file ‘story.txt. does not exist.
64. Consider the following Python program segment:
File = open(‘Poem.txt’. ‘r’)
T = File.readline( )
Identify the data type of T :
- String (str)
- List
- Tuple
- Dictionary
65. Name the Python module need to be imported to invoke the function?
- csv
- pickle
- sql
- binary
66. Examine the given Python program and select the purpose of the program from the following options:
F = open(‘story.txt’, ‘r+’)
S = F.read( )
S = S.upper( )
F.seek(0)
F.write(s)
F.close( )
- to count the upper case alphabets present in the file
- to convert all alphabets into uppercase in the file
- to copy only the upper case alphabets from the file
- to remove all lower case alphabets from the file
67. seek( ) is a method of?
- csv module
- pickle module
- text module
- file object
68. csv module need to be imported in a program to invoke or use the function:
- write( )
- writerow( )
- writeline( )
- writelines( )
69. Examine the given Python program and select the best purpose of the program from the given options:
File = open(“Poem.txt”, “r”)
print(len(File.readline().split()))
File.close( )
- To count the number of words present in the file
- To count the number of lines present in the file
- To count the number of characters present in the file
- To count the number of words present in the first line of the file
70. CSV files are comma separated values saved as a_________
- text file
- binary file
- MySQL table
- random file
71. The creator of the open source Pandas package for data analysis in the Python programming language was__________
- Wes Mcinney
- Mc Pandas
- John D.Hunter
- Travis Oliphant
72. Which of the following is not bundled package with pandas?
- Six
- numpy
- pytz
- statistics
73. Which of the following is equivalent of and operator while using Boolean indexing on data frames?
- &&
- @
- &
- N
74. Find the output of the following Python code:
import Pandas as pd
M = pd.series({‘P’ : 10, ‘Q’ : 90})
print(M)
- P Q
10 90 - P 10
Q 90 - 0 P 10
1 Q 90 - 10 P
90 Q
75. What will be the output of the following Python code?
import pandas as pd
S = pd.series(20, 30)
print(S)
- TypeError
- 20 30
- 0 20
1 30 - 0 1
20 30
76. Fill in the blanks with an appropriate command from the given options to produce the output shown on the right side of the following code:
- D = pd.DataFrame(D, columns = A, index = B)
- D = pd.DataFrame(D, rows = B, columns = A)
- D = pd.DataFrame(D, B, i = A)
- D = pd.DataFrame(A, B, D )
77. What will be the output of the following Python code?
import numpy as np
B= np.array([20, 50, 80, 30])
print(B, B.size, B.shape)
- (20, 50, 80, 30) 4, (4,)
- [20, 50, 80, 30] 4, (4,)
- (20, 50, 80, 30) (4,) 4
- [20, 50, 80, 30] (4,) 4
78. Which of the following will help us to read the content of a CSV file ITEMS.CSV as pandas DataFrame ?
- IT-pandas.read(“ITEMS.CSV”)
- IT pandas.readcsv(“ITEMS.CSV”)
- IT-pandas.csv_read(“ITEMS.CSV”)
- IT-pandas.read_csv(“ITEMS.CSV”)
79. Consider the following import command:
import matplotlib.pyplot as PLT
Which of the following command will help us to draw a line chart for given values?
- PLT.line plot([100, 400, 200, 300])
- PLT.plotline([100, 400, 200, 300])
- PLT line([100, 400, 200, 300])
- PLT.plot([100, 400, 200, 300])
80. Which of the following is DDL command ?
- UPDATE SET
- DELETE
- DROP TABLE
- INSERT INTO
81. Which of the following is DML command ?
- INSERT INTO
- DROP TABLE
- CREATE TABLE
- ALTER TABLE
82. An attribute or a set of attribute which are used to identify a tuple uniquely is known as :
- Primary Key
- Foreign Key
- Alternate Key
- Candidate Key
83. Which of the following is not a valid relational operator used in SQL ?
- <=
- <>
- =>
- =
84. Which of the following is using wrong syntax for a SELECT query in SQL?
- SELECT * WHERE RNO>100 FROM STUDENT;
- SELECT * FROM STUDENT WHERE RNO>100;
- SELECT * FROM STUDENT WHERE RNO BETWEEN 100 AND 200;
- SELECT * FROM STUDENT WHERE RNO IN (100,101,105,104);
85. Which of the following will be the correct SQL command to add a new column FEES in a table TEACHER ?
- ALTER TABLE TEACHER
ADD COLUMN FEES FLOAT; - ADD COLUMN FEES FLOAT
INTO TEACHER; - UPDATE TEACHER
ADD COLUMN FEES FLOAT; - INSERT INTO TEACHER
ADD COLUMN FESS FLOAT;
86. Which of the following will display a list of tables in a database ?
- DISPLAY TABLES;
- SHOW TALES;
- SELECT TABLES;
- VIEW TABLES;
87. Which of the following will display information about all the employees from employee table, whose names contains second letter as “A” ?
- SELECT * FROM EMPLOYEE WHERE NAME LIKE “_A%”;
- SELECT * FROM EMPLOYEE WHERE NAME LIKE “%A_”;
- SELECT * FROM EMPLOYEE WHERE NAME LIKE “_ _ A%”;
- SELECT * FROM EMPLOYEE WHERE NAME = “_A%”;
88. Which of the following SQL command will help in incrementing values of FEES column in STUDENT table by 10% ?
- UPDATE STUDENT ASSIGN FEES = FEES * 1.1;
- UPDATE STUDENT SET FEES = FEES * 1.1;
- UPDATE STUDENT SET FEES = FEES * 10%;
- UPDATE STUDENT SET FEES 10%;
89. Which of the following is correct sequence in a SELECT query ?
- SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY
- SELECT, WHERE, FROM, GROUP BY, HAVING, ORDER BY
- SELECT, FROM, WHERE, HAVING, GROUP BY, ORDER BY
- SELECT, FROM, WHERE, GROUP BY, ORDER BY, HAVING
90. Consider the following tables and their respective degrees and cardinalities in a database called SCHOOL :
Select the degree and cardinality of the cartesian product of the tables STUDENT x TEACHER from the following options :
- 30 7500
- 200 325
- 30 325
- 200 7500
91. Which of the following set of functions is a valid set of aggregate functions in MySQL ?
- AVG(), ROUND(), COUNT()
- MIN(), UPPER(), AVG()
- COUNT(), MAX(), SUM()
- DATE(), COUNT(), LTRIM()
92. Find the output of the MySQL query based on the given Table-COACH (ignore the output header)
Query :
SELECT COUNT(GAME), AVG(SALARY) FROM COACH;
- 3 70000
- 4 35000
- 4 70000
- 3 35000
93. Find the output of the MySQL query based on the given Table – STUDENT (ignore the output header)
Query :
SELECT SEC, AVG (MARKS) FROM STUDENT GROUP BY SEC HAVING MIN (MARKS) > 80;
- B 83
- A 84
- A 84
B 83 - A 83
B 80
94. Consider the following tables in a database called SPORTS.
Database : SPORTS
Which is the best command from the following options to display the name of the player (PNAME) and their respective games (GNAME)
- SELECT PNAME, GID FROM PLAYERS ;
- SELECT PNAME, GAME FROM GAMES, PLAYERS
WHERE GAMES.GID = PLAYERS.G1D ; - SELECT PNAME, GNAME FROM GAMES, PLAYERS;
- SELECT PNAME, GNAME FROM GAMES, PLAYERS
WHERE P.GID = G.GID;
95. Following are the two tables in a MySQL database.
Database : COMPARTMENT
Select the command from the following option to display subjects (SUBNAME) and number of students registered in that subject in table RESULT.
- SELECT SUBNAME, COUNT(*)
FROM SUBJECTS, RESULT GROUP BY SUBNAME ; - SELECT SUBNAME, COUNT(*)
FROM SUBJECTS, RESULT ORDER B SUBNAME; - SELECT SUBNAME, COUNT(*)
FROM SUBJECTS NATURAL JOIN RESULT ORDER BY SUBNAME; - SELECT SUBNAME, COUNT(*)
FROM SUBJECTS NATURAL JOIN RESULT GROUP BY SUBNAME;
96. To establish the Python-MySQL connection, connect() methods is used with certain parameters or arguments. Which of the following is not a parameter / argument used with connect() method ?
- user
- password
- database
- table
97. commit( ) is required to be used after the execution of certain queries in Python-MySQL connectivity applications. Identify one such MySQL command out of the following options :
- CREATE
- INSERT
- SELECT
- DROP
98. While working on Python-MySQL connectivity, fetchall( ) method is used to get data from table. The method fetchall( ) returns –
- a list
- a tuple
- tuple of lists
- list of tuples
99. The method cursor( ) is used in Python-MySQL connectivity applications. This method is a member of :
- sql module
- pickle module
- database-connectivity module
- csv module
100. Which of the following clause is used with SELECT command in MySQL to avoid duplication of output rows.
- NO DUPLICATE
- UNIQUE
- DISTINCT
- NO REPEAT