net State the default value for each option Option Explicit Option Strict

Net state the default value for each option option

This preview shows page 5 - 6 out of 6 pages.

13- Differentiate between Explicit and Strict options in VB.net. State the default value for each option. Option Explicit Option Strict - Forces variables to be declared before using. - An attempt to use an undeclared variable will cause runtime errors. - Restrict implicit data type conversions to only widening conversions. - Data loss can occur when the value of one data type is converted to a data type with less precision or smaller capacity. - Default value is set to On. - Default value is set to Off. 14- What is wrong with each of the following? a) shoNum + shoNum2 = shoTotal Must declare the variables first b) Dim decPrice As Decimal = " $4.99 " cannot put dollar symbol and must include( ) c) shoCube = (shoSide) 3 must put ^ 15- What is the value of x after each statement is performed? a) x = 7 + 3 * 3 \ 2 – 1 = 7 + 9 \ 2 – 1 = 7 + 8 – 1 x = 14 b) x = 2 Mod 2 + 2 * 2 - 2 / 2 = 2 Mod 2 +4 – 1 = 0 + 4 – 1 x = 3 c) x = (3 * 9 * (3 + (9 * 3 / (3)))) = (3 * 9 *(3 + (27 / 3))) = (3 * 9 * (3 + 9)) = (27 * (12)) x = 324 d) x = 6 * 2 ^ 3 + 4 / 2 = 6 * 8 + 2 x = 50 e) x = 6 / 2 * 2 ^ 3 + 4 = 6 / 2 * 8 + 4 = 3 * 8 + 4
Image of page 5
CD206 BUSINESS PROGRAMMING (Tutorial 3) (L3B-4) x = 28 16- Given z = 8e 5 -n write in VB expression. z = 8 * e ^ 5 – n 17- Complete the following table END OF QUESTION Number Value Format String ToString() Value 12.3 N3 12.300 12.348 n2 12.35 1234567.1 n 1,234,567.10 123456.0 f2 123456.00 123456.0 e3 123456.000 .234 p 23.4% –1234567.8 c ($1234567.8)
Image of page 6

You've reached the end of your free preview.

Want to read all 6 pages?

  • Fall '19
  • Type theory

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes