Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

VB.Net Exam Questions, Exercises of Programming Languages

VB.Net Exam questions for testing VB.Net programming skills for beginners

Typology: Exercises

2018/2019
On special offer
30 Points
Discount

Limited-time offer


Uploaded on 10/06/2019

huseyinguney
huseyinguney 🇹🇷

3.2

(5)

10 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Visual Basic .NET Programming Questions
1- Write a Visual Basic console application that prints “Hello World” to the screen and
waits for any to be press to terminate program.
2- Write a Visual Basic console application program that inputs a student numeric
grade and turns out the letter grade depending on following instructions.
a. Letter Grade A: Equals to or greater than 80
b. Letter Grade B: Equals to and greater than 70 and less than 80.
c. Letter Grade C: Equals to and greater than 60 and less than 70.
d. Letter Grade D: Equals to and greater than 50 and less than 60.
e. Letter Grade E: Less than 50.
3- Write a Visual Basic console application program that makes mathematical
calculations like +, -, *, /, sqrt etc. When the program starts a list of mathematical
expressions should be appears on the top of the screen and user should enter the
number first to select operation and then input numbers. After that, program should
show result and wait for user to press any to terminate program.
a. 1- Addition (+)
b. 2- Subtraction (-)
c. 3- Multiplication (*)
d. 4- Division (/)
e. 5- Square Root
4- Write a Visual Basic console application program that lets user to input a name and
displaying each character of name
i. While Loop
1. Horizontally
2. Vertically
3. Diagonally
ii. For Loop
1. Horizontally
2. Vertically
3. Diagonally
5- Write a Visual Basic console application that uses the each of following string
predefined functions.
pf3
Discount

On special offer

Partial preview of the text

Download VB.Net Exam Questions and more Exercises Programming Languages in PDF only on Docsity!

Visual Basic .NET Programming Questions 1 - Write a Visual Basic console application that prints “Hello World” to the screen and waits for any to be press to terminate program. 2 - Write a Visual Basic console application program that inputs a student numeric grade and turns out the letter grade depending on following instructions. a. Letter Grade A: Equals to or greater than 80 b. Letter Grade B: Equals to and greater than 70 and less than 80. c. Letter Grade C: Equals to and greater than 60 and less than 70. d. Letter Grade D: Equals to and greater than 50 and less than 60. e. Letter Grade E: Less than 50. 3 - Write a Visual Basic console application program that makes mathematical calculations like +, - , , /, sqrt etc. When the program starts a list of mathematical expressions should be appears on the top of the screen and user should enter the number first to select operation and then input numbers. After that, program should show result and wait for user to press any to terminate program. a. 1 - Addition (+) b. 2 - Subtraction (-) c. 3 - Multiplication () d. 4 - Division (/) e. 5 - Square Root 4 - Write a Visual Basic console application program that lets user to input a name and displaying each character of name i. While Loop

  1. Horizontally
  2. Vertically
  3. Diagonally ii. For Loop
  4. Horizontally
  5. Vertically
  6. Diagonally 5 - Write a Visual Basic console application that uses the each of following string predefined functions.

Action Language element Compare two strings. StrComp Convert strings. StrConv Reverse a string. InStrRev , StrReverse Convert to lowercase or uppercase. Format , LCase, UCase Create a string of repeating characters. Space , StrDup Find the length of a string. Len Format a string. Format , FormatCurrency, FormatDateTime,FormatNumber, For matPercent Manipulate strings. InStr , Left, LTrim, Mid, Right, RTrim, Trim Set string comparison rules. Option Compare Work with ASCII and ANSI values. Asc , AscW, Chr, ChrW Replace a specified substring. Replace Return a filter-based string array. Filter Return a specified number of substrings. Split , Join