0% found this document useful (0 votes)
2 views2 pages

Class Test

The document contains a list of class test and assignment questions related to Unix, C programming, algorithms, and control structures. It covers topics such as key features of Unix, flowcharts, C operators, data types, and decision control structures. Additionally, it includes syntax requirements and code output questions for C programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Class Test

The document contains a list of class test and assignment questions related to Unix, C programming, algorithms, and control structures. It covers topics such as key features of Unix, flowcharts, C operators, data types, and decision control structures. Additionally, it includes syntax requirements and code output questions for C programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Class Test/ Assignment Questions -1

1. What is Unix and what are its key features?


2. What is a flowchart and why is it used?
3. What are operators in C?
4. What is the difference between = and == in C?
5. What is algorithm? Explain properties.
6. Commands use
7. Structure of C program
8. What is a compiler?
9. List out C Tokens.
10. Define variable.
11. What is data type? Write different datatypes with size and format specifiers.
12. Explain Bitwise and Logical operators
13. Explain ternary operator in detail.
14. Explain relational operators.
15. Explain special operators in C.
16. Explain type conversion with suitable examples.
17. What is the use of typedef?
18.
19. What are the different types of decision control structures?
20. Write the syntax for the following:
i) if ii) if-else iii) nested if iv) if-else-if ladder v) switch
21. Discuss about the importance of if-else over simple if statement with example.
22. Discuss about the importance of switch statement over if-else-if with suitable
examples.
23. Write the output for the following code:

#include<stdio.h> #include<stdio.h>
int main() int main()
{ {
int a=100; int a=100,b=201,c;
printf(“%d\n%d\n”,a++,a); c = a++ + --b;
printf(“%d\n%d\n”,++a,a); printf(“a=%d b= %d c=%d\
return 0; n”,a,b,c);
} return 0;
}

#include<stdio.h>
int main()
{
int a;
a=100,5;
printf(“%d”,a);
a=(100,printf(“Hi”),5);
printf(“%d”,a);
return 0;
}

You might also like