Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

{ 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
FROM employee INNER JOIN department
ON employee.dept.id = department.dept_id
3 GROUP BY dept_name;
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 refer Q-54
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 Refer to question 3
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()
my_dict={}
key=[1,2,3,4,5]
value=["Ram","Sham","Sam","Tam","Leela"]
for i in range(len(key)):
20 Create the dictionary from two lists. my_dict=dict(zip(key,value))
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 what is the correct statement with respect to scrum planning meeting answer -2
26
27 How to create a css class for div tag .div
a=[10,23,57,10,23,56]
a=set(a)
a=list(a)
sum = 0

for i in range(len(a)):
sum = sum + a[i]

print(sum)
28 sum all the non duplicate elements from the list.
29 refer to Q-19
30
31 Here is a typical python question (the string one) option 1
32 Bootstrap.min.css and bootstrap.css. Which statement is true. Option 1&3
33 Refer to Q.No.11
34 "this" in javascript refers to depends on context
35 Which method is used to custom class iterable __iter__
36 get input without any html element in javascript. promt()
37
38 <head> <style> body{backgroun-color:grey;} h1{color:blue;}................</body> will be rendered with grey background and white text
39 set i=0; set j=0; set count =0; loop till i<10 100
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 collision of hash in hashtable algorithm generate same hash for two different keys
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 Refer Q. 35 _iter_
49 In shell scripting which type of variable we cannot unset? readonly
50 what will be the size of stack1 after the code gets execute? SQL same length and elements in reverse order
51 google drive to save my document . what kind of model IaaS
52 refer Q 50 same length and elements in reverse order
53

arrMatch = []
sentence1="Hello how are you?".lower().split(" ")
sentence2="Hello I'm Fine, and you?".lower().split(" ")

len1 = len(sentence1) if len(sentence1)>len(sentence2) else len(sentence2)

for i in range(len1):
for j in range(len1):

try:
if(sentence1[i] == sentence2[j]):
arrMatch.append(sentence1[i])
else:
pass
except:
pass
54 put all the matched words in matchArr from two sentences -> sentence1 & sentence2 print(arrMatch)
55 SQL --- Select order date, count(*)-- None of these
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 Trainee programmer rewrote the code-----Code A snippet; Code B snippet ; are same? No
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 get input without any html element in javascript
64 Tell me what does agile methodology stands for option 1,2,3
65 acid properties in dbms state either entire transaction completes Atomicity
66 refer to Q.20
67 India china question option 3 Neither India Nor China can be the nextPower Check kro correct hai
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 refer Q 88
if snippet is same refer Q 39
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 00 11,16 * * * 1. Run the backup every day of every month from 11 AM to 4PM
arr = [10,19,16,22,10,19]
num = int(input())
arr.append(num)
sumEven = 0

for i in range(len(arr)):
if arr[i] % 2 == 0:
sumEven = sumEven + arr[i]

79 Python sumAppend() sumEven print(sumEven)


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 used in js option 1 & 2
84
It sequentially checks each element of the list until a match is found or the whole
list has been searched. A linear search runs in at worst linear time and makes at
85 linear search most n comparisons, where n is the length of the list.
86 refer Q 246
87 Scrum and kanban are two different strategies used to implement the agile methodology and not the replacement. TRUE
88 aggregate function max and count(option 3 and 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 and 2
92 which of the followinf command sets the execute permission to the shell file? a. chmod +x the_file_name
93 html drop down <select><option value="1">............</select>
94 10 element will be take 10n bytes
95 In stack 2 - Top element will be 1 and bottom element will be 5
96 Acceptance testing can be considered as black box testing yes

97 4
98 a is equals to b -eq
99 In javascript "this" always refer to depend on context
100 Story point per week is a measure of ? Velocity
101
102 option 1 & 3
103
104
A cloud infrastructure which is able to automatically expand or compress the infrastructure such as computing,
105 memory and storage referred as IaaS and Rapid Elasticity
106
107 Refer Q 32
108 Refer Q 27
109 Refer Q 40
110 An acceptance criteria should be part of a user story and not a part of sprint backlog TRUE
for i,j in my_dict.items():
python code snippet key_list.append(i)
111 my_dict = {1: 'laptop',2: 'Tv',3:'Smartphone' }...... value_list.append(j)
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 JQuery is used to execute SQL queries within the browser using java script No
115 items may be shared in a cloud network routers
116 Refer Q 95 option 3 stack1:5, stack2:1
117 Refer Q 32
118 Which directory is used to store configuration files in linux? d. /etc
119 stack reverse
120
x = 100
x = x/8
121 print(x) 12.5
122
123 1. Requirement's document
124 4
125
126 which of these two is defined as the seven principles of software testing option 2
127 what is the use of NaN() function in javascript a given value is an illegal number or not
128 tree and other data structures option 1 and 2 1. even nodes......2. 2^k nodes at k-th level
129 binary of 67 in decimal b. 01000011
130 story point per week is a measure of velocity
131 root cause not a problem Application hangs while processing monthly salary
132
133 size of stack1 after the code gets execute 0
134 how many times "Bad" will be displayed in the output? 8 times Bad will Display

135 my_list=["fine", "ok", "cool", "alright"]


136 x=100; x=x/8; print(x) 12.5
137 VM a vm can have different OS than that of the host OS
def func(x=0,y=0)
138 return(x+y) option 1 & 2 1. func(2,4) 2. func(x=2, y=4)
139
140
141 who is responsible to conduct the daily standup meeting scrum master
142 refer Q 32
143 Which keyword is used while writing a function in python? c.def
144 acceptence testing can be considered as blackbox yes
145
146 the variable str contains ids separated by commas. String.Split(',');
147
148 refer Q 8
The team named in Agile, covers at the members in the project team except the
Scrum Master and Product Owner
149 Team Includes Business Analysts, Quality Analysts, Developers and Architects
150 Its not possible to include js and jquery code can write on single html page yes
151 0
152 refer Q 32
153 refer Q 94
154
155 pause the script for sometime time.sleep
156 The common term used to adding data item to a stack? c. Push
SELECT CITY FROM EMPLOYEE order by where salary=(SELECT MAX(SALARY)
157 city of employee with highest basic salary FROM EMPLOYEE)
158 Admission to college ?? 20 UK
159
160 A function which is very common in javascript. anonymous
161
162 algoritghm while searching in a 51 items having unique values option1 and 2

163
164 the fastest possible way to access the element in random array using index
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 x,y,z=1,2,"sam" TRUE
172
173
174 Widely defect tracking tool!! Bugzilla, Jira, backlog,
175
176 Same as 92.
177
#!/bin/bash
cd /home/testdata
178 echo "$?" 4. 0
179
180
181
182
183 Variable without int data type is legal?? It is legal
184
185
186 inside a function, if a value is assigned to any indeclared variable, that variable get created with -- scope Global variable
187 Tell me ho do i pass the ouput of a program to another in Linux? 2. Using Pipe
188
189
190
191
192
x = 101
def func():
x = 67
func()
193 print(x) 101
194
195
196 Which is the valid variable from below list? 3. VAR_1
197
198 When do you use flowchart? before writing program
199
200
201 ------------- LinkedList, stack and queue Time complexity of adding elment in middle is 0(1)
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 Gmail/sales force/microsoft office 365 are which type of cloud service? SaaS
2
3
224 Predict the output of the program?? 4
225
226 Transaction should be enabled to ensure data integrity. option 1 and option 2
227 hamds on task list the first name of all the employees born on or before 1st January 1970 in asc order of first name. select first_name from employee where dob<'1970-01-01' order by first_name asc;
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 -------- /home/myfolder/project/src/core
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 'A%';
239 str="That is a "unique" feature" str="""That is a "unique" feature"""
do
echo $i $j
$(($i+1))
done
$(($j+1))
240 -------- done
241
242
243
option 2 and 3
every tree is a graph
244 About trees and graphs some graphs can be tree
option 1 and 2
245 For div tags to render next to each other in a flex layout. Which of the points are mandatory? display property of the style for the container div has to be "flex"
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 Option 1 only


arrUnique = []
sentence = input("Enter sentence : ")

sentence = sentence.split(" ")


sentence = set(sentence)

for i in range(len(sentence)):
arrUnique.append(list(sentence)[i])

249 Add Unique element in arrUnique print(arrUnique)


250 changing the j = i Less than 100
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

253 refere question 28


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

You might also like