Quiz
Part 1
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (20)
1Which one of the following statements about warning messages is NOT true?
- APrograms with warning messages will still run
- BCode that has warnings is underlined with a green squiggly line.
- CWarnings are displayed for unused local variables
- DWarnings are not displayed in the 'Error List' window
2Which one of the following describes the term 'run-time'?
Run-time is when:- Athe program is being edited.
- Bthe programmer needs to get some exercise
- Ccontrols can be placed on a form.
- Dthe program is executing
3Can properties of controls be set using the IDE at run-time?
- AYes
- BNo
4Which one of the following is NOT a method in System.Drawing.Graphics?
- ADrawRectangle
- BDrawSquare
- CDrawArc
- DDrawEllipse
5Which one of the following words describes the execution of program code contained in a method?
- Ainvoking
- Bcompiling
- Cmutating
- DNone of these
6Which one of the following characters is placed between a class or object name and a method name?
- Asemicolon (;)
- Bdash (-)
- Ccolon (:)
- Ddot (.)
- Eexclamation mark (!)
7Which one of the following may be specified in parentheses after a method name?
- Aa class
- Ban arithmetic operator
- Cproperties
- Darguments
8Which one the following precede comments in VB 2008?
- AOne or more apostrophes (')
- BTwo dashes (--)
- CA forward slash and a star (/*)
- DA semicolon (;)
9Which one of the following data types is suitable for storing a decimal number?
- AString
- BByte
- CInteger
- DBoolean
- EDouble
10What is the value of x after the following code has been executed?
Dim x as Integer
x = 17 Mod 2- A1
- B2
- C3
- D4
11Which one of the following values CANNOT be stored in a Double type variable?
- A4
- B4.349
- CSystem.Double.MaxValue
- D"4.349"
12Which one of the following is a valid variable name in VB?
- Aevent_2001
- Bmy event
- Cevent
- D2001event
13Which of one the following statements about functions is NOT correct?
- AFunctions can contain the 'Return' keyword more than once
- BFunction parameters can only be 'ByVal'
- CFunctions return a value
- DFunctions can return nothing
14Which one of the following does the 'Me' keyword refer to?
- AThe username of the current user
- BThe current method
- CThe current object
- DThe control currently selected on a form
15Which one of the following describes the difference between a Sub and a Function?
- ASubs cannot be event handlers
- BFunctions cannot return value types
- CSubs cannot be overloaded
- DSubs cannot return objects
16Is the following statement true or false?
Passing parameters ByVal is faster than passing parameters ByRef.- ATrue
- BFalse
17You are creating a method that will take two arguments and swap their values.
Which one of the following describes how the parameters of this method should be declared?- ABoth parameters should be declared as 'ByVal'
- BOnly one parameter needs to be declared as 'ByVal'
- CBoth parameters should by declared as 'ByRef'
- DNo parameters need to be declared
18Which one of the following statements about parameters is true?
- AParameters can only be passed through as 'ByVal'
- BParameters are arguments viewed from within a method
- CParameters can only be value types
- DParameters are always optional
19Which one of the following is NOT a purpose of methods?
- ARemoving duplication
- BHiding complexity
- CAllowing programmers to 'think at a higher level'
- DIsolating flexibility
20Which one of the following statements about method arguments is NOT correct?
- AArguments must be the correct type
- BArguments may be expressions
- CArguments may be object or value types
- DArguments may be in any order
Information
- Description
- Quiz on Part 1, created by Harkaran Matharu on 19/05/2018.
- Author
- Harkaran Matharu
- Language
- English
- Views
- 0
- Rating
- No ratings yet Rate this quiz