Friday, 19 December 2014

MISCELLANEOUS MCQ'S

**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