0% found this document useful (0 votes)
6 views3 pages

Java, Unix, and VB Skill Exam Questions

This document contains 27 questions about skills related to Java, Unix, and VB programming. The questions cover topics like commands to check logged in users or display files in Unix, methods in key and window listeners in Java, variable declaration and array usage in VBScript, and exception handling. The final 3 questions are sample code examples testing increment operators, final variable initialization, and string indexing in Java.

Uploaded by

Krishan Sirohiya
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views3 pages

Java, Unix, and VB Skill Exam Questions

This document contains 27 questions about skills related to Java, Unix, and VB programming. The questions cover topics like commands to check logged in users or display files in Unix, methods in key and window listeners in Java, variable declaration and array usage in VBScript, and exception handling. The final 3 questions are sample code examples testing increment operators, final variable initialization, and string indexing in Java.

Uploaded by

Krishan Sirohiya
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

SKILL EXAMINER QUESTIONS ON JAVA,UNIX AND VB

1>The command which tells how many users are presently logged in?
[Link]

2>Which option creates multiple links in Unix file system?


[Link]

3>How many methods does windows listener contain?


A.7

4>How many methods does key listener interface contain?


A.3(key pressed,key released,key typed)

5>The command rm test[1-3].txt


[Link] [Link],[Link],[Link]

6>which method is used to prevent overriding of files?


[Link]

7>VB script by default follows pass by reference


[Link]

8>Try block is also called as


[Link] block

9>which command is used to display all the files page by page


[Link]
More

10>which block is executed regardless of exception has occurred or not?


[Link]

11>DATE : 07/06/06$JULY is got by executing


[Link] +date %d$b

12> cat test1 test2 test3>test4. what is the output of the following
command??
If test1 hello
Test2 hi
Test3 how r u
[Link] hi how r u

13>what does option explicit do??


[Link] forces the variables to be declared before use.

14>Array in VB script is declared as


[Link] specifying the name of the array first followed by any no in ().

15>There are n no of catch blocks in 1 try block,how will the execution


takes place??
[Link] on exceptions

16>How does management and storage of information effectively done?


[Link] system,utilites,directories.

17>The proper format of exception block is


[Link]{}catch(){}finally{}

18>Redim variable in VB script should be


[Link] only single variable.
Can be resized

19>Which is the command which helps to find the location of another


command in unix??
[Link]

20>Whwn is the file not found exception raised?


[Link] file object is present in directory.

21>adjustment listener interface uses


[Link]

22>which exception is thrown while handling files


[Link] not found

23>How to get ‘c’ from string “abcd”


[Link](‘c’)
24>rm file1 file2 file3
[Link] all the files.

25>int[] sample= new int[25]


[Link][24] is 0
[Link] is 25

26>int[] number=int[5]
[Link][2] is 0
Number[5] is undefined
[Link] is 5.

27>a=6 b=7
X=a++ + b++
s.o.p(“x= ”+x + “a= “+a +”b= “)
A.x=13
a=7
b=8

28>in some code


final var1
var1=10
[Link] compiler error as final variable initilisation is done in second line.

You might also like