Docsity

CS004: Homework 7 - Variables, Controls, and Data Types, Assignments of Computer Science

Toggle sidebar
bg1
CS0004: Written Homework 7 Due 04/24/2008
1. What is pseudocode?
2. Name three Visual Basic Controls and three of their attributes
3. Dim str1 As String = “Thank God this is over”
Dim str2 As String = str1.substring(10,4)
What is the value in str2?
4. Why is it important to declare variables with their data types?
5. What is the difference between local variable and a class-level variable
6. Create a structure called “Student” that contains the following information about a student
a. Name
b. Ssn
c. Date of birth
d. Student level
pf2

Partial preview of the text

Download CS004: Homework 7 - Variables, Controls, and Data Types and more Assignments Computer Science in PDF only on Docsity!

CS0004: Written Homework 7 Due 04/24/

  1. What is pseudocode?
  2. Name three Visual Basic Controls and three of their attributes
  3. Dim str1 As String = “Thank God this is over” Dim str2 As String = str1.substring(10,4) What is the value in str2?
  4. Why is it important to declare variables with their data types?
  5. What is the difference between local variable and a class-level variable
  6. Create a structure called “Student” that contains the following information about a student a. Name b. Ssn c. Date of birth d. Student level
  1. What is a Boolean variable?
  2. What is a visual basic event?
  3. Which of the following is a valid variable name? a. _0ToHero b. 0ToHero c. Zero To Hero d. 0-ToHero e. None of the above
  4. Functions and subprocedures do the same thing. The only difference is in the name. (True/False)