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

A set of homework questions for a computer science course, focusing on pseudocode, visual basic controls and attributes, variable declaration, data types, structures, boolean variables, events, and valid variable names.

Typology: Assignments

Pre 2010

Uploaded on 09/02/2009

koofers-user-8mx
koofers-user-8mx 🇺🇸

4

(2)

9 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

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)