Docsity

Programming Unit 4: Data Types, Variables, and Control Structures, Exams of Network Programming

Toggle sidebar
bg1
Programming Unit 4
Integer - correct answer int
Used with whole numbers (+/-)
String - correct answer str
Used with strings of characters/words
Double - correct answer dbl
Used with larger decimal numbers
Decimal - correct answer dec
Used with decimal numbers (currency)
Char - correct answer chr
Used for a single character
Boolean - correct answer bln
Used for true or false
Assignment statement - correct answer When you give your declared variable a number or a
string.
Which way does the value move when assigning a value to a variable? - correct answer The
value moves from right to left.
Declare the following variables and initialize the values:
pf3
pf4

Partial preview of the text

Download Programming Unit 4: Data Types, Variables, and Control Structures and more Exams Network Programming in PDF only on Docsity!

Programming Unit 4

Integer - correct answer int Used with whole numbers (+/-) String - correct answer str Used with strings of characters/words Double - correct answer dbl Used with larger decimal numbers Decimal - correct answer dec Used with decimal numbers (currency) Char - correct answer chr Used for a single character Boolean - correct answer bln Used for true or false Assignment statement - correct answer When you give your declared variable a number or a string. Which way does the value move when assigning a value to a variable? - correct answer The value moves from right to left. Declare the following variables and initialize the values:

strColor, red intAge, 16 - correct answer Dim strColor As String = "red" Dim intAge As Integer = 16 Concatenation - correct answer When strings are combined from several different sources. Uses the & to combine them. Concatenate strString1, intVar, and strString2 and display the result in lblDisplay - correct answer lblDisplay.Text = strString1 & intVar & strString Variable Scope - correct answer The area of the program the variable can be used in. 3 types of variable scope - correct answer Global, local, procedural ToString method - correct answer Converts any value given to it to a string and formats it with the format given. ("##.00") TextBox - correct answer A box that allows users to enter (input) values at run time. MessageBox - correct answer A separate box that allows you to display output or alert users fatal errors Write the statement to show the message "Programming" in a MessageBox - correct answer MessageBox.Show ("Programming") Syntax - correct answer The way code is written.

PictureBox - correct answer pic ListBox - correct answer lst Menu - correct answer mnu