Chapter 3 Summary and exercises of ASP. NET Introduction

Source: Internet
Author: User

Summary of this Chapter
This chapter briefly introduces the basic syntax of VB. NET and the basic concepts of object-oriented programming in VB. NET. Master and be familiar with VB. NET Language is ASP. NET Program, through the study of this chapter, you can. NET program structure, basic operations and expressions, control statements, arrays, subprograms, functions, and basic object programming have a clear understanding, and more training is required, to master and flexibly apply VB.. NET language.

Exercise
1. What are the structures of the VB. NET program in ASP. NET webpage?
2. What is the keyword of VB. NET? List at least five VB. NET keywords.
3. What are the two forms of VB. NET annotations? When is one row, multiple sentences, and one sentence, used in statement writing format?
4. What basic data types does VB. NET have?
5. What types of constants does VB. NET have? Lists common system symbol constants.
6. Where are the following errors in the VB. NET program segments?
......
Dim I As integer = 10
Str = Cstr (I)
......
7. Evaluate the values of the following expressions:
(1) "D" Like "[! A-Z] "(2)" CHRRY "Like" B? R *"
(3) Not 19> 8 (4) 8 <9 And-5>-10
(5)-5 <10 Or 6 <5 (6) set A to 10, B to 8, and C to 6, evaluate the value of A> = 2*3.14 * B And C <> 5
8. What are the applicable conditions for the condition statements of the two structures?
9. Write a program with reference to example 3.2 to judge whether the input positive integer is a single digit, two digits, or three or more digits.
10. What are the forms of loop control statements?
11. Change the Do while... Loop in example 3.3 to Do... Loop Until Loop format.
12. A course score of 10 students is 80, 78, 91, 62, 88, 82, 49, 96, 52, and 85 respectively. NET Program, find the highest score and lowest score, and obtain the average score, displayed on the web page.
13. How to define processes and functions?
14. Compile a program and display "good morning" according to the current time !" "Good afternoon !" Or "Good evening !", The current time is displayed.
15. What is a class? What is an object? What is the relationship between the two?
16. What is a. NET namespace?

BibliographyPrevious section

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.