Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
6. Which group does Winrunner ,Load Runner ,SQA Suite fall under ?
a) Databases
b) Automated Test Tools
c) Operating Systems
d) Rapid Application Development Tool
7. i = 0;
j = 0;
for(j=1;j<10;j++)
i=i+1;
In the (generic) code segment above what will be the value of the variable i at completion ?
a) 0
b) 1
c) 3
d) 9
8. Which of the following statements is true when a derivation inherits both a virtual and non-virtual
instance of a base class ?
a) Each derived class object has base objects only from the non virtual instance
b) Each base class object has derived objects only from the non-virtual instance
c) Each derived class object has base objects only from the virtual instance
d) Each derived class object has a base object from the virtual instance and a base object from non-
virtual instance.
9. class Word
{
public:
Word(const char*,int = 0);
};
Referring to the sample code above what is the minimum number of arguments required to call the
constructor ?
a) 0
b) 1
c) 2
d) 3
10. Which one of the following represents a correct and safe declaration of NULL ?
Referring to the sample code above ,which of the following could you use to make the standars I/O
Stream classes accessible without requiring the scope resolution operator ?
12. Which one of the following statements allocates enough space to hold an array of 10 integers that are
initialized to 0 ?
a) Primary Key
b) Uniqueness constraint
c) Index
d) Common Key
14. Views can typically be constructed using all of the following operations EXCEPT__________.
a) Other views
b) Aggregate Functions
c) Distinct clauses
d) Order by clauses
a) Avoid “hotspots”
b) Keep transactions as short as possible
c) Always use the table level locking available
d) Use database stored procedures whenever possible
18. What is the command to search all files in your current directory for the word “plasmodium” ?
a) grep plasmodium *
b) find plasmodium –all
c) lookup plasmodium *
d) All of the above
19. #!/bin/ksh
x=jello; y=jelly
if [[$x!= $y]]
then
print $x is unequal to $y
else
print $x is equal to $y
fi
Which one of the following is the output when above script is run?
a) The test command compares the strings Smiley and Spy and since they are not equal ,returns an exit
status of 1 ,which is echoed out .
b) The test command compares the strings name and SPY ,and since they are not equal ,returns an exit
status of 1,which is echoed out .
c) The test command compares the strings Smiley and SPY and since they both begin with capital “S”
,it returns an exit status of 0,which is echoed out.
d) The output of the script is $? Since that string has no special meaning in the Korn Shell.
22. How do you print the first 15 lines of all files ending by”.txt” ?
a) print 15 .txt
b) cat *.txt –length =15
c) head –15 *.txt
d) head –15.txt
a) grep
b) sed
c) tee
d) fgrep
24. What would be the result of attempting to compile and run the following piece of code ?
Class Question
Public static void main(String args[]){
String s1= “ab”;
String s2= “abcd”;
String s3= “cd”;
String s4= s1+s3;
S1= s4;
System.out.print(“s1”+((s1==s2)? “==” : “!=”)+ “s2”);
}
}
a) s1 == s2
b) s1 != s2
c) s1
d) s1 == “abcd”