Home » BASIC PROGRAMMING 3 OBJECTIVE QUESTIONS

BASIC PROGRAMMING 3 OBJECTIVE QUESTIONS

1) How many return statements are allowed in a Function Procedure?

a) 1.

 

b) 3.

 

c) 2.

 

d) There is no limit.

 

 

2) Which method will return the number of elements in an array?

a) Dimension.

 

b) Length.

 

c) Number.

 

d) Size.

 

 

3) In the statement, Dim Days (7) as String, what part of the array does the number 7 refer to?

a) Array name.

 

b) Datatype.

 

c) Lowerbound.

 

d) Upperbound.

 

 

4) What is required to reference an element in an array?

a) Array name.

 

b) Index value of the element.

 

c) Element value.

 

d) Both A and B.

 

 

5) Which method will arrange the elements of an array in alphabetical order?

a) Arrange.

 

b) Assemble.

 

c) Order.

 

d) Sort.

 

 

6) An array of controls can be populated by:

a) assigning existing controls to the array.

 

b) creating controls and assigning them to the array.

 

c) borrowing controls that will automatically assign them to the array.

 

d) Both A and B.

 

 

7) What datatype can an array not hold?

a) TextBoxes.

 

b) Labels.

 

c) Structures.

 

d) An array can hold all of the above.

 

 

8) The RND statement will generate a(n):

a) decimal value between 0.0 and up to 1.0, but not including 1.0

 

b) decimal value between 0.01 and 1.00

 

c) integer value between 0.01 and 1.00

 

d) decimal value between 0.0 and 1.0

 

 

9) Which function returns the numbers represented in the string “$56.7”?

a) Abs

 

b) CDbl

 

c) Rnd

 

d) Val

 

 

10) What will the function Val ($ 165.30) return?

a) 0

 

b) 165

 

c) 165.30

 

d) An error

Leave a Reply

Your email address will not be published. Required fields are marked *

×

 

Hello!

Click one of our contacts below to chat on WhatsApp

× How can I help you?