C-programming Paper 1

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View C-programming Paper 1 as PDF for free.

More details

  • Words: 194
  • Pages: 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

Related Documents

Paper 1
May 2020 28
Paper 1
April 2020 29
Paper 1
December 2019 43
Paper 1
May 2020 31
Paper 1
April 2020 46
Paper-1
October 2019 45