.NET and COBOL Programming Quiz
A quiz covering fundamentals of .NET/VB.NET programming and COBOL programming languages, including data types, exception handling, collections, and compiler options.
Questions
dual main is possible
- True
- False
Which among this is a valid Method of File Class ?
- ReadAllLine()
- ReadAllBytes()
- ReadAllTexts()
- WriteAllLine()
- WriteAllTexts()
What compiler option would you use for dynamic linking?
- DYNAM
- DYN
- DYNA
- None of the above
Default compiler options with respect to subscript out of range checking.
- SSRANGE
- NOSSRANGE
- RANGE
- None of the above
01 ws-loop pic 9(02) value 0. Perform varying ws-loop from 1 by 1 until ws-loop = 100 Dispaly 'Have a good day' end-perform. How many times 'Have a good day' will be displayed
- 100
- 99
- 101
- None of the above
01 ws-var1 pic 9(9).99. 01 ws-var2 pic 9(9)v99 value 10. move zeros to ws-var1. compute ws-var1 = ws-var1 + ws-var2. What would be the value of ws-var1.
- 10
- 10.00
- 10.0
- None of the above
if a not = b and c Means
- a not = b and a not = c
- a not =b or a not = c
- Error in syntax
- None of the bove
We can redefine an X(10) field with a field of X(20)? . Both are diclared in different level numberes.
- True
- False
How many bytes does a S9(7) COMP-3 field occupy ?
- 4
- 3
- 2
- None of the above
What is the maximum length of a field you can define using COMP-3?
- S9(18) COMP-3
- S9(20) COMP-3
- S9(80) COMP-3
- None of the above
What is COMP-1?
- Single precision floating point. Uses 4 bytes.
- Double precision floating point. Uses 8 bytes.
- Double precision floating point. Uses 4 bytes.
- None of the above
which one of the following is a scope terminator?
- end-evaluate
- exit
- continue
- None of the above
A class may implement several interfaces but A class may extend only one abstract class
- True
- False
Which is the base class for All built in Controls?
- User Control
- Custom Control
- Control
- Activex Control
How do you Dereference an Object in VB.NET
- By setting the object to Null
- By setting the object to Nothing
- With Close keyword
- None of the above
Which of the following are the valid method of command object
- ExecuteNonQuery & ExecuteScalar
- ExecuteQuery & ExecuteScalar
- ExecuteParameter
- None
Which is not a collection type in VB.Net
- Hashtable
- ArrayList
- Heap
- Stack
You are working on a debug build of an application. You need to find the line of code that caused an exception to be thrown. Which property of the Exception class should you use to achieve this goal?
- Data
- Message
- StackTrace
- Source
You need to identify a type that meets the following criteria Is always a number Is not greater than 65,535. Which type should you choose?
- System.UInt16
- int
- System.String
- System.IntPtr
How do you trigger an event in VB.NET
- RaiseEvent keyword
- TriggerEvent keyword
- AddEvent Keyword
- None