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

{ Random questions - Jo pdf mein nahi vo yaha

daal do, duplicate bhi chal jayenge no worries }

Questions Answers
1 Programming Fundamentals
2
3
4
5
6
7
8
9
10
11 Data Structures and algorithms
12 Concept of arrays in programming is primonly effective due to Loops
13 stack use in order to manipulate the data LIFO(last in first out)
14
15
16
17
18
19
20
21
22 Web Programming
we now go over some web development related stuff - about HTML CSS
AND javascript.now please see the code alongside and let me know which
23 options is correct a. option 1
let's start little easier on javascript tell me what will be the output of the code
24 alongside d.option 4
now tell me which of the statements mentioned alongside are correct. i.e
25 javascript does not support inheritance though opion 2
26 see the code alongside and let me know what will be the output hello, hey, hello
A developer told me that -it is not possible to include javascript and jQuery
27 code on single HTML page . Do you agree B.no
The variable str contains ids separated by a comma .I want to convert str into
28 an aaray of ids-which method should i use? ans: string.split(',');
29
30 A function like this is very common in JS what is it termed as? Ananymous Function
31
32
33 Linux & Shell Scripting
If you know ulimit then you may also know about soft and hard limits on
34 resources.tell me which statements are correct b.option 2
35 task.txt will run after giving Executing permission?? yes
#!/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"
36 Check the number are equal or not => Shell Script fi
because 7 is rxw and 1 is x and 4 is for r.......so
37 What will be the file permission after chmod 714 basically it should be rwx_xr_
38 Which command is used for to find file from current direcotry C. find . -name example.txt
#!/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
39 Complete the code of shell scripting done
40 Tell me how do i pass the output of a program to another linux? 2. Option 2 (using pipe)
1. Run the backup every day of every month from 11
41 00 11,16 * * * AM to 4PM
In shell script which sign is used to print the total number of
42 command-line argument passed $#
Which one of the following command will be used to searching "subject" text
43 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
44 do that which relational operator should I use?? a. -eq
45 which of the followinf command sets the execute permission to the shell file? a. chmod +x the_file_name
46 Which directory is used to store configuration files in linux? d. /etc
47 which of the following is responsible for print current process id c. echo $
48 Which of the following is not used as a wildcard in linux? c. $ is not used as a wildcard
#!/bin/bash

read area

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

}
49 Write a function to return area of square Area_square $area
Read the requirement and fix it.
if [ $a == $b ]
then
echo "a is equal to b"
50 end-if 4. end-if should be fi
In which directory Employee.txt will get copied??
51 cp Employee.txt .. b. Parent Directory
52 Which is the valid variable from below list? 3. VAR_1
53 Tell me ho do i pass the ouput of a program to another in Linux? 2. Using Pipe
2
3
54 Predict the output of the program?? 4
55 Output redirection can be achieved using? using > symbol
56 Permission for rwx_rw_rw 3. only owner can execute it
#!/bin/bash
cd /home/testdata
57 echo "$?" 4. 0
58 can u tell me which of the names mentioned alongside are linux distributions c. options 1,2,3
59 now tell me what the use of crontab c.option 3
which of the following command will be used for searching "subject"
60 text in syllabus.txt file? option 4
To make the script interactive which command is used? i mean rather than
61 providing command line arguments how do you get the input just in time c. read
62 you must be knowing about "su" command. tell me what the listed command is doing? c. option 3
if i save the shell script with task.txt instead of "task.sh" and just add
63 execute permission for the world to "task.txt". a. yes
64 here are a few statements about linux shell. please check which are correct d. option 1 and 3
let's have a look at redirections pipes, etc. in linux. tell me which of the
65 following symbols can be used to send the o/p to another prog c. >>
66 how do i pass the output of a program to another in linux b. option 2
ans. output
67 look at the command alongside, is somefile.txt being used for input redirection or output redirection. redirection
68 what is the purpose of "export" command in linux? a. option 1
68 Python Basics
while(true){ // Some code here
if(some condition)
{
break the loop
}
69 } it will run only if "some condition" is satisfied.
70
71
72
73
74
75
76
77
78
79 Software Testing
80 while teting a software , what should be the primary focus option no. 3 . prioritize
if you have to prepare testcases for a software, what will you use as your
81 primary reference option 1) requirements documents
82
83
84
85
86
87
88
89
90 Cloud
91 Tell me which of the points listed alongside are cloud essential characteristics c. option 1,2,3
92 who manages the application deployement and upgrades in saas offerning? b.option 1
93 The software that makes virtualization possible on a server is termed as ans: hypervisor
94
95
96
97
98
99
100
101 Agile and Scrum
can u tell me what is the term used for -a measure of the amount of works a
102 team can complete during a single sprint ans. velocity
now lets discuss about agile and scrum .tell which of the statements d. option 1 and
103 mentioned are correct 3
b. option 1 and
104 now choose the inputs to sprint planning meeting 2
can u tell me what is the term used for -a measure of the amount of works a
105 team can complete during a single sprint ans. velocity
106
107
108
109
110
111
112 SQL
113 which of the statement(s) about JOIN is correct. Option 1 & 2
there are depts which do not have any employees. I would like to have list of
114 such dept name in asc? select * from department where employee="null";
hamds on task list the first name of all the employees born on or before 1st select first_name from employee where dob<'1970-
115 January 1970 in asc order of first name. 01-01' order by first_name asc;
what is the command to empty a database table?I do not want to delete the
116 table, just delete all its contents. ANS: Truncate
117
118
119
option 1 & 4 1.function can return vaue 4.
which of the statement are correct procedure cannot return a value

You might also like