0% found this document useful (0 votes)
71 views3 pages

List of Attempted Questions and Answers

The document contains a list of attempted C programming questions and answers. It includes questions about variable names, character pointers, string length output, comments in C programs, case statements, real constants, operator priority, and struct declarations. The questions cover topics like basic syntax, data types, operators, and functions in C programming.

Uploaded by

api-3798693
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views3 pages

List of Attempted Questions and Answers

The document contains a list of attempted C programming questions and answers. It includes questions about variable names, character pointers, string length output, comments in C programs, case statements, real constants, operator priority, and struct declarations. The questions cover topics like basic syntax, data types, operators, and functions in C programming.

Uploaded by

api-3798693
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

LIST OF ATTEMPTED QUESTIONS AND ANSWERS

Question The variable name can have maximum length

Correct Answer 8 characters

Your Answer 8 characters

Select The Blank


Question ________ is a valid statement to declare a character pointer c.

Correct Answer char *c;

Your Answer char *c;

Multiple Choice Multiple Answer


Question What will be the output? main(){ char name[10]="String"; int j=strlen(name);
puts(name); printf("%d",j);}
Correct Answer String , 6

Your Answer String , 6

True/False
Question Only one comment can be given in a C program

Correct Answer False

Your Answer False

Select The Blank


Question Multiple statement of each 'case' should be enclosed within ________

Correct Answer nothing

Your Answer {}

Multiple Choice Single Answer


Question Which of the following form is possible to express the real constant

Correct Answer Both fractional and exponential forms

Your Answer Both fractional and exponential forms

Multiple Choice Multiple Answer


Question Which of the following operators have 2nd priority in operations?

Correct Answer + , -

Your Answer +,-,%

Multiple Choice Multiple Answer


Question Point out the errors if any struct student{ int roll; int course, char duration; }

You might also like