INTRODUCTION TO C PROGRAMMING.


Fill in the blanks:
(1)C is a High level language.
(2)A C program must be compile before it can be executed.
(3) A named area in memory that stores a character or numeric value is called Variable.
(4) In C, a number containing a decimal point of type float.
(5) The memory size of a floating point number is usually 4 bytes.
(6)The equality checking operator in C is ==.
(7) “%C is the standard function to read a single character from keyboard.
2. State whether the following statements are true or false.
(1) C is a interpreted language.False.
(2) In C , an user must define the meaning of keyword used.False.
(3) The type of variable determines what kind of values it may take on.True.
(4) A variable name can be begin with underscore.False.
(5) A variable declaration tells the name and type of a variable.False.
(6) “34.5” is a numeric constant. False.
(7) The keyword int is used to declare a constant.False.
(8) The expression 4+5*6 will evaluate to 54.False.
(9) The expression 4 ^ 2 to find the square of 4 is valid in C. False.
(10) The standard C functions are grouped into header files. True.
(11) The standard C function to find  the absolute value of a number x is abs(x).False.
(12) The format specifier for an integer in a printf statement in C is \n. False
(13)Explanatory comments in C are given with the REM keyword.False

3. Give the purpose of each of the following in a C program.
(1) float : float is a data type to store a floating point number. E.g. : 3.14
(2) char : char is a data type to store a character. E.g. : ‘a’
(3) getchar( ) : The function input a simple character from the keyboard.
(4) scanf :  The function performs formatted input.  E.g. scanf(“%d”, & a);
(5) stdio.h : stdio.h is a header file which predefined standard input and output function.
(6) math.h : math.h is a header file which predefined mathematical function
(7) \t : It is an escape sequence which is used in print.
4. Answer the following questions in one or two sentences each:
(1) What are the primary data types in C?
Ans..int (integer), char (Character), float (floating point number) and double are the primary data type in C.
(2)What is a numeric constant?
Ans.. Numeric constant is a number. E.g. 2,3.142.
(3)What does the modulus operator do in c.
Ans. Modulus operator returns the mode of a division. E.g. 4 % 3 = 1.
(4)What is the deference between the operators =  and ==?
Ans.= is a assignment operator eg. a=2.== is evaluating 2 numbers to find out the big one .
(5)What is a header file?
Ans. Header file is a predefined function which can be used in our program.
(6)State the parts of a C program?
Ans. Heading, inclusion, function main( ) with statements and optional user defined functions.
(7)What is the purpose of the inclusion statements in a C program??
Ans.To include predefined user function to user program.
5. Write the C expression for.
(1)raising 2 to the power 5:pow(2,5);
(2)a3- 7b +1.:pow(a,3)- (7*b)+1
(3)(5(f-32))/9: (5 * (f-32))/9
6. Identify the valid variable name in C: m, N, 7N,-avg, %d.
Ans. m, N.
7. The following statement block in C is supposed to calculate (a+b)3, but there are errors. Find out the errors and rewrite the statement block.
int a ==5, b=6,ans
ans=(a+b)^3;
printf(The answer is, ans);
Ans. int a=5,b=6,ans;
ans=(a+b) * 3;

printf(“The answer is %d “, ans);

PDF FILE TO YOUR EMAIL IMMEDIATELY PURCHASE NOTES & PAPER SOLUTION. @ Rs. 50/- each (GST extra)

HINDI ENTIRE PAPER SOLUTION

MARATHI PAPER SOLUTION

SSC MATHS I PAPER SOLUTION

SSC MATHS II PAPER SOLUTION

SSC SCIENCE I PAPER SOLUTION

SSC SCIENCE II PAPER SOLUTION

SSC ENGLISH PAPER SOLUTION

SSC & HSC ENGLISH WRITING SKILL

HSC ACCOUNTS NOTES

HSC OCM NOTES

HSC ECONOMICS NOTES

HSC SECRETARIAL PRACTICE NOTES

2019 Board Paper Solution

HSC ENGLISH SET A 2019 21st February, 2019

HSC ENGLISH SET B 2019 21st February, 2019

HSC ENGLISH SET C 2019 21st February, 2019

HSC ENGLISH SET D 2019 21st February, 2019

SECRETARIAL PRACTICE (S.P) 2019 25th February, 2019

HSC XII PHYSICS 2019 25th February, 2019

CHEMISTRY XII HSC SOLUTION 27th, February, 2019

OCM PAPER SOLUTION 2019 27th, February, 2019

HSC MATHS PAPER SOLUTION COMMERCE, 2nd March, 2019

HSC MATHS PAPER SOLUTION SCIENCE 2nd, March, 2019

SSC ENGLISH STD 10 5TH MARCH, 2019.

HSC XII ACCOUNTS 2019 6th March, 2019

HSC XII BIOLOGY 2019 6TH March, 2019

HSC XII ECONOMICS 9Th March 2019

SSC Maths I March 2019 Solution 10th Standard11th, March, 2019

SSC MATHS II MARCH 2019 SOLUTION 10TH STD.13th March, 2019

SSC SCIENCE I MARCH 2019 SOLUTION 10TH STD. 15th March, 2019.

SSC SCIENCE II MARCH 2019 SOLUTION 10TH STD. 18th March, 2019.

SSC SOCIAL SCIENCE I MARCH 2019 SOLUTION20th March, 2019

SSC SOCIAL SCIENCE II MARCH 2019 SOLUTION, 22nd March, 2019

XII CBSE - BOARD - MARCH - 2019 ENGLISH - QP + SOLUTIONS, 2nd March, 2019

HSC Maharashtra Board Papers 2020

(Std 12th English Medium)

HSC ECONOMICS MARCH 2020

HSC OCM MARCH 2020

HSC ACCOUNTS MARCH 2020

HSC S.P. MARCH 2020

HSC ENGLISH MARCH 2020

HSC HINDI MARCH 2020

HSC MARATHI MARCH 2020

HSC MATHS MARCH 2020

SSC Maharashtra Board Papers 2020

(Std 10th English Medium)

English MARCH 2020

HindI MARCH 2020

Hindi (Composite) MARCH 2020

Marathi MARCH 2020

Mathematics (Paper 1) MARCH 2020

Mathematics (Paper 2) MARCH 2020

Sanskrit MARCH 2020

Sanskrit (Composite) MARCH 2020

Science (Paper 1) MARCH 2020

Science (Paper 2)

MUST REMEMBER THINGS on the day of Exam

Are you prepared? for English Grammar in Board Exam.

Paper Presentation In Board Exam

How to Score Good Marks in SSC Board Exams

Tips To Score More Than 90% Marks In 12th Board Exam

How to write English exams?

How to prepare for board exam when less time is left

How to memorise what you learn for board exam

No. 1 Simple Hack, you can try out, in preparing for Board Exam

How to Study for CBSE Class 10 Board Exams Subject Wise Tips?

JEE Main 2020 Registration Process – Exam Pattern & Important Dates

NEET UG 2020 Registration Process Exam Pattern & Important Dates

How can One Prepare for two Competitive Exams at the same time?

8 Proven Tips to Handle Anxiety before Exams!

BUY FROM PLAY STORE

DOWNLOAD OUR APP

HOW TO PURCHASE OUR NOTES?

S.P. Important Questions For Board Exam 2021

O.C.M. Important Questions for Board Exam. 2021

Economics Important Questions for Board Exam 2021

Chemistry Important Question Bank for board exam 2021

Physics – Section I- Important Question Bank for Maharashtra Board HSC Examination

Physics – Section II – Science- Important Question Bank for Maharashtra Board HSC 2021 Examination