Basic (I/O)
Data Types
Syntax
Converting Data Types
Features and Tips in Visual Studio
100

The output method used to write text to the screen (console) and move to the next line

Console.WriteLine();

100

The data type used to store text (a series of characters)

string

100

This character is added to the end of a statement so the computer recognizes it as the end or (termination) of a statement

semi-colon

100

When converting a string to an integer which method should I use?


Convert.ToInt();

100

This feature helps you out when you are writing code by suggesting things that could be fixed and underlining errors with a red squiggly 

Intellisense

200

The output method that writes to the console but leaves the cursor on the SAME LINE

Console.Write();

200

Data type for whole numbers (integers)

int

200

These characters hold your code (you type everything between these characters)

curly brackets

200

When converting a string to a double which method should I use?

Convert.ToDouble();

200

If you want to add a single line comment in your code use this

//

2 forward slashes

300

The user's input can be captured with this Console method

Console.ReadLine();

300

Data type for numbers with a decimal place that will be used for financial calculations (monetary amounts)

decimal

300
A variable is made up of the following syntax.


Data type _________ ;

Fill in the blank

a name
300

When converting a string to a decimal which method should I use?

Convert.ToDecimal();

300

*/

*/

This is used for what...

multi-line comment

400

This can be placed at the end of your code to hide all of the extra information 

Console.ReadKey();

400

Data type for a decimal point value that will NOT be used for money amounts such as body temperature 98.6

double

400

What is missing from the following syntax:

Console.WriteLine;

closed parentheses
400
What syntax should I use if I am converting a string named number, that stored a user entered whole number, into an integer

Convert.ToInt32(number);

400
\n 


This escape sequence does what?

new line

500

Console.WriteLine(1 + 1);

The given output...

2

500

The data type that can store a value as either True or False

Bool or Boolean

500

I want to convert a string captured from the user to an int data type. What is missing from the following syntax.


Convert.Int(Console.ReadLine());

To

500

Can I convert a string named pizza into an int data type

No, it is not able to be a number

500

If I want to tab... what is the escape sequence?

\t


backslash t

M
e
n
u