Saturday, 10 January 2015

MCQ

 MCQS - plz recheck the answer

1.default permission bits of a file when it is created for the first line is controlled by:
chmod
unmask
fmask value
none
Ans :

2.How many null values r allow in unique key column
Ans : Infinite

3.it is syntactically valid to define a func in to anothr func
True
False
Ans : True

4.Find Error
clas Dowhile{
                public static void main(String args[]){
                                int count=1;
                                do{
                                                System.out.print("Count              is"
                                                +count);
                                                count++;
                                }while(count<<11)
                }
}
Ans : No error

5.Find the output
int y,x=1,toyal=0;
while (x<=5) {
y=x+x
total+=y
++x;}
total?
Ans : 30

6.which method name follows the javabeans std:
add size
getcust
deleterep
putdimension
Ans : Getcust

7.you cannot close() method in
drivermanager object
statement obj
result set
connection
Ans : Drivermanager Object

8.command used to display name of path in prompt.
opn; rs ls vs cs
Ans : ls

9.at which stage of inspection process each inspector examines d work product to fond defect
opn; planning overview preparation inspection
Ans: preparation

10.not a javascriptwindowobject func?
alert
prompt
confirm
all
Ans all

11.system specification LHS of the V life cycle
correesponds to the--------
system testing
integration
unit
acceptance
Ans: system testing

12.boundary value analysis and cause effect graphing are methods of
white box testing
black nox
compatability
security
Ans: Black box

13.garbage collector daemon chooses which of these objects to perform its function??
reachable obj
unreachable obj
phantom obj
all of these

Ans: unreachable obj.

14.invalid format string:
%ld
%lf
%lu
%lc
Ans %lc

15.write() method is associated with which javascript object
window
frame
form
document
Ans : Document

16.we cannot define constraints on-------------database??
char
lob
varchar
int
Ans: lob

17.static method pertainng to a state of a thread
suspend
resume
yield and sleep
all
Ans: yield and sleep

18.field value can be found at the intersection of:-
two table
two rows
two columns
a row and a column
Ans : a row and column

19.work products that undergoes reviews are:
prepare test beds
system build
system design
identify bottlenecks
Ans: System Design

20.which directory contains the directory and blocks special files in unix
opn; etc bin dev temp
Ans: etc

21.used to indicate mark elememt is deprecated and no longer used
opn; deprecated $deprecated @deprecated ?#?deprecated?
Ans: @deprecated

22.defects can also be tracked by:
text file
excel sheet
word file
none of these
Ans. Excel sheet

23.mv command will change
i-node no.
ony directiory entry
directory entry and inode
none of these
Ans- i-node no.

24.which of the following metacharacters holds their special status within double quotes?
?
*
$
&
Ans: $ &

25.which stemement is true
1;intersect doesnot ignore null values
2;reversing intersected tables doesnot alter result
Ans. Both

26.effective document used for verification
opn;reviewlog systemlog buckreport checklist
Ans :review

27.int bar=1;{
int bar=2;
println(bar);
}
opn;compile error bar=1 bar=2 run time error
Ans: compile error

28.java isnan when an object on page uses focus which event occurs: on focus on blur on load on change
Ans: on blur

29.which is valid java script identifier:first name, _123 123_ a*b
Ans: _123

30 .............. values are not ignored during duplicate checking in UNION
NULL
0
Sting
Date
Ans: NULL

31.Assume that there are two cases. A is the bas class nd B is the derived class. the default contructer of which class will be called first..
... Base class
...derived class
..depends on the situation
...a run tym eroor will occur
Ans: base class

32.OUTPUT????
class abc
{
public static void main(String args[])
{
byte a=64,b;
int i;
i=a<<2;
b=(byte)(a<<2);
System.out.println("a="+a);
System.out.println("i and b="+i+" "+b);
}
}
Ans: a=64
i and b=256 0

33.Content of ur webpage r contained directly within which object
Window
Browser
Document
Frame set
Ans :Document

34.Verification is
System
Unit
Static
Dynamic
Ans:static

35.Illegal symbol for table name?
$
#
!
_
Ans: !

36.Which isnot a file stream opened automatically in a unix?
Std inpit
Std output
Std err
Std terminal
Ans: std terminal

37.start and end od HTML table cell??
Ans <tr></tr>

38.where can objects store its states?
directory,paths,fields
Ans.fields

39.method - local class > can b marked
final/abstract/public/static
Ans:

40.what kind of envi may a pgm runon java platform? hardware/software
Ans:

41.which of the following is req 4 construction of singly linked list??
ans : malloc()

42.grant and revoke are discussed under?????
DML, DDL, DCL,TCL?
Ans:DCL

43.which command is used to interactively delete files
rm, rm -d, rm-I,rm-a
Ans rm -i

44.misunderstanding of what modules should do??
failure/error/fault/ignorance
Ans:

45.<script> alert("when will i appear"); </script><h1> from body
Ans: on page load

46.what could one use to create threads in java? a) runnable interface (b) thread class (c) runnable class (d) thread interface
Ans: a b

47.wht is the purpose of code? protected object clone() throws clonenotsupportedexception
Ans: creates and return copy of this object and create n return exception of this object

48.does anabstract class can have both abstract nd concrete methoks????
Ans:Yes

49.which operator compares an object to specified type in java?
Ans; instanceOf

50.marker interface???????
Ans:an interface consisting of no methods

51.wch of foll methods belong to object class
a)run()
b) notify()
c) start()
d) wait()
e) notifyAl()
Ans:b d e

52.%lf stands for?
Ans: long double

54.wc command when used with arguments
a>give warning msg to i/p the file name?
b>is not a valid command?
c>wait 4 user to type in as i/p and displays count 4 that i/p
Ans: b

55.cat x?
Ans : read from file x

56:................. is a synoym for USER_TABLES
1 TABLES
2 TAB
3 TABS
4 TABLE
Ans tab

57. aftr retesting if the defect fix is satisfactory the it is marked as?
1 setisfactory
2 working
3 closed
4 as is

58.which data structure needs nly 1 pointer to manage links?
1 singly linked list
2 double lnkd list
3 doubly circular linked list
4arrays

59.which of the following are valid return statements?
1 return(10);
2 return (10.15);
3 return;
option
1 one
2 two
3 1&2
4 1 2 3



if major flaws occur toward the bottom of the program, this approch is advantegious?
1 top down testing
2 botttom up testing
3 big bang testing
4 critical path testing              bottom up
.............
which of these commands is not a filter?
1 sort
2 grep
3 cal
4 cut                          cal
...........................
_______________ is process of evaluating system or structure or documentation
opn;static dynamic simple cross browser                        ans dynamic
..........................
which of the following is not a set operator?
1 UNION
2 JOIN
3 MINUS
4 INTERSECT                  join
..................................
cd will return the exit status   
opn;1for success 1for failure 0for failure none              none(check)
...............................
2 prfrm operations such as setw, setprecision on strems, which header files has to be included?
1 iostrem
2 fstream
3 sstream
4 iomanip                  iomanip
..............................
ecursive listing of all
opn;4ls-r 4IS-R 4IS-a 4ls-F                 4IS-R
.....................................................................
unit testing also known as         module or component(chk)

..........................................................................

form of functional testing opn;boundary usability performance security              ans boundary
....................................................................................................
incorrect comparision of variables is directed by:
integration testing
system testing
UAT
none               ans none(chk)
............................................
which of the followinng unix command will not take the user student5 to this personal home ddirectory?
1 cd
2 cd/~
3 cd ~
4 cd~ student5                optn2 (chk)
......................................
COMMANDS TO FIND ALL PROCESSES RUNNING ALONG colonel process
opn;ps-Kf ps-f ps-ef ps-A            ps-ef
................................

what is garbage collector
opn;low prioritythreat highprioprity threatprioritykeepchanging notpredictable


...........................
when new classes of objects are developed by this process, the resulting collections of classes is called a class....
1 collections
2 group
3 hierarchy
4 of troublemakers
family                              as 1
...............................

................ is a synoym for USER_TABLES
1 TABLES
2 TAB
3 TABS
4 TABLE          tabs
...........................
the mv command will change;
1 i-node nmbr
2 nly the directory entry
3 directory entry & the inode
4 none of the avobe        i-node number
...............................
in main (int argc,char " argv[] ), the argument argc represents.....
1 array index of argv
2 count of ttl number of arguments
3 last index value of argc
4 all of the above          tatal no of arguments

......................
test is to
opn;select, non condition, identifydevelopers identifyresources all

...............
which data structure needs nly 1 pointer to manage links?
1 singly linked list
2 double lnkd list
3 doubly circular linked list
4arrays
.....................................









Only the system having the token can transit in?
tokrn ring
ethernet
FDDI
ans.all the above
in ITIL negotiate Agree and documents the service levels is the objectives?
capacity management
supplier manage
event manage
ans>servive levai mana
which of this is a backup utility?
NAgios
VLC
netbackup
ans may be>all the above
------------- allow classes structs and interfaces to be broken into multiple pieces stored in diff source file
a)static type
b)partial type
c)abstract type
ans>d)shield type





to prevent defects processes must be
ans>altered
followed
ignored
none

<script>
alert("when will i apper:");
</script>
<h1>From body</h1>
output ???
Top of Form
ans>Alert msg displayed and after click on ok, msg in heading displayed

If you do not initialize a static array then wat ll be the default value set to the array element??
1.an undetermined value
ans>2.0
3.1
4.-1

can static variables of a class can be serialized?
Ans> Cannot be serialized

what is the number of octates for ipv4?
Ans> 4

Which is more effective on larger units of code?
Ans>black box testing

int main(int argc,char *argv[]),the argument argc represents?
array index of argv
ans>count of total number of arguments passed
last index value of argc
all the abv

the data dictionary will be accessed from?
ans>database
backup files
external files
all the above

A router separates A broadcost domain BCollision domain?
onlu A
Only B
ans>Both A & B
neither A nor b

which one will you use to make sure that a process is killed?
options-

kill-7
kill-8
ans> kill-9
kill-10

which data structures needs 1ly 1 pointer to manage links?
ans>1.single linked list
2.double link list
3.doubly circular linked list
4.array

effective document used for verification
ans>review log
system log
bug report
check list

which converter is used for a date and time conversion-locate specific full name of month?
ans>tB
tD
tT
all the above

which of the program language is used to substitute character in script 
Grep
sed
ans>awk
char
getit


virtual IP address provides the advantage of------------ compared to the physical IP address?
high availability
unlimited
IP address without network address
ans>all the above

void main ()
{
printf(3+"Andy");
getch();
}

1.Andy 
2.And 
ans>3.y
4.d

two dimensiionsonal arry element sorted in ?
1.column major order
ans>2.row major order
3.both
4.random
Bottom of Form

Top of Form




which directory contain directory and block specific files
options
a.etc
b.bin
ans>c.dev
d.temp

whch is not a javascript window obj func??
1.alert
2.prompt
3.confirm
ans>4.All d abv

datatypes supported by sql
1.character
ans>2.boolean
3.date
4.varchar

walkthrough is ------------------ analysis technique
dynamic
ans>static
both a nd b
testing
which s nt a systm call??
chmod
open
iseek
ans>getc
The wc command when used without args
1.gives a warning msg
ans>2.waits for the user to type in as output and then displays 
3.its not a valid comment
4.none

Bottom of Form


No comments:

Post a Comment