


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of various data types, their usage, and related concepts such as assignment statements, concatenation, variable scope, and control structures in programming. Topics covered include integers, strings, decimals, chars, booleans, assignment statements, concatenation, variable scope (global, local, procedural), tostring method, textbox, messagebox, syntax, static variables, and constant variables. It also includes examples of declaring and initializing variables, and using control structures like messagebox.
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



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