You are on page 1of 3

Activity 1

Activity 2

Q1.What punctuation is used to signal the beginning and end of code blocks?

Q2.What is a comment?

Q3.Define data type in C-Programming with example.

Q4.What is the difference between = and ==?

Q5.Write any two features of C programming language.

Q6.Why is C called middle level language?

Q7.What is a difference between compiler and interpreter?

Q8.What is a loop? Write syntax of for loop.

Q9.Differentiate between while loop and do while loop.

Q10.What is the difference between unary and binary operator.

Q11.scanf is used to __________________________________

Q12.What will be the output:
#include<stdio.h>
void main()
{
char ch = 'A';
printf("%d \n %d, sizeof(ch), sizeof('A'));
}

Q13.Differentiate between predecrement and postdecrement operator.

Q14.What will be the output

void main()
{
int k, num=30;
k = (num>5 ? (num <=10 ? 100 : 200): 500);
printf("%d\n", k);
}

Q15.Define Selection statement.
Q16.What is a variable in C and how it is different from constant?
Q17.Write the syntax of switch statement.
Q18.What is shift operator?
Q19.Define keyword.
Q20.Write any two rules for identifiers.
Q21.Write syntax of ternary operator.
Q22.Solve the following
5*4+8/2
Q23 what will be the value of A and B?
A=10
B= A+++++A
Q24.float takes _______________ bytes in the memory
Q25.Mod operator cannot be used on ____________________ operands.

You might also like