Download Math 30 SQPs pdf
C is a general-purpose programming language, developed by Dennis Ritchie at AT&T Bell laboratories of the USA in 1972.
The execution of a program begins with the Main() function.
Constants are the quantities whose value do not change during the execution of a program.
C keeps a small set of Keywords for its own use, that has a fixed meaning.
Every Variable must be declared before it is used.
The print() function is used to display the values on the screen.
An identifier can start with a digit. (False)
The body of the main function is enclosed in curly braces. (True)
The getchar() reads two characters at a time. (False)
(The 7th one in the textbook) You can save a C program by pressing the F5 key. (False)
What is the full form of stdio.h? a. Standard input output header file.
An expression statement consists of an expression, followed by a a. Semicolon.
a. Data types are defined as the data storage format for a variable.
Name the section which is used to declare the variables used in the executable part. (Declaration Part)
Name the function from where the execution of a C program begins. (main() function)
If a=6, and b=a++, then what value will b store? (6)
What is the storage size of a char data type? (1 byte)
Which header file is used for input/output statements? (# include <stdio.h>)
(The 7th one in the textbook) Name the function which is used to clear the previous output. (clrscr() function)
What is a character set?
Answer:
A character can be an alphabet, digit or any special symbol, which is used to represent information. The given table represents the list of characters available in C:
What do you mean by a data type? Name the data types.
Answer:
Data types are defined as the data storage format for a variable. It also determines the size of memory to be taken by a variable. Each data type is characterised by using a C keyword. The data types are int, float, char, and double.
What do you understand by the term Identifiers?
Answer:
Identifiers are the names given to C entities such as variables, functions, structures, etc. These are the user-defined names, for example, int add; int num.
C identifiers follow some rules that are defined below:
It should never be a C keyword.
An identifier should not contain any space or punctuation marks.