Informatics Practices
Covers Visual Basic 6.0 programming fundamentals and Oracle database concepts including SQL, functions, transactions, views, and joins. Suitable for Informatics Practices revision.
Questions
In VB 6.0, SDI stands for
- Standard Data Interface
- Single Document Interface
- Single Data Interface
- Standard Data Information
Sgn ( ) function is a numeric library function used to
- assign a sign to a number
- tally the sign of two numbers
- determine the sign of a number
- find out the special characters in a number
Which of the following is a selection statement in VB?
- For … Next Statement
- Do… While Statement
- If …Then Statement
- None of these
In Oracle, LPAD ( ) is a
- character function
- date function
- miscellaneous function
- numeric function
COMMIT, ROLLBACK and SAVEPOINT belong to
- DML
- DDL
- TCL
- 1NF
Which of the following is not a View in Oracle?
- Simple View
- Complex View
- Insert View
- Read Only View
A subquery is same as ______________
- join
- natural query
- outer query
- nested query
When one of the two identical columns is removed in join query, this is called________ query.
- Equi Join
- Natural Join
- Inner Join
- Unconditional Join
The container for procedures and declarations, commonly accessed by other modules within the application, is known as
- form module
- class module
- basic module
- standard module
Which of the following is the static variable?
Static Function trial() As String
Static i As String
Dim d As Double
i = A
trial = i
End Function
- i
- d
- i and d
- none of these
Format (5675.445, “00000.00”) will give the result as
- 05675.45
- 5675.4
- 005675.40
- 5,675.44
How many values do a Procedure in VB 6 returns?
- Many
- One
- Two
- No value
General Sub-procedure
- is created with an event
- tells the application how to perform specific tasks
- is linked to a command button
- can be triggered by the system
Identify the return type of the following function declaration
Public Triangle$ (Dim side as Single)
- String
- Integer
- Variant
- Double
A schema is a collection of _____________
- tables
- stored procedures
- tablespaces
- all of these
Identify the correct function declaration.
- Private Pseudo ( )
- Private Function Pseudo ( )
- Pseudo ( )
- Function Pseudo@ ( )
Which of the following is an invalid declaration of arrays?
- Dim arrstu (20) as Integer
- Dim arr(k) as Double
- Dim arrstu ( 1 To 20) as String
- Dim arrstu (2)
A library function used for producing a string with a certain number of repeating characters is
- string function
- instr function
- mid function
- left function
A bar on a menu that divides menu items into logical groups is called ____________
- Menu Bar
- Tool Bar
- Separator Bar
- Status Bar
Which of the following is the correct Sub-procedure declaration?
- Private Sub Month( )
- Call Month ( )
- Sub Dis_statement ( ) As Integer
- Sub FindError (intsal as Integer)
How many beeps will you hear in the following example?
Private Sub Command1_Click()
For i = 5 To 30 Step 5
For j = 6 To 12 Step 3
Print “Beep
Next j
Next i
End Sub
- 0
- 15
- 16
- 20
NVL ( ) function
- substitutes NULL value for a given value in a query result
- substitutes NULL value with a specified value in a query result
- substitutes NULL value with '00' in a query result
- substitutes space for NULL value in a query result
A menu which can grow and shrink at runtime is known as ___________
- dynamic menu
- shortcut menu
- popup menu
- dropdown menu
TRUNCATE command is used to
- delete table definition
- delete information from tables
- delete constraint on tables
- delete index on tables
What will be the output of the following code segment?
Static Function trial( ) As String
Static i As String
Dim d As Double
i = A
trial = i
End Function
Private Sub Command1_Click( )
Dim res As Integer
res = Val(trial())
Print res
End Sub
- A
- 0
- Error
- No output