SlideShare a Scribd company logo
For more MCQ Question visit www.csemcq.com
Q1. If an integer need 2 bytes of storage then the maximum value of an signed integer is:
a) 216
-1
b) 215
-1
c) 216
d) 215
Ans b
Explanation: In signed magnitude form one bit is used to store the sign so only 15 bits are
available to store the value.
Q2. If cse is an input then the following program fragment results in
Char x,y,z;
Printf(“%d”,scanf(“%c”, “%c”, “%c”,&x,&y,&z)); results in
a) Syntax error
b) A fatal error
c) Segmentation violation
d) Printing of 3
Ans d
Explanation: Scanf() function returns number of successful matches I.e. 3 in this case
Q3 The statement printf(“%d”,sizeof(“”)); prints
a) An error message b) 0 c) garbage d) 1
Ans d
Q4 The following program fragment:
if (a=5)
printf(“a is five”);
else
printf(“a is not five”);
result in the printing of
a) a is five
b) a is not five
c) nothing
d) garbage
ans a
q5 main()
For more MCQ Question visit www.csemcq.com
{
Int i=5;
i=(++i)/(i++);
printf(“%d”,i);
}
prints:
a) 2 b) 5 c) 1 d) 6
Ans a
Q6 The statement printf(“%d”,10?0?5:11:12);
prints:
a) 10 b) 0 c) 12 d) 11
Ans d
Q7 if you are using “open” function for opening a file the file handle should be of--------type
a)FILE
b) int
c) char
d)none of the above
ans a;
Q8 What will be the output of following program:
#define ISLOWER(a)(a>=97&&a<=127)
#define TOUPPER(a)(a=a-32)
int main()
{
char ch=’c’;
if(ISLOWER(ch))
ch=TOUPPER(ch);
printf(“%c”,ch);
}
Ans a)C b)c c)99 d) None of the above
Q9.
Find the output of program:
int main()
{
int i;
For more MCQ Question visit www.csemcq.com
for(i=-1;i<=10;i++)
{
if(i<5)
continue;
else
break;
printf("gets printed only once");
}
}
Ans a)No output b) Gets Printed only once c)Error d) None
Q10
Find the output of program:
int main()
{
if(printf("C for yourself how it worksn"))
getch();
}
a) Error b) C for yourself how it works c) none
e) C for yourself how it works
C for yourself how it works
C for yourself how it works
C for yourself how it works
----------------------------------
Ans b

More Related Content

What's hot

C programming Lab 2
C programming Lab 2C programming Lab 2
C programming Lab 2
Zaibi Gondal
 
Data structures and algorithms unit i
Data structures and algorithms unit iData structures and algorithms unit i
Data structures and algorithms unit i
sonalisraisoni
 
C++ questions
C++ questionsC++ questions
C++ questions
devimithra
 
C Programming Example
C Programming ExampleC Programming Example
C Programming Example
PRATHAMESH DESHPANDE
 
C Programming Example
C Programming Example C Programming Example
C Programming Example
University of Potsdam
 
Lab. Programs in C
Lab. Programs in CLab. Programs in C
Lab. Programs in C
Saket Pathak
 
The solution manual of c by robin
The solution manual of c by robinThe solution manual of c by robin
The solution manual of c by robin
Abdullah Al Naser
 
Basic Programs of C++
Basic Programs of C++Basic Programs of C++
Basic Programs of C++
Bharat Kalia
 
C Programming
C ProgrammingC Programming
C Programming
Sumant Diwakar
 
C++ assignment
C++ assignmentC++ assignment
C++ assignment
Zohaib Ahmed
 
Program for pyramid
Program for pyramidProgram for pyramid
Program for pyramidnayakq
 
some basic C programs with outputs
some basic C programs with outputssome basic C programs with outputs
some basic C programs with outputs
KULDEEPSING PATIL
 
Hargun
HargunHargun
CSC – 184 Programming C
CSC – 184 Programming CCSC – 184 Programming C
CSC – 184 Programming C
ABIR A HAPZU
 

What's hot (20)

Lab loop
Lab loopLab loop
Lab loop
 
comp2
comp2comp2
comp2
 
comp1
comp1comp1
comp1
 
C programming Lab 2
C programming Lab 2C programming Lab 2
C programming Lab 2
 
Data structures and algorithms unit i
Data structures and algorithms unit iData structures and algorithms unit i
Data structures and algorithms unit i
 
C++ questions
C++ questionsC++ questions
C++ questions
 
Exam for c
Exam for cExam for c
Exam for c
 
C Programming Example
C Programming ExampleC Programming Example
C Programming Example
 
C Programming Example
C Programming Example C Programming Example
C Programming Example
 
Lab. Programs in C
Lab. Programs in CLab. Programs in C
Lab. Programs in C
 
The solution manual of c by robin
The solution manual of c by robinThe solution manual of c by robin
The solution manual of c by robin
 
Progr3
Progr3Progr3
Progr3
 
Basic Programs of C++
Basic Programs of C++Basic Programs of C++
Basic Programs of C++
 
C Programming
C ProgrammingC Programming
C Programming
 
C++ assignment
C++ assignmentC++ assignment
C++ assignment
 
Program for pyramid
Program for pyramidProgram for pyramid
Program for pyramid
 
C
CC
C
 
some basic C programs with outputs
some basic C programs with outputssome basic C programs with outputs
some basic C programs with outputs
 
Hargun
HargunHargun
Hargun
 
CSC – 184 Programming C
CSC – 184 Programming CCSC – 184 Programming C
CSC – 184 Programming C
 

Viewers also liked

Multiple choice questions with answers
Multiple choice questions with answersMultiple choice questions with answers
Multiple choice questions with answersClassic Tech
 
C programming & data structure
C programming & data structureC programming & data structure
C programming & data structure
rajeev_123
 
New Syllabus MBA 2yrs MDU DDE, Rohtak
New Syllabus MBA 2yrs MDU DDE, RohtakNew Syllabus MBA 2yrs MDU DDE, Rohtak
New Syllabus MBA 2yrs MDU DDE, Rohtak
Shakehand with Life
 
C programming & data structure [character strings & string functions]
C programming & data structure   [character strings & string functions]C programming & data structure   [character strings & string functions]
C programming & data structure [character strings & string functions]
MomenMostafa
 
Davidson mc qs
Davidson mc qsDavidson mc qs
Davidson mc qs
jolly zh
 
Hrm for competetive exams
Hrm for competetive examsHrm for competetive exams
Hrm for competetive exams
MGLRI
 
Quiz HR
Quiz  HRQuiz  HR
Nailing an MCQ Question
Nailing an MCQ QuestionNailing an MCQ Question
Nailing an MCQ Question
iBATEFL.COM
 
Mgt501 mega solved_file_for_exam_www.vustudents.net
Mgt501 mega solved_file_for_exam_www.vustudents.netMgt501 mega solved_file_for_exam_www.vustudents.net
Mgt501 mega solved_file_for_exam_www.vustudents.net
Inder Samant
 
HR Quiz
HR QuizHR Quiz
Human Resource Management Quiz
Human Resource Management QuizHuman Resource Management Quiz
Human Resource Management Quiz
Masroor Baig
 
Notes for mba (strategic management) unit i
Notes for mba (strategic management) unit iNotes for mba (strategic management) unit i
Notes for mba (strategic management) unit i
snselvaraj
 
Steve Jobs Inspirational Quotes
Steve Jobs Inspirational QuotesSteve Jobs Inspirational Quotes
Steve Jobs Inspirational Quotes
InsideView
 
110 mcqs of HR Management Solved
110 mcqs of HR Management Solved 110 mcqs of HR Management Solved
110 mcqs of HR Management Solved Aasim Mushtaq
 
Deep C
Deep CDeep C
Deep C
Olve Maudal
 

Viewers also liked (15)

Multiple choice questions with answers
Multiple choice questions with answersMultiple choice questions with answers
Multiple choice questions with answers
 
C programming & data structure
C programming & data structureC programming & data structure
C programming & data structure
 
New Syllabus MBA 2yrs MDU DDE, Rohtak
New Syllabus MBA 2yrs MDU DDE, RohtakNew Syllabus MBA 2yrs MDU DDE, Rohtak
New Syllabus MBA 2yrs MDU DDE, Rohtak
 
C programming & data structure [character strings & string functions]
C programming & data structure   [character strings & string functions]C programming & data structure   [character strings & string functions]
C programming & data structure [character strings & string functions]
 
Davidson mc qs
Davidson mc qsDavidson mc qs
Davidson mc qs
 
Hrm for competetive exams
Hrm for competetive examsHrm for competetive exams
Hrm for competetive exams
 
Quiz HR
Quiz  HRQuiz  HR
Quiz HR
 
Nailing an MCQ Question
Nailing an MCQ QuestionNailing an MCQ Question
Nailing an MCQ Question
 
Mgt501 mega solved_file_for_exam_www.vustudents.net
Mgt501 mega solved_file_for_exam_www.vustudents.netMgt501 mega solved_file_for_exam_www.vustudents.net
Mgt501 mega solved_file_for_exam_www.vustudents.net
 
HR Quiz
HR QuizHR Quiz
HR Quiz
 
Human Resource Management Quiz
Human Resource Management QuizHuman Resource Management Quiz
Human Resource Management Quiz
 
Notes for mba (strategic management) unit i
Notes for mba (strategic management) unit iNotes for mba (strategic management) unit i
Notes for mba (strategic management) unit i
 
Steve Jobs Inspirational Quotes
Steve Jobs Inspirational QuotesSteve Jobs Inspirational Quotes
Steve Jobs Inspirational Quotes
 
110 mcqs of HR Management Solved
110 mcqs of HR Management Solved 110 mcqs of HR Management Solved
110 mcqs of HR Management Solved
 
Deep C
Deep CDeep C
Deep C
 

Similar to C mcq practice test 1

important C questions and_answers praveensomesh
important C questions and_answers praveensomeshimportant C questions and_answers praveensomesh
important C questions and_answers praveensomesh
praveensomesh
 
LET US C (5th EDITION) CHAPTER 2 ANSWERS
LET US C (5th EDITION) CHAPTER 2 ANSWERSLET US C (5th EDITION) CHAPTER 2 ANSWERS
LET US C (5th EDITION) CHAPTER 2 ANSWERS
KavyaSharma65
 
'C' language notes (a.p)
'C' language notes (a.p)'C' language notes (a.p)
'C' language notes (a.p)
Ashishchinu
 
Session 5-exersice
Session 5-exersiceSession 5-exersice
Session 5-exersice
Keroles karam khalil
 
UNIT 2 LOOP CONTROL.pptx
UNIT 2 LOOP CONTROL.pptxUNIT 2 LOOP CONTROL.pptx
UNIT 2 LOOP CONTROL.pptx
Abhishekkumarsingh630054
 
1. Which of the following statements would correctly print out t.pdf
1. Which of the following statements would correctly print out t.pdf1. Which of the following statements would correctly print out t.pdf
1. Which of the following statements would correctly print out t.pdf
ezzi97
 
C MCQ
C MCQC MCQ
Let us C (by yashvant Kanetkar) chapter 3 Solution
Let us C   (by yashvant Kanetkar) chapter 3 SolutionLet us C   (by yashvant Kanetkar) chapter 3 Solution
Let us C (by yashvant Kanetkar) chapter 3 Solution
Hazrat Bilal
 
C-programs
C-programsC-programs
C-programs
SSGMCE SHEGAON
 
C language questions_answers_explanation
C language questions_answers_explanationC language questions_answers_explanation
C language questions_answers_explanation
srinath v
 
Technical questions for interview c programming
Technical questions for interview  c programmingTechnical questions for interview  c programming
Technical questions for interview c programming
CHANDAN KUMAR
 
(Www.entrance exam.net)-tcs placement sample paper 2
(Www.entrance exam.net)-tcs placement sample paper 2(Www.entrance exam.net)-tcs placement sample paper 2
(Www.entrance exam.net)-tcs placement sample paper 2Pamidimukkala Sivani
 
Chapter 5 Balagurusamy Programming ANSI in c
Chapter 5 Balagurusamy Programming ANSI  in cChapter 5 Balagurusamy Programming ANSI  in c
Chapter 5 Balagurusamy Programming ANSI in c
BUBT
 
Technical questions
Technical questionsTechnical questions
Technical questions
Kirthan S Holla
 
ExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docxExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docx
gitagrimston
 
Deep C Programming
Deep C ProgrammingDeep C Programming
Deep C Programming
Wang Hao Lee
 
C Programming lab
C Programming labC Programming lab
C Programming lab
Vikram Nandini
 
famous placement papers
famous placement papersfamous placement papers
famous placement papersRamanujam Ramu
 
New microsoft office word document (3)
New microsoft office word document (3)New microsoft office word document (3)
New microsoft office word document (3)
Sagar Kuchekar
 

Similar to C mcq practice test 1 (20)

important C questions and_answers praveensomesh
important C questions and_answers praveensomeshimportant C questions and_answers praveensomesh
important C questions and_answers praveensomesh
 
LET US C (5th EDITION) CHAPTER 2 ANSWERS
LET US C (5th EDITION) CHAPTER 2 ANSWERSLET US C (5th EDITION) CHAPTER 2 ANSWERS
LET US C (5th EDITION) CHAPTER 2 ANSWERS
 
'C' language notes (a.p)
'C' language notes (a.p)'C' language notes (a.p)
'C' language notes (a.p)
 
Session 5-exersice
Session 5-exersiceSession 5-exersice
Session 5-exersice
 
UNIT 2 LOOP CONTROL.pptx
UNIT 2 LOOP CONTROL.pptxUNIT 2 LOOP CONTROL.pptx
UNIT 2 LOOP CONTROL.pptx
 
1. Which of the following statements would correctly print out t.pdf
1. Which of the following statements would correctly print out t.pdf1. Which of the following statements would correctly print out t.pdf
1. Which of the following statements would correctly print out t.pdf
 
C MCQ
C MCQC MCQ
C MCQ
 
Let us C (by yashvant Kanetkar) chapter 3 Solution
Let us C   (by yashvant Kanetkar) chapter 3 SolutionLet us C   (by yashvant Kanetkar) chapter 3 Solution
Let us C (by yashvant Kanetkar) chapter 3 Solution
 
C-programs
C-programsC-programs
C-programs
 
C language questions_answers_explanation
C language questions_answers_explanationC language questions_answers_explanation
C language questions_answers_explanation
 
Technical questions for interview c programming
Technical questions for interview  c programmingTechnical questions for interview  c programming
Technical questions for interview c programming
 
(Www.entrance exam.net)-tcs placement sample paper 2
(Www.entrance exam.net)-tcs placement sample paper 2(Www.entrance exam.net)-tcs placement sample paper 2
(Www.entrance exam.net)-tcs placement sample paper 2
 
Revision1schema C programming
Revision1schema C programmingRevision1schema C programming
Revision1schema C programming
 
Chapter 5 Balagurusamy Programming ANSI in c
Chapter 5 Balagurusamy Programming ANSI  in cChapter 5 Balagurusamy Programming ANSI  in c
Chapter 5 Balagurusamy Programming ANSI in c
 
Technical questions
Technical questionsTechnical questions
Technical questions
 
ExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docxExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docx
 
Deep C Programming
Deep C ProgrammingDeep C Programming
Deep C Programming
 
C Programming lab
C Programming labC Programming lab
C Programming lab
 
famous placement papers
famous placement papersfamous placement papers
famous placement papers
 
New microsoft office word document (3)
New microsoft office word document (3)New microsoft office word document (3)
New microsoft office word document (3)
 

Recently uploaded

A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 

Recently uploaded (20)

A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 

C mcq practice test 1

  • 1. For more MCQ Question visit www.csemcq.com Q1. If an integer need 2 bytes of storage then the maximum value of an signed integer is: a) 216 -1 b) 215 -1 c) 216 d) 215 Ans b Explanation: In signed magnitude form one bit is used to store the sign so only 15 bits are available to store the value. Q2. If cse is an input then the following program fragment results in Char x,y,z; Printf(“%d”,scanf(“%c”, “%c”, “%c”,&x,&y,&z)); results in a) Syntax error b) A fatal error c) Segmentation violation d) Printing of 3 Ans d Explanation: Scanf() function returns number of successful matches I.e. 3 in this case Q3 The statement printf(“%d”,sizeof(“”)); prints a) An error message b) 0 c) garbage d) 1 Ans d Q4 The following program fragment: if (a=5) printf(“a is five”); else printf(“a is not five”); result in the printing of a) a is five b) a is not five c) nothing d) garbage ans a q5 main()
  • 2. For more MCQ Question visit www.csemcq.com { Int i=5; i=(++i)/(i++); printf(“%d”,i); } prints: a) 2 b) 5 c) 1 d) 6 Ans a Q6 The statement printf(“%d”,10?0?5:11:12); prints: a) 10 b) 0 c) 12 d) 11 Ans d Q7 if you are using “open” function for opening a file the file handle should be of--------type a)FILE b) int c) char d)none of the above ans a; Q8 What will be the output of following program: #define ISLOWER(a)(a>=97&&a<=127) #define TOUPPER(a)(a=a-32) int main() { char ch=’c’; if(ISLOWER(ch)) ch=TOUPPER(ch); printf(“%c”,ch); } Ans a)C b)c c)99 d) None of the above Q9. Find the output of program: int main() { int i;
  • 3. For more MCQ Question visit www.csemcq.com for(i=-1;i<=10;i++) { if(i<5) continue; else break; printf("gets printed only once"); } } Ans a)No output b) Gets Printed only once c)Error d) None Q10 Find the output of program: int main() { if(printf("C for yourself how it worksn")) getch(); } a) Error b) C for yourself how it works c) none e) C for yourself how it works C for yourself how it works C for yourself how it works C for yourself how it works ---------------------------------- Ans b