Chp 2 _ Data Processing AI Flashcards
(110 cards)
Define the information systems process
Input → CPU processing → Output of data as useful information
Name the types of data used in programming
Numeric, string, char, bool, decimal
How do you declare a variable?
DataType VariableName;
What rules apply to variable naming?
First char letter/underscore; no spaces; no keywords
What is required to read inputs and format outputs?
Use appropriate controls and ToString/Parse methods
How do you convert data types when reading input?
Use Parse methods like int.Parse or Convert.ToX
Which operators perform calculations?
Arithmetic operators: +, -, *, /, %
What is data processing?
Reading, storing, and processing data during program execution
Give examples of input devices
Keyboard and mouse
What is “process” in information systems?
CPU operations on entered data
What is output in information systems?
Results presented as useful information
What is a TextBox control?
Rectangular area for keyboard input
Where is TextBox found in Toolbox?
Common Controls group
How do you add a TextBox to a form?
Double-click it in the toolbox
What is the default TextBox name?
textBoxn (n = 1,2,…)
What does TextBox.Text store?
User input as a string
How to assign “Hello” to TextBox?
textBox1.Text = “Hello”;
How to clear a TextBox?
textBox1.Text = “”;
What is a variable?
A memory storage location
What represents a variable’s memory location?
Its variable name
What must you do before using a variable in C#?
Declare it with a data type
Syntax to declare a variable?
DataType VariableName;
Why must variables have data types?
Defines the type of data they can hold
What do primitive data types store?
Fundamental types like strings and integers