0% found this document useful (0 votes)
11 views

unix

Pdf papers

Uploaded by

Roshan Gupta
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

unix

Pdf papers

Uploaded by

Roshan Gupta
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

slNo question m1 m2 m3 m4 ans

Which command is used sort sh st sort -r sort -r


to sort the lines of data in
1 a file in reverse order?
Which command is used cat head more grep head
to display the top of the
2 file?
Which command is used rd rmdir dldir rdiir rmdir
3 to remove a directory?
Which of the following S s r C s
keys is used to replace a
single character with
4 new text?
Which command is used cat cut grep paste cut
to extract specific
5 columns from the file?
Which command sends wc infile >newfile wc <infile >newfile wc infile - wc infile | wc infile >newfile
the word count of the file newfile newfile
6 infile to the newfile?
Which of the following patch catch .ch All of the above All of the above
files will displayed by this
7 command cat *ch*
Which of the following is write mesg mail grep grep
not a communication
8 command.
Which of the following } { | $ }
keys is used to move the
cursor to the end of the
9 paragraph.
How to get a response startActivityToRes startActiivtyForRes Bundle() None of the startActiivtyForRe
from an activity in ult() ult() above sult()
10 Android?
How many applications Two One Many Zero Many
are there in a given task
11 in android?
What are the indirect launcherActivity preferenceActivity tabActivity all the above all the above
Direct subclasses of
12 Activity?
Layouts in android? Frame Layout Linear Layout Relative Layout All of the All of the above
13 above
What method you should onCreateOptions onCreateMenu() onCreateConte onCreateOptions
override to use Android Menu() onMenuCreated xtMenu() Menu
14 menu system? ()
Once installed on a device memory external memory security none of the security sandbox
device, each Android sandbox above
application lives
15 in_______?
You can shut down an onDestory() finishActivity() finish() none of the finish()
activity by calling its above
16 _______ method
Creating a UI (User Java and SQL XML and C++ XML and Java Dream weaver XML and C++
Interface) in Android
17 requires careful use of…
Dialog classes in AlertDialog ProgressDialog DatePickerDial All of the All of the above
18 android? og above
Which of the following is Service Activity Layout Content Layout
not an Android Provider
19 component ?
Which command is used remove rm mv del rm
20 to remove a file?
Which symbol is used to $ # : ; ;
separate more than one
command in the same
21 command line?
The agency that sits logic profile shell erxc shell
between the user and
the UNIX system is
22 called the
Which of the following grep wc touch cat touch
commands is used to
update access and
modification times of a
23 file?
Which command is used wc - 1 wc -c wc -w wc -r wc -c
to count just the number
24 of characters in a file?
Which of the following ls lp dir tar ls
commands is used to list
25 contents of directories?
Which command is used cd od of oct od
to display a file contents
26 in octal form?
Which command will be s S a i i
used with vi editor to
insert text to left of
27 cursor?
In vi editor, forward :pat :pat /pat All of the above All of the above
search is performed
28 using the command.
Which of the following write mail wall mesg wall
command addresses all
users who are currently
29 hooked on?
What built-in database is MySQL SQLite Apache Oracle SQLite
30 Android shipped with?
What is contained within The permissions The list of strings The source All other The permissions
31 the manifest xml file? the app requires used in the app code choices the app requires
What does the .apk Application Application Android Android Application
32 extension stand for? Package Program Kit Proprietary Kit Package Package
The ___________ file Manifest file Layout file Strings XML R file Layout file
specifies the layout of
33 your screen?
Android is based on Security Portability Networking All of these All of these
Linux for the following
34 reason
To create an emulator, Android Virtual Android Virtual Active Virtual Application Android Virtual
you need an AVD. What Display Device Device Virtual Display Device
35 does it stand for?
What operating system Linux Windows Java XML Linux
is used as the base of
36 the Android stack?
What is an Activity? A message sent A component that Context A single A single screen
among the major runs in the referring to the screen the user the user sees on
building blocks background application sees on the the device at one
without any environment device at one time
37 interface time
During an Activity onStop() onStart() onCreate() onRestore() onCreate()
life-cycle, what is the first
callback method invoked
38 by the system?
Which configuration file Layout file Property file Java source file Manifest file Manifest file
holds the permission to
39 use the internet?
What is the name of the src res bin gen gen
folder that contains the
40 R.java file?
What does the Android Java Activity Resource files Java source Libraries Resource files
project folder “res/” classes code
41 contain?
Which of the following ls -1 ls -t ls -i ls -R ls -t
commands is used to
obtain a list of all files by
42 modification time?
Which command is used pid du ps au ps
to display the
characteristics of a
43 process?
Which of the following ls cat file more file
commands is used to
identify the type of file by
44 context?
The filed separator in cut -a option -d option -r option -x option -d option
command is specified
45 with
Which of the following -c -i -d -s -s
options will be used to
display number of blocks
46 used by a file?
Which option will be -a -b -t -h -a
used with touch
command to change the
47 access time?
Which command is used cat vi ed lyrix cat
to display and create
48 files?
The second set of the group has read other has read owner has read group has write group has read
three permissions (r-) permission only permission only permission only permission permission only
49 indicates that only
Which column contains second fourth third first first
all details of the
permissions of a file
when you issue the ls -l
50 command?
Which of the following dir prompt $p$g pwd path pwd
commands is used to
display your working
51 directory?
While working with mail s r w d s
command, which
command is used to
save mail in a separate
52 file?
The command used to comp cmp do ccp cmp
compare the files is
53 known as
Which command is used shutdown haltsys cancel kill kill
54 to terminate a process?
The cp command uses: standard input file standard output file both input and neither neither standard
output file standard input input nor standard
nor standard output file
55 output file
How to display the 10th head -10 head -10 filename | head -9 head filename | head -10 filename
56 line of a file? filename | tail -0 tail -1 filename | tail -1 tail -1 | tail -1
How to remove the sed -i '1 d' sed -i d' filename sed -i '2 d' sed -i '3 d' sed -i '1 d'
57 header from a file? filename filename filename filename
How to remove the head -10 sed -i '1 d' filename sed -i '$ d' All of the above sed -i '$ d'
58 footer from a file? filename | tail -1 filename filename
How to get the nth word cut -f<n> -d' ' sed -n '10 p' echo "java" | rev sed -n '<n> p' cut -f<n> -d' '
59 of a line in Unix? filename|wc -c filename
Which symbol will be ^pat $pat pat$ pat^ ^pat
used with grep command
to match the pattern pat
at the beginning of a
60 line?

You might also like