1. MCQ'S. 1. It is
syntactically valid to define a function in to another function-true,false. -
(ans true)
2. mv command will change i-node no., any directiory entry, directory entry and i-node, none of these (ans- directory entry)
3. Default permission bits of a file when it is created it is created for the first time is controlled by- chmod,unmask,fmask,none (ans- none)
4. Which of the following is not a system call- getc, chmod, open, lseek (ans-getc)
5. In c language a class introduces a- a new scope, a new data type , a new data type but not a new scope, a new data type and new scope (ans d)
6.Effective document used for verification- reviewlog, systemlog, buckreport, checklist (ans review log)
7. V model of testing component design corresponds to-unit, alpha, integration, user acceptance (ans unit)
8. More effective on larger defects – blacbox, whitebox, glassbox, none (ans-blackbox)
10. Wwhich of the following doesn’t throw exception if allocation fails-buf=new(nothrow)char[LARGEBUF];
buf=new(throw)char[LARGEBUF];
buf=new nothrow char[LARGEBUF];
buf=new char[LARGEBUF];
11. Test is to –select non condition,identify developlers, identifying resourrces,all( ans-all)
12. Incorrect comparision of variable is indicated by-integeration, system, UAT, none (ans- none)
13. To effectively measure coverage you should use-test cases,test coverage,test tools,test data
14. 2-D arrays are sorted in-row major,column major,both, random (ans-both)
15. Using select statement you can do only –selection, selection &projection, selection and join, selection projection join.
16. 106. Sql does not support which data type-char,Boolean,varchar ,date (ans boolean)
17. Which one is not valid-#if,#else,#endif,#elseif
2. mv command will change i-node no., any directiory entry, directory entry and i-node, none of these (ans- directory entry)
3. Default permission bits of a file when it is created it is created for the first time is controlled by- chmod,unmask,fmask,none (ans- none)
4. Which of the following is not a system call- getc, chmod, open, lseek (ans-getc)
5. In c language a class introduces a- a new scope, a new data type , a new data type but not a new scope, a new data type and new scope (ans d)
6.Effective document used for verification- reviewlog, systemlog, buckreport, checklist (ans review log)
7. V model of testing component design corresponds to-unit, alpha, integration, user acceptance (ans unit)
8. More effective on larger defects – blacbox, whitebox, glassbox, none (ans-blackbox)
10. Wwhich of the following doesn’t throw exception if allocation fails-buf=new(nothrow)char[LARGEBUF];
buf=new(throw)char[LARGEBUF];
buf=new nothrow char[LARGEBUF];
buf=new char[LARGEBUF];
11. Test is to –select non condition,identify developlers, identifying resourrces,all( ans-all)
12. Incorrect comparision of variable is indicated by-integeration, system, UAT, none (ans- none)
13. To effectively measure coverage you should use-test cases,test coverage,test tools,test data
14. 2-D arrays are sorted in-row major,column major,both, random (ans-both)
15. Using select statement you can do only –selection, selection &projection, selection and join, selection projection join.
16. 106. Sql does not support which data type-char,Boolean,varchar ,date (ans boolean)
17. Which one is not valid-#if,#else,#endif,#elseif
Q: general form of #define directive is ??
#define macro name
#define char seq macroname
#define macroseq charseq
#define macroname charseq
#define macro name
#define char seq macroname
#define macroseq charseq
#define macroname charseq
Ans: 4
Q: which of the following doesn’t
throw exception if allocation fails-
buf=new(nothrow)char[LARGEBUF];
buf=new(throw)char[LARGEBUF];
buf=new nothrow char[LARGEBUF];
buf=new char[LARGEBUF];
buf=new(throw)char[LARGEBUF];
buf=new nothrow char[LARGEBUF];
buf=new char[LARGEBUF];
Ans: 1
Q: code walkthrough is done to
review .....
system requirement/requirement code/system and code/code only
system requirement/requirement code/system and code/code only
Ans: system
and code
Q:
for critical path
testing first approach should be
time critical / not much complex logic /stand alone
time critical / not much complex logic /stand alone
Ans: time critical
Q: which
testing is used for voating scenario ...
conditin coverage/boundaryvalue/state coverage/equivalence class partitioning
conditin coverage/boundaryvalue/state coverage/equivalence class partitioning
Ans:
D
Q: incorrect comparision of output variables is detected by
integratn/system /UAT/none
integratn/system /UAT/none
ANS: NONE
Q: for path coverage when performing____________tests it is
highly recommanded you to test all
paths
unit/system/acceptance/integration
unit/system/acceptance/integration
Ans: integration
Q: thread safe by default options
1. hashset
2. list
3. vector
4. all of the above
1. hashset
2. list
3. vector
4. all of the above
Ans: vector
**which command is used to add the values
for the newly inserted column
1.insert
2.update
3.merge
4.all
ans: insert
**syntax fa
superclass constructor?
super();
super(parameter list);
both a n b
supers();
ans: c
***which
cmd is used to display name of a pgm path in prompt window,in java?
rs,vs,cs,ls
ans: ls
**what does
cat command do:
creates a file
display contents of file
concatenate 2 files
all
ans: a or d
**Default
value of unmask
022
666
700
242
ans: 022
**Which
symbol is used to specify a group of characters in SQL server database?
# %
@ ^
ans:%
**True
about string class in java??
String class is immutable
Final
Abstract
ASAP
ans: 1&2
***if no
arguments are passed to a cmd then argc will hve
1.1
2.0
3.2
4.total
size of argv
ans:1
***Which
command is used to view the columns of a table using SQL code?
dp_columns
sp_columns
tp_columns
None of
these
ans:2
***data
dictionary will be accessed from
1.database
2.backup
files
3.external
files
4.all the
above
ans:1
***wich of
follwin is nt file stream opened automatically in unix prgm?
1.standard
i/p
2..standard
terminal
3..standard
error
4..standard
output
ans:2
***TRUNCATE
is discussed under
1.ddl
2.dml
3.dcl
4.tcl
ans:1
***choose
best
1.An
interfac in wch all methods difinitions are defined
2.An
interface consistin of no method
3 there is
no such marker interfac in java
4 An
interfac consistin of method prototypes only and not method definitns
ans:4
***command
to reveal details of user
w, finger,who,detail
ans: who
***Command
used to break the output in two streams :
tar tr
tail tee
ans:tee
***what
happens if exception is thrown by the finalize method?
the object
would not be garbage collected
the object
would still be garbage collected
it is
unpredictable
the
finalise method has nothing to do with garbage collection
ans:d
***the mv
command will change?
i-node
number
only the
directory entry
directory
entry and i-node number
none of the
above
ans:1 or 2
***how to
specify the start and end of each html table cell in a row
1.<tr>
</tr>
<th>
</th>
<tc>
</tc>
<td>
</td>
ans:4
**max size
of varchar2 data type_______
ans:4000
**In which
class/interface are wait and notify methods defined
class
object
runnable
none
ans:2
**how many
parameters can be passed to main()
1
2
3
many
ans:2
**which of
the following is not a file stream opened automatically in unix system?
standard
input
standard
terminal
standard
error
standard output
ans:2
**which
testing is done by programmers and not by testers in validation phase?
a.system
testing
b.usability
testing
c.acceptance
testing
d.unit
testing
ans:d
**in unix
aray value assigned is surrounded by
{}
[]
()
$
ans:()
**Best
suits marker interface
1;All methods defined
2;No methods in it
3:No marker interface in java
4:Contains prototype no methods def
ans:3
**Testing
concern with behavior of shole producct defined by whole project
Intdgratin
Alpha
Beta
System
ans:system
***Which
field types contain a fixed set of constants.
Class
Enum
Enum
Dnum
ans:enum
**testing
the desing is done in
unit testing
integration testing
system testing
acceptance testion
ans:4
**deep
cloning of an object can be acheived by------------
ans:
serialization
***which of
the following true abt string class in java
a. string
class is mutable
b. string
clss is final
c. string
class is abstract
options
a and b
a and c
b and c
b and c
ans:1
***Printf
(3+ 3+"arun kumar", "prateek");
Watvl be
output??
6arun
kumarprateek
Arun
kumarprateek
Umarprateek
Umar
ans:4
**whch
command is use for recursiv listing of files
$is -r
$is -R
$is -a
$is -F
ans:2
No comments:
Post a Comment