Regent University College Of Science And Technology

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Regent University College Of Science And Technology as PDF for free.

More details

  • Words: 210
  • Pages: 2
REGENT UNIVERSITY COLLEGE OF SCIENCE AND TECHNOLOGY VISUAL BASIC .NET – QUIZ TWO Studen t ID

Dat e

Signat ure

Questions

Weig ht

Answer all questions 1. What is the difference between a Value type and a Reference type?

1

2 2. List two data types that are of Value type and Reference type

each.

3. Which of the following are valid variable names in VB.NET?

i. ii. iii. iv. v. vi. vii.

Area_1 2_Float _2Float Error string Percent% module twenty&one

a) valid b) invalid a) valid b) invalid a) valid b) invalid a) valid b) invalid a) valid b) invalid a) valid b) invalid a) valid b) invalid

1 1 1 1 1 1 1 0.5

4. What is the meaning of “Dim firstname$”?

0.5 5. What is used for exponentiation in VB.NET?

________________

6. Consider the following program? Dim words, digit As Integer Dim thisString As String = "" For words = 3 To 1 Step -1 For digit = 0 To 1 If digit < 5 Then thisString &= CStr(digit) End If Next digit thisString &= " " Next words MsgBox(thisString)

What will be printed in the Message Box? __________________ 7. What is the difference between the do...until and the

do...while?

8 1

Mark

TOT AL

20

Related Documents