Computer Science, asked by usmanshaik338, 7 months ago

Attempt all que
stion - 1
1) What is data type? Give an example?
) Write any two rules for naming a variable
) Write down the difference between prefi
) What are non-graphic characters? How t
) What is a syntax error? Give one examp

Answers

Answered by vanshikakumarimeena
1

Answer:

1.A data type is a type of data. ... Some common data types include integers, floating point numbers, characters, strings, and arrays. They may also be more specific types, such as dates, timestamps, boolean values, and varchar (variable character) formats.

2.Rules for naming variables:

All variable names must begin with a letter of the alphabet or an. underscore( _ ). ...

After the first initial letter, variable names can also contain letters and numbers. ...

Uppercase characters are distinct from lowercase characters. ...

You cannot use a C++ keyword (reserved word) as a variable name.

5.Syntax errors are mistakes in using the language. Examples of syntax errors are missing a comma or a quotation mark, or misspelling a word. MATLAB itself will flag syntax errors and give an error message.

Similar questions