Practice Test


Q1) vbBlue is an example of intrinsic constant Show Answer


Q2) The availability of value of a variable is called as scope of a variable. Show Answer


Q3) Any variable that you declare inside a procedure is local in scope. Show Answer


Q4) For module-level declaration, place the declarations in the General Declarations section of the form. Show Answer


Q5) Global variables are available anywhere in a project Show Answer


Q6) All variables must be compulsorily declared in a Visual Basic program Show Answer


Q7) A declaration statement begins with the keyword Dim. Show Answer


Q8) More than one variable can be declared in a single declaration statement. Show Answer


Q9) The declaration statement is an executable statement Show Answer


Q10) The name given to a variable is also called an identifier. Show Answer


Q11) The type of data must be specified in a declaration statement. Show Answer


Q12) The Single data type is used to store words or phrases. Show Answer


Q13) The Date data type occupies 10 bytes of memory. Show Answer


Q14) The Integer data type occupies one byte for each digit in the number. E.g., the number 367 will require 3 bytes. Show Answer


Q15) The variant data type is the most efficient of all data types. Show Answer


Q16) The output of Val(3 + 7) is 3 Show Answer


Q17) The value returned by the Format Currency function is non-numeric. Show Answer


Q18) The output of formatting functions depends on the regional settings. Show Answer


Q19) Once a value is assigned to a variable it cannot be changed. Show Answer


Q20) The syntax for declaring a variable in VB is Show Answer


Q21) The data type that hold the numeric variable with values ranging from 0 to 255 is Show Answer


Q22) A general purpose variable that can hold most other types of variable value is Show Answer


Q23) Relational operator for “Not Equal to” is Show Answer


Q24) ‘^’ is the operator for performing the arithmetic operation. Show Answer


Q25) ________ enforces variable declaration before they are used. Show Answer


Q26) Which of the following statement is most appropriate for a variable: Show Answer


Q27) Which of the following is appropriate variable name to store the marks obtained by a student? Show Answer


Q28) Which of the following statement is the correct way to declare a constant TAXRATE that stores the value 0.30? Show Answer


Q29) The data type of a variable decides : Show Answer


Q30) Which of these is a disadvantage of variant data type? Show Answer


Q31) Which of the following named formats will return the day of the week, month and year of a given date? Show Answer