12th Class Computer Chapter 2 Fundamentals of C Language Short Questions Answer
| Class: | 12th Class | Subject: | Computer |
| Chapter: | Chapter 2 | Board: | All Boards |
12th Class Computer Chapter 2 Fundamentals of C Language Short Questions Answer
[toggle title=”Define constant? ” state=”close”]
The quantities whose values do not change during program execution are known as constants. [/toggle]
[toggle title=”How many types of constants? ” state=”close”]
Constants are of two types i.e. numeric and character/string.[/toggle]
[toggle title=”Write the types of Numeric Constants. ” state=”close”]
Numeric Constants are of two types. i.e.
1. Integers
2. Floating-point numbers [/toggle]
[toggle title=”What are integers? ” state=”close”]
Integers represent values that are counted like the number of students in a class. [/toggle]
[toggle title=”What is an integer constant? ” state=”close”]
An integer constant is a string of digits that does not include commas or a decimal point.[/toggle]
[toggle title=”Write down some examples of valid integer constants?” state=”close”]
Some examples of valid integer constants are:
0, 714, -234, 24494 [/toggle]
[toggle title=” Define Floating-point Constants? ” state=”close”]
Floating-point constants are also called real constants. Floating-point constants are used to represent values that are measured, like the height of a person which might have a value of 166.75 cm.[/toggle]
[toggle title=”What is a character Constant? ” state=”close”]
A character Constant is one of the symbols in the C character set. Although this character set may vary from one C implementation to another, it usually included digits 0 through 9, upper case letters. Although Z, lower case letters a through Z, punctuation symbols such as semicolon (;), comma (,), period ( ) and special symbols such as +,–, =, > etc. [/toggle]
[toggle title=”How do enclose a character constant? ” state=”close”]
A character constant is enclosed by single quotes such as ‘a’. [/toggle]
[toggle title=”Define a variable. ” state=”close”]
A variable is a location in memory that is identified by a name that we supply and which we can use to store an item of data of particular type.[/toggle]
[toggle title=”How many things are required for specifying a variable? ” state=”close”]
Specifying a variable therefore requires two things i.e.
I. We must give it a name
II. We must identify what king of data we shall store in it.[/toggle]
[toggle title=”How does a variable begin? ” state=”close”]
A variable begins with a better or underscore ( – ) and may consist of betters, underscores and/or digits.[/toggle]
[toggle title=”What is the use of the underscore? ” state=”close”]
The underscore may be used to improve readability of the variable name.[/toggle]
[toggle title=”What is meant by only the first 31 characters of a variable are significant? ” state=”close”]
Only the first 31 characters of a variable are significant. This means that if two variables have the some first 31 characters they are considered to be the same variables. [/toggle]
[toggle title=”What do you know about the keywords of C language? ” state=”close”]
C language has a very small set of keywords such as into, do, if, etc. Which are part of the programming language and may not be used as variable names. These keywords are also known as reserved words.[/toggle]
[toggle title=”Write down the types of variables in “C”. ” state=”close”]
C provides three types of variables.
I. Integer variables
II. Floating-point variables
III. Character variables [/toggle]
[toggle title=”Write down the Integer variable declaration statement? ” state=”close”]
Integer variable declaration statement has the form: into sum; [/toggle]
[toggle title=”How can you precede the declaration of on integer variable?” state=”close”]
Declaration of an integer variable can be preceded by the qualifiers short, long unsigned or signed.[/toggle]
[toggle title=”What is the use of Floating-point variables? ” state=”close”]
Floating-point variables are used for storing floating-point numbers.[/toggle]
[toggle title=”In which part floating-point number are stored in memory? ” state=”close”]
Floating-point numbers are stored in memory in two parts. The first part is the mantissa and the second part is the exponent.[/toggle]
How to Write Perfect Short Answers?
In Board Exams, the examiner looks for specific keywords and presentation. Here is how to attempt Chapter 2 questions:
- Ideal Length: Write 3 to 5 lines for each short question. Too short gets fewer marks, too long wastes time.
- Highlighting: Use a Blue Marker to highlight key dates, names, or scientific terms in your answer.
Can't find what you're looking for? Search below: