You are on page 1of 11

{ Use 250+ pages PDF only }

Questions Answers

n=len(arr)
for i in range(0,n-1):
if(arr[i]!=arr[i+1]):
1,9 Python hands on - sumEven sumEven +=arr[i+1]
2 Let me know which statement mentioned about tuples and lists are correct Option 2 and 3
3
4 Scrum methodology has three roles product owner ,Scrum master,Team

# Creating an empty dictionary


myDict = {}

# Adding list as value


myDict["key1"] = [1, 2]

# creating a list
lst = ['Geeks', 'For', 'Geeks']

# Adding this list as sublist in myDict


myDict["key1"].append(lst)

5 dictionary in python using list print(myDict)


6 which of the following does stact uses manipulate data lifo
7 Which Statement will never get printed irrespective of values of ages of ram, sam and raj Statement C
8 html/css/ js code along side option to display select box Option 2 <select><option value="1">Maths</option>.........</select>
9 Refer to question no. 1. Both are same
10 A trainee programmer rewrote the code snipet B from code snipet A,Do you agree bot will function the same. No
11,3
3 To make a custom class iterable which method needs to be implemented option 1 ( __iter__ )
select deptno,count(empno) from emp
where deptno is not null
group by deptno
12 list departments and their no. asc order by deptno asc;
13
14 Typically who is responsible for daily stand-up meeting Scrum Master
15 I have a text with a quoted word in it, as mentioned below. What is the right way to represent it in Python? str = "'"That is a "unique" feature""" and str = "That is a \"unique\" feature"
16 department which do not have employee select deptno from emp where deptno is null or deptno=0;
17 What will happen if you run a code like the one shown in the snippet alongside? Option 2 It will run till "some condition" is satisfied
18
my_dict = {1: 'laptop', 2: 'TV', 3:'Smartphone'} for i,j in my_dict.items():
key_list = [] key_list.append(i)
value_list = [] value_list.append(j)
19 my_dict[4] = input()
20
21 task.txt will run after giving Executing permission?? yes
22 the process in which Python reclaims unused memory blocks at a periodic interval is termed as Garbage collection
#!/bin/bash
a=1
b=1

if [ $a == $b ];then
echo "Equal hai"
else
echo "Equal nahi hai"
fi

# "Alternative method"
# -eq is same as "=="

if [ $a -eq $b ];then
echo "Equal hai"
else
echo "Equal nahi hai"
23 Check the number are equal or not => Shell Script fi
24 have a look at the pseudocode alonside and answer the question option 3 and1
25
26 How to create a css class for div tag .div
27
28
29
30 Here is a typical python question (the string one) option 1
31 Bootstrap.min.css and bootstrap.css. Which statement is true. Option 1&3
32
33 Refer to Q.No.11
34 depends on context
35
36 without any html element promt()
<head>
<style>
body{backgroun-color:grey;}
37 h1{color:blue;}................</body> will be rendered with grey background and white text
38 set i=0; set j=0; set count =0; loop till i<10 100
39
arr = [10,19,16,22,10,19,18,12]
num = int(input())
arr.append(num)

sumNoDup = 0

if num == 10 or num == 19:


sumNoDup = sum(arr) - 58
elif num in [16,22,18,12]:
arr = [10,19,16,22,10,19,18,12] sumNoDup = sum(arr) - 58 - num
num = int(input()) else:
arr.append(num) sumNoDup = sum(arr) - 58 + num

40 sumNoDup = 0 print(sumNoDup)
41 cp Employee.txt parent
42 a=10 b=3 print(a**b) 1000
43
44
45
iset i = 0;

Set j = i; Set count = 0; Loop till i < 10

Set j = i; Loop till j < 10


{
Increment j by 1;

Increment count by 1;

Increment i by 1;

46 print(count)
47 term used tfor the artefact, which captures users req user story
48
49 In shell scripting which type of variable we cannot unset? readonly
50
51 google drive to save my document . what kind of model IaaS
52
53
54
55
56 What will be the file permission after chmod 714 because 7 is rxw and 1 is x and 4 is for r.......so basically it should be rwx_xr_
57
58
59
60 I have a text with a quoted word in it, as mentioned below.what is the right way to represent it in python? str=" " " That is a "unique" feature " " " and str = "That is a \"unique\" feature
61 got it Now tell me what will be the output in this code var test; alert (test); undefine undefined
62 Which command is used for to find file from current direcotry C. find . -name example.txt
63 refer to Q.36
64
65 acid properties in dbms state either entire transaction completes Atomicity
66
67
68 extract 40 from string use substring function
69 multiple variable assignment legal in pyhton x,y,z=.... yes, it is legal
70 charge customer according to usage option1 (metric measure)
#!/bin/bash

read user_input

name=( Sam Ram Pam Tam Top Leele Pat Ann Bob )
i=0
foundat=0
for name in ${name[@]};
do
if [ $name == $user_input ];
then
foundat=$i
echo "Name found at ",$foundat
else
i=$(($i+1))
fi
71 Complete the code of shell scripting done
72 Tell me how do i pass the output of a program to another linux? 2. Option 2 (using pipe)
73
74 00 11,16 * * * 1. Run the backup every day of every month from 11 AM to 4PM
75
76 in html if you want to choose mupltiple values at a time 3. Check Box
if 'abc' in {1: 'abc', 2:'pqr', 3: 'xyz'}:
print (1)
77 Print(2) answer 3 = 4
if 'a' in 'xyz':
print(3)
print(4)

78
79
80
In shell script which sign is used to print the total number of
81 command-line argument passed $#
#!/bin/bash

read area

Area_square(){
echo $(($area*$area))

}
82 Write a function to return area of square Area_square $area
83 variable use in js option 1 & 2
84
85
86
87 Scrum and kanban are two different strategies used to implement the agile methodology and not the replacement. TRUE
88 aggregate function option 3 & 4
Which one of the following command will be used to searching "subject" text
89 in syllabus.txt file?? grep "subject" syllabus.txt
Now look at the script along side I want to print "a is equal to b", in order to
90 do that which relational operator should I use?? a. -eq
91 option 1&3
92 which of the followinf command sets the execute permission to the shell file? a. chmod +x the_file_name
93 html drop down option 2
94 10 element will be take 10n bytes
95
96 Acceptance testing can be considered as black box testing yes
97
98
99 In javascript "this" always refer to depend on context
100 Story point per week is a measure of ? Velocity
101
102
103
104
105
106
107
108
109
110
111
112 when do you generate the flowchart before writing the program
113 Which of the following is not used as a wildcard in linux? c. $ is not used as a wildcard
114
115
116
117
118 Which directory is used to store configuration files in linux? d. /etc
119
120
121
122
123
124
125
126
127
128
129 Which is the binary equivalent of decimal number is 67? b. 01000011
130
131
132
133 how many times "Bad" will be displayed in the output? 8 times Bad will Display
134
135
136
137
138
139
140
141
142
143 Which keyword is used while writing a function in python? c.def
144
145
146
147
148
149
150
151
152
153
154
155
156 The common term used to adding data item to a stack? c. Push
157
158
159
160
161
162
163
164
165 which of the following is responsible for print current process id c. echo $$
166
167
168
Can I install windows OS for VM which is to be created on a HOST Server
169 runing linux? a. Yes, certainly
170
171
172
173
174
175
176 Same as 92.
177
#!/bin/bash
cd /home/testdata
178 echo "$?" 4. 0
179
180
181
182
183
184
185
186 inside a function, if a value is assigned to any indeclared variable, that variable get created with -- scop[e
187 Tell me ho do i pass the ouput of a program to another in Linux? 2. Using Pipe
188
189
190
191
192
193
194
195
196 Which is the valid variable from below list? 3. VAR_1
197
198
199
200
201
202
203
204
205
206
207
Read the requirement and fix it.
if [ $a == $b ]
then
echo "a is equal to b"
208 end-if 4. end-if should be fi
209
210
211
212
213
214
215
216
217
In which directory Employee.txt will get copied??
218 cp Employee.txt .. b. Parent Directory
219
220
221
222
223
2
3
224 Predict the output of the program?? 4
225
226
227
228 same as 178. 0
229
230
231
232
233
234
235 Python works without specifying variable types, she wrote something like this. x,y,z = 1,2,"Sam" Yes, This is perfectly legal
236
237 who owns product log and prioritizes Product Owner
238 Please write an SQL to get the count of employees who's first_name starts with letter 'A' SELECT * FROM employees WHERE NAME LIKE 'H%';
239 str="That is a "unique" feature" str="""That is a "unique" feature"""
240
241
242
243
244
245
246 a= 61, b= 34, c=10; print((a>45) or (b>50 and c>10)) TRUE
247 Permission for rwx_rw_rw 3. only owner can execute it
248
249
250
251
a =61, b=34, c=8; if((a>45 or b>50)and(c>10)){
if(a>45){
print((a>45 or b>50) and (c>10));
}}
else{
print((a>45) or (b>50 and c>10));
252 } TRUE
Accept and store a two digit integer in an array, Add only those numbers from the array which have only one
occurence, You should store the sum in variable named sumNoDup, The number entered may or may not be
duplicate, You should not print the output, sumNoDup is printed at the end.
arr = [10,19,16,22,10,19,18,12]
num = int(input())
arr.append(num)
253 sumNoDup = 0
254
255 Output redirection can be achieved using? using > symbol
Which statements along side dosent apply to binary search - i)The data to be searched must be sorted
256 ii)It returns position of the item and not value of the item Both are true
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316

You might also like