SlideShare a Scribd company logo
1 of 7
Q1. What is the basic difference between DVORAK and QWERTY pattern of keyboards? Explain in the
context of current market usage.
Q2. Differentiate between compiler and interpreter
Q3. What do you understand by output device? Explain printer and printing mechanism of character by
dot matrix.
Q4. With the help of a ‘C’ program define call by value and call by reference.
Q5. What are the different storage classes available in ‘c’? Explain any one of them.
Q6. What is operator? Define conditional operator with a C program.
Q7. Write a function that receives 5 integers and returns the sum and the average of these numbers. Call
this function from main () and print the results in main ().
Q8. Write a c Program to count number of characters, number of blanks, and number of words.
Assignment B
Q1. A 5 digit positive integer is entered through the keyboard, write a function to calculate sum of
digits of the 5 digit number
a) Without using recursion b) Using recursion
Q2. Write a recursive function to obtain the first 25 numbers of a Fibonacci sequence. In a Fibonacci
sequence the sum of two successive terms gives the third term. Following are the first few terms of the
Fibonacci sequence
1 1 2 3 5 8 13 21 34 55 89…..
1) Which of the following statements is true?
a) C Library functions provide I/O facilities
b) C inherent I/O facilities
c) C doesn’t have I/O facilities
d) Both (a) and (c)
2) Header files in C contain
a) Compiler commands
b) Library functions
c) Header information of C programs
d) Operators for files
3) Which pair of functions below are used for single character I/O.
a) Getchar() and putchar()
b) Scanf() and printf()
c) Input() and output()
d) None of these
4) The printf() function retunes which value when an error occurs?
a) Positive value
b) Zero
c) Negative value
d) None of these
5) Identify the wrong statement
a) putchar(65)
b) putchar('x')
c) putchar("x")
d) putchar('n')
6) The output of printf("%u", -1) is
a) -1
b) minimum int value
c) maxiumint value
d) Error message
7) An Ampersand before the name of a variable denotes
a) Actual Value
b)
Variable Name
c) ess
d) Data Type
8) Symbolic constants can be defined using
a) # define
b) const
c) symbols
d) None of these
9) Null character is represented by
a) n
b) 0
c) o
d) e
10) Which header file is essential for using strcmp() function?
a) string.h
b) strings.h
c) text.h
d) strcmp.h
11) malloc() function used in dynamic allocation is available in which header file?
a) stdio.h
b) stdlib.h
c) conio.h
d) mem.h
12) File manipulation functions in C are available in which header file?
a) streams.h
b) stdio.h
PC Training Institute Ltd., An ISO-9001 Certified Organisation
c) stdlib.h
d) files.h
13) C supports how many basic looping constructs
a) 2
b) 3
c) 4
d) 6
14) A statement differs from expression by terminating with a
a) ;
b) :
c) NULL
d) .
15) What
should be the expression return value for a do-while to terminate
a) 1
b) 0
c) -1
d) NULL
16) Which among the following is a unconditional control structure
a) do-while
b) if-else
c) goto
d) for
17) continue statement is used
a) to go to the next iteration in a loop
b) come out of a loop
c) exit and return to the main function
d) restarts iterations from beginning of loop
18) Which operator in C is called a ternary operator
a) if..then
b) ++
c) ?:
d) ()
19) Which of the following header file is required for strcpy() function?
a) string.h
b) strings.h
We touch the future ☺ we teach !
c) files.h
d) strcsspy()
20) The meaning of conversion character for data input is
a) Data item is a long integer
b) Data item is an unsigned decimal integer
c) Data item is a short integer
d) None of the above
21) The conversion characters for data input means that the data item is
a) An unsigned decimal integer
b) A short integer
c) A hexadecimal integer
d) A string followed by white space
22) Which of
the
following is a
key word is
used for a storage class
a) printf
b) external
c) auto
d) scanf
23) In the C language 'a’ represents
a) a digit
b) an integer
c) a character
d) a word
24) The number of the relational operators in the C language is
a) Four
b) Six
c) Three
d) One
25) A compound statement is a group of statements included between a pair of
a) double quote
PC Training Institute Ltd., An ISO-9001 Certified Organisation
b) curly braces
c) parenthesis
d) a pair of /’s
26) A Link is
a) a compiler
b) an active debugger
c) a C interpreter
d) a analyzing tool in C
27) The continue command cannot be used with
a) for
b) switch
c) do
d) while
28) In C, a Union is
a) memory location
b) memory store
c) memory screen
d) None of these
29) When the main function is called, it is called with the arguments
a) argc
b) argv
c) None of these
d) bo
th
a
&
b
30) A multidimensional array can be expressed in terms of
a) array of pointers rather than as pointers to a group of contiguous array
b) array without the group of contiguous array
c) data type arrays
d) None of these
31) C allows arrays of greater than two dimensions, who will determined this
a) programmer
b) compiler
c) parameter
We touch the future ☺ we teach !
d) None of these
32) A pointer to a pointer in a form of
a) multiple indirection
b) a chain of pointers
c) both a and b
d) None of these
33) Pointers are of
a) integer data type
b) character data type
c) unsigned integer data types
d) None of these
34) Maximum number of elements in the array declaration int a[5][8] is
a) 28
b) 32
c) 35
d) 40
35) If the size of the array is less than the number of initializers then,
a) Extra values are being ignored
b) Generates an error message
c) Size of Array is increased
d) Size is neglected when values are given
36) Array subscripts in C always start at
a) -1
b) 1
c) 0
d) Value provided by user
37) A Structure
a) c
a
n
be read as a single entity
b) cannot be read as a single entity
c) can be displayed as a single entity
d) has member variables that cannot be read individually
PC Training Institute Ltd., An ISO-9001 Certified Organisation
38) Identify the invalid pointer arithmetic
a) Addition of float value to a pointer
b) Comparision of pointers that do not point to the element of the same array
c) Subtracting an integer from a pointer
d) Assigning the value 0 to a pointer variable
39) Which is the correct way to declare a pointer?
a) int_ptr;
b) int *ptr;
c) *intptr;
d) None of these.
40) If you want to exchange two rows in a two dimensional array, the fastest way is to:
a) Exchange the elements of the 2rows
b) Exchange the address of each element in the two row]
c) Silence the address of the rows in an array of pointer and exchange the pointer
d) None of these.
We Also Provide SYNOPSIS AND PROJECT.
Contact www.kimsharma.co.in for best and lowest cost solution or
Email: amitymbaassignment@gmail.com
Call: 9971223030

More Related Content

What's hot

C programming Lab 1
C programming Lab 1C programming Lab 1
C programming Lab 1Zaibi Gondal
 
Puzles C#
Puzles C#Puzles C#
Puzles C#lantoli
 
Std 10 Chapter 10 Introduction to C Language Important MCQs
Std 10 Chapter 10 Introduction to C Language Important MCQsStd 10 Chapter 10 Introduction to C Language Important MCQs
Std 10 Chapter 10 Introduction to C Language Important MCQsNuzhat Memon
 
C __paper.docx_final
C __paper.docx_finalC __paper.docx_final
C __paper.docx_finalSumit Sar
 
Sen17513 summer2015-question-paper
Sen17513 summer2015-question-paperSen17513 summer2015-question-paper
Sen17513 summer2015-question-papervaishali rane
 
[Question Paper] Introduction To C++ Programming (Revised Course) [January / ...
[Question Paper] Introduction To C++ Programming (Revised Course) [January / ...[Question Paper] Introduction To C++ Programming (Revised Course) [January / ...
[Question Paper] Introduction To C++ Programming (Revised Course) [January / ...Mumbai B.Sc.IT Study
 
Functions & Procedures [7]
Functions & Procedures [7]Functions & Procedures [7]
Functions & Procedures [7]ecko_disasterz
 
C# programming datatypes
C# programming  datatypesC# programming  datatypes
C# programming datatypes성진 원
 
03 Operators and expressions
03 Operators and expressions03 Operators and expressions
03 Operators and expressionsmaznabili
 
17432 object oriented programming
17432   object oriented programming17432   object oriented programming
17432 object oriented programmingsoni_nits
 
Blueprints: Introduction to Python programming
Blueprints: Introduction to Python programmingBlueprints: Introduction to Python programming
Blueprints: Introduction to Python programmingBhalaji Nagarajan
 
Google technical-subjects-placement-papers
Google technical-subjects-placement-papersGoogle technical-subjects-placement-papers
Google technical-subjects-placement-papersAnkit Dubey
 
Crack The Interview
Crack The InterviewCrack The Interview
Crack The InterviewPratik Patel
 

What's hot (20)

Session 5-exersice
Session 5-exersiceSession 5-exersice
Session 5-exersice
 
Programming in c
Programming in cProgramming in c
Programming in c
 
C programming Lab 1
C programming Lab 1C programming Lab 1
C programming Lab 1
 
Puzles C#
Puzles C#Puzles C#
Puzles C#
 
Std 10 Chapter 10 Introduction to C Language Important MCQs
Std 10 Chapter 10 Introduction to C Language Important MCQsStd 10 Chapter 10 Introduction to C Language Important MCQs
Std 10 Chapter 10 Introduction to C Language Important MCQs
 
C __paper.docx_final
C __paper.docx_finalC __paper.docx_final
C __paper.docx_final
 
Sen17513 summer2015-question-paper
Sen17513 summer2015-question-paperSen17513 summer2015-question-paper
Sen17513 summer2015-question-paper
 
[Question Paper] Introduction To C++ Programming (Revised Course) [January / ...
[Question Paper] Introduction To C++ Programming (Revised Course) [January / ...[Question Paper] Introduction To C++ Programming (Revised Course) [January / ...
[Question Paper] Introduction To C++ Programming (Revised Course) [January / ...
 
Functions & Procedures [7]
Functions & Procedures [7]Functions & Procedures [7]
Functions & Procedures [7]
 
Assignment6
Assignment6Assignment6
Assignment6
 
C# programming datatypes
C# programming  datatypesC# programming  datatypes
C# programming datatypes
 
03 Operators and expressions
03 Operators and expressions03 Operators and expressions
03 Operators and expressions
 
17432 object oriented programming
17432   object oriented programming17432   object oriented programming
17432 object oriented programming
 
Blueprints: Introduction to Python programming
Blueprints: Introduction to Python programmingBlueprints: Introduction to Python programming
Blueprints: Introduction to Python programming
 
Assignment8
Assignment8Assignment8
Assignment8
 
Google technical-subjects-placement-papers
Google technical-subjects-placement-papersGoogle technical-subjects-placement-papers
Google technical-subjects-placement-papers
 
Assignment12
Assignment12Assignment12
Assignment12
 
Crack The Interview
Crack The InterviewCrack The Interview
Crack The Interview
 
201801 CSE240 Lecture 07
201801 CSE240 Lecture 07201801 CSE240 Lecture 07
201801 CSE240 Lecture 07
 
Chaptr 1
Chaptr 1Chaptr 1
Chaptr 1
 

Viewers also liked (15)

Introduction to IT
Introduction to ITIntroduction to IT
Introduction to IT
 
Maths
MathsMaths
Maths
 
İnovatif Kimya Dergisi Sayı-15
İnovatif Kimya Dergisi Sayı-15İnovatif Kimya Dergisi Sayı-15
İnovatif Kimya Dergisi Sayı-15
 
İnovatif Kimya Dergisi Sayı-16
İnovatif Kimya Dergisi Sayı-16İnovatif Kimya Dergisi Sayı-16
İnovatif Kimya Dergisi Sayı-16
 
İnovatif Kimya Dergisi Sayı-19
İnovatif Kimya Dergisi Sayı-19İnovatif Kimya Dergisi Sayı-19
İnovatif Kimya Dergisi Sayı-19
 
Signature Global Grand Iva Brochure - Zricks.com
Signature Global Grand Iva Brochure - Zricks.comSignature Global Grand Iva Brochure - Zricks.com
Signature Global Grand Iva Brochure - Zricks.com
 
İnovatif Kimya Dergisi Sayı-18
İnovatif Kimya Dergisi Sayı-18İnovatif Kimya Dergisi Sayı-18
İnovatif Kimya Dergisi Sayı-18
 
İnovatif Kimya Dergisi Sayı-17
İnovatif Kimya Dergisi Sayı-17İnovatif Kimya Dergisi Sayı-17
İnovatif Kimya Dergisi Sayı-17
 
Models of employment
Models of employmentModels of employment
Models of employment
 
Challenge Taiwan 2016 Athlete's Guide
Challenge Taiwan 2016 Athlete's GuideChallenge Taiwan 2016 Athlete's Guide
Challenge Taiwan 2016 Athlete's Guide
 
English Literature: Ode
English Literature: OdeEnglish Literature: Ode
English Literature: Ode
 
AXSGUARD_BR201410_web_tcm42-47246
AXSGUARD_BR201410_web_tcm42-47246AXSGUARD_BR201410_web_tcm42-47246
AXSGUARD_BR201410_web_tcm42-47246
 
Humberto BILBAO
Humberto BILBAOHumberto BILBAO
Humberto BILBAO
 
Collocation
CollocationCollocation
Collocation
 
Gravity
GravityGravity
Gravity
 

Similar to C Programming

this pdf very much useful for embedded c programming students
this pdf very much useful for embedded c programming studentsthis pdf very much useful for embedded c programming students
this pdf very much useful for embedded c programming studentspavan81088
 
C aptitude 1st jan 2012
C aptitude 1st jan 2012C aptitude 1st jan 2012
C aptitude 1st jan 2012Kishor Parkhe
 
Model question paper_mc0061
Model question paper_mc0061Model question paper_mc0061
Model question paper_mc0061gurbaxrawat
 
Std 10 chapter 11 data type, expression and operators important MCQs
Std 10 chapter 11 data type, expression and operators important MCQsStd 10 chapter 11 data type, expression and operators important MCQs
Std 10 chapter 11 data type, expression and operators important MCQsNuzhat Memon
 
LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdf
LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdfLDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdf
LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdfVedant Gavhane
 
Data structures and algorithms unit i
Data structures and algorithms unit iData structures and algorithms unit i
Data structures and algorithms unit isonalisraisoni
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1 UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1 Knowledge Center Computer
 
ExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docxExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docxgitagrimston
 
CAPE Computer Science Unit 1 Paper 1 - Practice Paper
CAPE Computer Science Unit 1 Paper 1 - Practice PaperCAPE Computer Science Unit 1 Paper 1 - Practice Paper
CAPE Computer Science Unit 1 Paper 1 - Practice PaperAlex Stewart
 
200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)Ankit Dubey
 
CXC CSEC Information Technology Multiple Choice Questions
CXC CSEC Information Technology Multiple Choice QuestionsCXC CSEC Information Technology Multiple Choice Questions
CXC CSEC Information Technology Multiple Choice QuestionsElliot Seepaul
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2Knowledge Center Computer
 
MATLAB Questions and Answers.pdf
MATLAB Questions and Answers.pdfMATLAB Questions and Answers.pdf
MATLAB Questions and Answers.pdfahmed8651
 
Csc1100 lecture02 ch02-datatype_declaration
Csc1100 lecture02 ch02-datatype_declarationCsc1100 lecture02 ch02-datatype_declaration
Csc1100 lecture02 ch02-datatype_declarationIIUM
 
Csc1100 lecture02 ch02-datatype_declaration
Csc1100 lecture02 ch02-datatype_declarationCsc1100 lecture02 ch02-datatype_declaration
Csc1100 lecture02 ch02-datatype_declarationIIUM
 

Similar to C Programming (20)

this pdf very much useful for embedded c programming students
this pdf very much useful for embedded c programming studentsthis pdf very much useful for embedded c programming students
this pdf very much useful for embedded c programming students
 
C aptitude 1st jan 2012
C aptitude 1st jan 2012C aptitude 1st jan 2012
C aptitude 1st jan 2012
 
Model question paper_mc0061
Model question paper_mc0061Model question paper_mc0061
Model question paper_mc0061
 
Part - 3 Cpp programming Solved MCQ
Part - 3 Cpp programming Solved MCQ  Part - 3 Cpp programming Solved MCQ
Part - 3 Cpp programming Solved MCQ
 
Std 10 chapter 11 data type, expression and operators important MCQs
Std 10 chapter 11 data type, expression and operators important MCQsStd 10 chapter 11 data type, expression and operators important MCQs
Std 10 chapter 11 data type, expression and operators important MCQs
 
LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdf
LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdfLDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdf
LDCQ paper Dec21 with answer key_62cb2996afc60f6aedeb248c1d9283e5.pdf
 
Data structures and algorithms unit i
Data structures and algorithms unit iData structures and algorithms unit i
Data structures and algorithms unit i
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1 UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 1
 
Technical questions
Technical questionsTechnical questions
Technical questions
 
C question bank
C question bankC question bank
C question bank
 
ExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docxExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docx
 
Pcd201516
Pcd201516Pcd201516
Pcd201516
 
Unit i intro-operators
Unit   i intro-operatorsUnit   i intro-operators
Unit i intro-operators
 
CAPE Computer Science Unit 1 Paper 1 - Practice Paper
CAPE Computer Science Unit 1 Paper 1 - Practice PaperCAPE Computer Science Unit 1 Paper 1 - Practice Paper
CAPE Computer Science Unit 1 Paper 1 - Practice Paper
 
200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)
 
CXC CSEC Information Technology Multiple Choice Questions
CXC CSEC Information Technology Multiple Choice QuestionsCXC CSEC Information Technology Multiple Choice Questions
CXC CSEC Information Technology Multiple Choice Questions
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
 
MATLAB Questions and Answers.pdf
MATLAB Questions and Answers.pdfMATLAB Questions and Answers.pdf
MATLAB Questions and Answers.pdf
 
Csc1100 lecture02 ch02-datatype_declaration
Csc1100 lecture02 ch02-datatype_declarationCsc1100 lecture02 ch02-datatype_declaration
Csc1100 lecture02 ch02-datatype_declaration
 
Csc1100 lecture02 ch02-datatype_declaration
Csc1100 lecture02 ch02-datatype_declarationCsc1100 lecture02 ch02-datatype_declaration
Csc1100 lecture02 ch02-datatype_declaration
 

Recently uploaded

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 

Recently uploaded (20)

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 

C Programming

  • 1. Q1. What is the basic difference between DVORAK and QWERTY pattern of keyboards? Explain in the context of current market usage. Q2. Differentiate between compiler and interpreter Q3. What do you understand by output device? Explain printer and printing mechanism of character by dot matrix. Q4. With the help of a ‘C’ program define call by value and call by reference. Q5. What are the different storage classes available in ‘c’? Explain any one of them. Q6. What is operator? Define conditional operator with a C program. Q7. Write a function that receives 5 integers and returns the sum and the average of these numbers. Call this function from main () and print the results in main (). Q8. Write a c Program to count number of characters, number of blanks, and number of words. Assignment B Q1. A 5 digit positive integer is entered through the keyboard, write a function to calculate sum of digits of the 5 digit number a) Without using recursion b) Using recursion Q2. Write a recursive function to obtain the first 25 numbers of a Fibonacci sequence. In a Fibonacci sequence the sum of two successive terms gives the third term. Following are the first few terms of the Fibonacci sequence 1 1 2 3 5 8 13 21 34 55 89….. 1) Which of the following statements is true? a) C Library functions provide I/O facilities b) C inherent I/O facilities c) C doesn’t have I/O facilities d) Both (a) and (c) 2) Header files in C contain a) Compiler commands b) Library functions c) Header information of C programs d) Operators for files 3) Which pair of functions below are used for single character I/O. a) Getchar() and putchar() b) Scanf() and printf() c) Input() and output()
  • 2. d) None of these 4) The printf() function retunes which value when an error occurs? a) Positive value b) Zero c) Negative value d) None of these 5) Identify the wrong statement a) putchar(65) b) putchar('x') c) putchar("x") d) putchar('n') 6) The output of printf("%u", -1) is a) -1 b) minimum int value c) maxiumint value d) Error message 7) An Ampersand before the name of a variable denotes a) Actual Value b) Variable Name c) ess d) Data Type 8) Symbolic constants can be defined using a) # define b) const c) symbols d) None of these 9) Null character is represented by a) n b) 0 c) o d) e 10) Which header file is essential for using strcmp() function? a) string.h b) strings.h c) text.h d) strcmp.h 11) malloc() function used in dynamic allocation is available in which header file? a) stdio.h b) stdlib.h c) conio.h d) mem.h 12) File manipulation functions in C are available in which header file? a) streams.h b) stdio.h PC Training Institute Ltd., An ISO-9001 Certified Organisation
  • 3. c) stdlib.h d) files.h 13) C supports how many basic looping constructs a) 2 b) 3 c) 4 d) 6 14) A statement differs from expression by terminating with a a) ; b) : c) NULL d) . 15) What should be the expression return value for a do-while to terminate a) 1 b) 0 c) -1 d) NULL 16) Which among the following is a unconditional control structure a) do-while b) if-else c) goto d) for 17) continue statement is used a) to go to the next iteration in a loop b) come out of a loop c) exit and return to the main function d) restarts iterations from beginning of loop 18) Which operator in C is called a ternary operator a) if..then b) ++ c) ?: d) () 19) Which of the following header file is required for strcpy() function? a) string.h b) strings.h We touch the future ☺ we teach !
  • 4. c) files.h d) strcsspy() 20) The meaning of conversion character for data input is a) Data item is a long integer b) Data item is an unsigned decimal integer c) Data item is a short integer d) None of the above 21) The conversion characters for data input means that the data item is a) An unsigned decimal integer b) A short integer c) A hexadecimal integer d) A string followed by white space 22) Which of the following is a key word is used for a storage class a) printf b) external c) auto d) scanf 23) In the C language 'a’ represents a) a digit b) an integer c) a character d) a word 24) The number of the relational operators in the C language is a) Four b) Six c) Three d) One 25) A compound statement is a group of statements included between a pair of a) double quote PC Training Institute Ltd., An ISO-9001 Certified Organisation
  • 5. b) curly braces c) parenthesis d) a pair of /’s 26) A Link is a) a compiler b) an active debugger c) a C interpreter d) a analyzing tool in C 27) The continue command cannot be used with a) for b) switch c) do d) while 28) In C, a Union is a) memory location b) memory store c) memory screen d) None of these 29) When the main function is called, it is called with the arguments a) argc b) argv c) None of these d) bo th a & b 30) A multidimensional array can be expressed in terms of a) array of pointers rather than as pointers to a group of contiguous array b) array without the group of contiguous array c) data type arrays d) None of these 31) C allows arrays of greater than two dimensions, who will determined this a) programmer b) compiler c) parameter We touch the future ☺ we teach !
  • 6. d) None of these 32) A pointer to a pointer in a form of a) multiple indirection b) a chain of pointers c) both a and b d) None of these 33) Pointers are of a) integer data type b) character data type c) unsigned integer data types d) None of these 34) Maximum number of elements in the array declaration int a[5][8] is a) 28 b) 32 c) 35 d) 40 35) If the size of the array is less than the number of initializers then, a) Extra values are being ignored b) Generates an error message c) Size of Array is increased d) Size is neglected when values are given 36) Array subscripts in C always start at a) -1 b) 1 c) 0 d) Value provided by user 37) A Structure a) c a n be read as a single entity b) cannot be read as a single entity c) can be displayed as a single entity d) has member variables that cannot be read individually PC Training Institute Ltd., An ISO-9001 Certified Organisation
  • 7. 38) Identify the invalid pointer arithmetic a) Addition of float value to a pointer b) Comparision of pointers that do not point to the element of the same array c) Subtracting an integer from a pointer d) Assigning the value 0 to a pointer variable 39) Which is the correct way to declare a pointer? a) int_ptr; b) int *ptr; c) *intptr; d) None of these. 40) If you want to exchange two rows in a two dimensional array, the fastest way is to: a) Exchange the elements of the 2rows b) Exchange the address of each element in the two row] c) Silence the address of the rows in an array of pointer and exchange the pointer d) None of these. We Also Provide SYNOPSIS AND PROJECT. Contact www.kimsharma.co.in for best and lowest cost solution or Email: amitymbaassignment@gmail.com Call: 9971223030