0% found this document useful (0 votes)
88 views

List of Attempted Questions and Answers

This document contains a list of attempted questions and answers in different formats including multiple choice single answer, true/false, and multiple choice multiple answer questions. The questions cover topics in C programming including functions, data types, operators, comments, and object modeling. For each question, the correct answer and the user's answer are provided for comparison.

Uploaded by

api-3798693
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views

List of Attempted Questions and Answers

This document contains a list of attempted questions and answers in different formats including multiple choice single answer, true/false, and multiple choice multiple answer questions. The questions cover topics in C programming including functions, data types, operators, comments, and object modeling. For each question, the correct answer and the user's answer are provided for comparison.

Uploaded by

api-3798693
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

LIST OF ATTEMPTED QUESTIONS AND ANSWERS

Multiple Choice Single Answer


Question Which function is used to copy first n characters of a string into
another?
Correct Answer strncpy

Your Answer strncpy

True/False
Question Empty paranthesis after main function are not necessary.

Correct Answer False

Your Answer True

Multiple Choice Single Answer


Question What will be the output? main(){ int a=25, *b; b=&a;
printf("%d",*b);}
Correct Answer 25

Your Answer 25

Multiple Choice Multiple Answer


Question What will be the output of the following main(){ char c='d';float
f=1; printf("%c", c); printf("%d", c * f);}
Correct Answer d , 0

Your Answer 100.00

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

Correct Answer False

Your Answer False

Multiple Choice Single Answer


Question Studying system domain, identifying classes & objects with their
properties and expressing them with eight notations/diagrams is
called as
Correct Answer Object modeling of system.

Your Answer Object modeling of system.

Multiple Choice Multiple Answer


Question What will be the output main ( ) { char ch='s'; switch(ch) { case
's' : printf("%d",1); case 'r' : printf("%d",2); case 'b' :
printf("%d",3);break; default:printf("%d",4); } }
Correct Answer 1 , 2 , 3

You might also like