SEBA Board Solution Class 9 Computer Science Chapter 9 Exploring C Programming Language
SEBA Board Solution Class 9 Computer Science Chapter 9 Exploring C Programming Language full exercise Solution by Computer Sir. Here in this page we have provided SEBA – The Board Of Secondary Education, Assam Class 9 Computer Science Chapter 9 all Question Answer Solution.
SEBA Board Solution Class 9 Computer Science Chapter 9: Overview
|SEBA / Assam State Board|
|Exploring C Programming Language|
1. Fill in the blanks:-
- 1) Identifiers in C programming language starts with a letter
- 2) break is a keyword in C TRUE (TRUE/FALSE)
- 3) A variable in C can store more than one value at a line FALSE (TRUE/FALSE)
- 4) An integer variable typically reserves 4 bytes in memory.
- 5) Built-in function used to accept user input from the keyboard is scanf()
- 6) Format specifier for accepting value from keyboard for an integer variable is %d
- 7) Every operator in C requires exactly two operands TRUE (TRUE/FALSE)
- 8) = (is equal to) sign is used to indicate reminder process in C.
- 9) To compare two float variables in C, we can use if statement.
- 10) When we need to select a set of statements for execution in a C program based on some integral value, a good choice can be to use switch() construct.
2. Short answer questions :-
1) If we need to execute many statements when an if condition in C returns true, how can we write them? Write a code segment.
Ans :- If we need to execute many statements when an if condition in C returns true, then there is need of writing the statements in two curly braces (brackets). The code segment is as followed :
greater = number 1;
printf(“\n first number is greater than the second number”);
2) List five commonly used operators of C programming language with their meaning.
Ans :- The five operators which are mostly used in C programming languages are :
i) Arithmetic operators :- This operator used for calculation work. It includes the basic symbols like Addition (+), Subtraction (-), multiplication (*), division (/), reminder or Modulus (%).
ii) Logical operators :- this operators also produces binary output which is totally
dependent on the operators expression. Its represented by &&, II, ! symbols
iii) Assignment operators :- This operators are used to assign a value to the variables. The basic symbols are =, +=, .=, /=, %=
iv) Relational operators :- Used to compare values of two expressions and produce
binary results which are mostly dependent on the conditions of the operand value. It
is denoted by basic symbols like <, >, <= ,>=, ==, !=
v) Bitwise and Unary operators :- It is denoted by the &, I, <<, >>, -, ^ where as Unary operators are represented by ++, — symbols.
3) The scanf statement should always be preceded by a printf statements in C. Is it true? Explain briefly.
Ans :- It’s false that scand statement should always be aheaded after the printf statements because scand() is the most commonly, built-in function used to accept the input one or more variables from the users. The inputs which are feeded into the program with the help of standard input devices like keyboard is been read by the scanf() function/statement. It requires the variable address for reading it. Where as the printf() statement allows the user to input integer value prints the result. Here , the output/result is the characters that will be displayed on the screen.
Dear Student, I appreciate your efforts and hard work that you all had put in. Thank you for being concerned with us and I wish you for your continued success.