0% found this document useful (0 votes)
24 views2 pages

VB.NET Programming Test Week 2

Uploaded by

777esus
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

VB.NET Programming Test Week 2

Uploaded by

777esus
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

WEEK 2 PROGRAMMING TEST

Time : 50 minutes
To be submitted in pdf format not word.
Due time for submission should not be passed

Question 1 (Module 5: Working with Strings and Console


Input/Output):
Write a [Link] program that asks the user for their first and last
names, and then displays their full name in uppercase and the total
length of their full name.(10)

Question 2 (Module 5: Working with Strings and Console


Input/Output):
Write a [Link] program that asks the user to enter a sentence. Your
program should then output the sentence with all vowels replaced
by an asterisk '*', and display the updated sentence on the console.
(10)

Question 3 (Module 5: Working with Strings and Console


Input/Output):
Write a [Link] program that asks the user to enter their favorite
quote. Your program should output the quote in a decorative format,
for example with a border of equal signs "=" around it.

Question 4 (Module 6: Introduction to Functions and


Subroutines):
Create a function named 'CalculatePolygonArea' that takes two
parameters: 'base', which represents the length of the base, and
'height' which stores the height of a rectangle. This function should
calculate and return the area of the rectangle.(15)

Question 5 (Module 6: Introduction to Functions and


Subroutines):
Design a [Link] program that utilizes a subroutine named
'PrintTriangle' to print a right-angled triangle of asterisks (*) on the
console. Ask the user for the height of the triangle and display the
output accordingly.(15)

You might also like