SlideShare a Scribd company logo
TURBO C
PROGRAMMING QUIZ
Adrian V. Antopina
ASSUMING THAT PROGRAM IS CORRECT
Problem:
Write a program that will calculate the
sum, difference, quotient and product of
two integers. The program will have to
choose for the criteria.
A ------ Addition
S------- Subtraction
M------ Multiplication
D------- Division
SAMPLE OUTPUT
Enter 1st Number: 6
Enter 2nd number: 2
Enter Operation: M
The product of 6 and 2 is: 12
TRUE OR FALSE
1.#include<iostream>
2.#include <conio.p>
3.Main ();
4.{
5.int num1; char opt;
TRUE OR FALSE
6. Int num2;
7. int sum,diff,quo,prod:
8. cout<<“Enter 1st number:”;
9. cin>>num1:
10. cout<<(“Enter 2nd number:”),
TRUE OR FALSE
11. cin>>num2;
12. if (opt == ‘M’ || opt == ‘m’)
13. cout<<“The product of
“”<<num1<< “and” <<num2<<“
is:”<<prod;
14. If (Opt == ‘A’ || opt == ‘a’)
TRUE OR FALSE
15. cout<<“The sum of “<<num1”
and <<num2<< is: sum
16. if (opt == ‘D’ || opt == “d”)
17. cout<<(“The quotient of
<<“num1” and <<num2<< is:
>>div;
TRUE OR FALSE
18. if (opt == ‘S’ || opt == ‘s’)
19. cout<<(“The difference of
<<num1 and <<num2 is: <<diff;
20. ]

More Related Content

Similar to C++ programming Quiz t or f.pptx

Mid term sem 2 1415 sol
Mid term sem 2 1415 solMid term sem 2 1415 sol
Mid term sem 2 1415 sol
IIUM
 
C programming Lab 1
C programming Lab 1C programming Lab 1
C programming Lab 1
Zaibi Gondal
 
COMP 122 Entire Course NEW
COMP 122 Entire Course NEWCOMP 122 Entire Course NEW
COMP 122 Entire Course NEW
shyamuopeight
 
Informatics Practice Practical for 12th class
Informatics Practice Practical for 12th classInformatics Practice Practical for 12th class
Informatics Practice Practical for 12th class
phultoosks876
 
Lab-11-C-Problems.pptx
Lab-11-C-Problems.pptxLab-11-C-Problems.pptx
Lab-11-C-Problems.pptx
ShimoFcis
 
Exercises
ExercisesExercises
Exercises
loidasacueza
 
operators.ppt
operators.pptoperators.ppt
operators.ppt
gamingwithfaulty
 
Fuzail_File_C.docx
Fuzail_File_C.docxFuzail_File_C.docx
Fuzail_File_C.docx
SyedFuzail14
 
C# 6Write a program that creates a Calculation ClassUse the foll.pdf
C# 6Write a program that creates a Calculation ClassUse the foll.pdfC# 6Write a program that creates a Calculation ClassUse the foll.pdf
C# 6Write a program that creates a Calculation ClassUse the foll.pdf
ssuserc77a341
 
Cs2312 OOPS LAB MANUAL
Cs2312 OOPS LAB MANUALCs2312 OOPS LAB MANUAL
Cs2312 OOPS LAB MANUALPrabhu D
 
Session 5-exersice
Session 5-exersiceSession 5-exersice
Session 5-exersice
Keroles karam khalil
 
Labsheet1 stud
Labsheet1 studLabsheet1 stud
Labsheet1 studrohassanie
 
Isc computer project final upload last
Isc computer project final upload lastIsc computer project final upload last
Isc computer project final upload last
Arunav Ray
 
Assignement of programming & problem solving ass.(3)
Assignement of programming & problem solving ass.(3)Assignement of programming & problem solving ass.(3)
Assignement of programming & problem solving ass.(3)
Syed Umair
 
DISCRETE MATH.docx
DISCRETE MATH.docxDISCRETE MATH.docx
DISCRETE MATH.docx
Adityatiwari89591
 
C programming Lab 2
C programming Lab 2C programming Lab 2
C programming Lab 2
Zaibi Gondal
 

Similar to C++ programming Quiz t or f.pptx (20)

Mid term sem 2 1415 sol
Mid term sem 2 1415 solMid term sem 2 1415 sol
Mid term sem 2 1415 sol
 
C programming Lab 1
C programming Lab 1C programming Lab 1
C programming Lab 1
 
COMP 122 Entire Course NEW
COMP 122 Entire Course NEWCOMP 122 Entire Course NEW
COMP 122 Entire Course NEW
 
Informatics Practice Practical for 12th class
Informatics Practice Practical for 12th classInformatics Practice Practical for 12th class
Informatics Practice Practical for 12th class
 
Lab-11-C-Problems.pptx
Lab-11-C-Problems.pptxLab-11-C-Problems.pptx
Lab-11-C-Problems.pptx
 
Exercises
ExercisesExercises
Exercises
 
operators.ppt
operators.pptoperators.ppt
operators.ppt
 
Fuzail_File_C.docx
Fuzail_File_C.docxFuzail_File_C.docx
Fuzail_File_C.docx
 
C# 6Write a program that creates a Calculation ClassUse the foll.pdf
C# 6Write a program that creates a Calculation ClassUse the foll.pdfC# 6Write a program that creates a Calculation ClassUse the foll.pdf
C# 6Write a program that creates a Calculation ClassUse the foll.pdf
 
Cs2312 OOPS LAB MANUAL
Cs2312 OOPS LAB MANUALCs2312 OOPS LAB MANUAL
Cs2312 OOPS LAB MANUAL
 
Labsheet 4
Labsheet 4Labsheet 4
Labsheet 4
 
Session 5-exersice
Session 5-exersiceSession 5-exersice
Session 5-exersice
 
Labsheet1 stud
Labsheet1 studLabsheet1 stud
Labsheet1 stud
 
Isc computer project final upload last
Isc computer project final upload lastIsc computer project final upload last
Isc computer project final upload last
 
Labsheet1stud
Labsheet1studLabsheet1stud
Labsheet1stud
 
Bijender (1)
Bijender (1)Bijender (1)
Bijender (1)
 
Assignement of programming & problem solving ass.(3)
Assignement of programming & problem solving ass.(3)Assignement of programming & problem solving ass.(3)
Assignement of programming & problem solving ass.(3)
 
DISCRETE MATH.docx
DISCRETE MATH.docxDISCRETE MATH.docx
DISCRETE MATH.docx
 
C lab-programs
C lab-programsC lab-programs
C lab-programs
 
C programming Lab 2
C programming Lab 2C programming Lab 2
C programming Lab 2
 

More from AdrianVANTOPINA

Chapter05-Control Structures.pptx
Chapter05-Control Structures.pptxChapter05-Control Structures.pptx
Chapter05-Control Structures.pptx
AdrianVANTOPINA
 
Communicating-Digital-Content.pptx
Communicating-Digital-Content.pptxCommunicating-Digital-Content.pptx
Communicating-Digital-Content.pptx
AdrianVANTOPINA
 
Introduction to Animation.ppt
Introduction to Animation.pptIntroduction to Animation.ppt
Introduction to Animation.ppt
AdrianVANTOPINA
 
Introduction to Animation.ppt
Introduction to Animation.pptIntroduction to Animation.ppt
Introduction to Animation.ppt
AdrianVANTOPINA
 
Intro to Computer Chapter 1.pptx
Intro to Computer Chapter 1.pptxIntro to Computer Chapter 1.pptx
Intro to Computer Chapter 1.pptx
AdrianVANTOPINA
 
iterarative statements.pptx
iterarative statements.pptxiterarative statements.pptx
iterarative statements.pptx
AdrianVANTOPINA
 
Digital Security Risk.pptx
Digital Security Risk.pptxDigital Security Risk.pptx
Digital Security Risk.pptx
AdrianVANTOPINA
 
iterarative statements - Copy.pptx
iterarative statements - Copy.pptxiterarative statements - Copy.pptx
iterarative statements - Copy.pptx
AdrianVANTOPINA
 
iterarative statements - Copy.pptx
iterarative statements - Copy.pptxiterarative statements - Copy.pptx
iterarative statements - Copy.pptx
AdrianVANTOPINA
 

More from AdrianVANTOPINA (11)

Chapter05-Control Structures.pptx
Chapter05-Control Structures.pptxChapter05-Control Structures.pptx
Chapter05-Control Structures.pptx
 
Communicating-Digital-Content.pptx
Communicating-Digital-Content.pptxCommunicating-Digital-Content.pptx
Communicating-Digital-Content.pptx
 
programming.ppt
programming.pptprogramming.ppt
programming.ppt
 
MS Excel Quiz.pptx
MS Excel Quiz.pptxMS Excel Quiz.pptx
MS Excel Quiz.pptx
 
Introduction to Animation.ppt
Introduction to Animation.pptIntroduction to Animation.ppt
Introduction to Animation.ppt
 
Introduction to Animation.ppt
Introduction to Animation.pptIntroduction to Animation.ppt
Introduction to Animation.ppt
 
Intro to Computer Chapter 1.pptx
Intro to Computer Chapter 1.pptxIntro to Computer Chapter 1.pptx
Intro to Computer Chapter 1.pptx
 
iterarative statements.pptx
iterarative statements.pptxiterarative statements.pptx
iterarative statements.pptx
 
Digital Security Risk.pptx
Digital Security Risk.pptxDigital Security Risk.pptx
Digital Security Risk.pptx
 
iterarative statements - Copy.pptx
iterarative statements - Copy.pptxiterarative statements - Copy.pptx
iterarative statements - Copy.pptx
 
iterarative statements - Copy.pptx
iterarative statements - Copy.pptxiterarative statements - Copy.pptx
iterarative statements - Copy.pptx
 

Recently uploaded

guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
laozhuseo02
 
Output determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CCOutput determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CC
ShahulHameed54211
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 
ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
Himani415946
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptxLiving-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
TristanJasperRamos
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
natyesu
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Sanjeev Rampal
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 

Recently uploaded (16)

guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
Output determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CCOutput determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CC
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 
ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptxLiving-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 

C++ programming Quiz t or f.pptx

  • 2. ASSUMING THAT PROGRAM IS CORRECT Problem: Write a program that will calculate the sum, difference, quotient and product of two integers. The program will have to choose for the criteria. A ------ Addition S------- Subtraction M------ Multiplication D------- Division
  • 3. SAMPLE OUTPUT Enter 1st Number: 6 Enter 2nd number: 2 Enter Operation: M The product of 6 and 2 is: 12
  • 4. TRUE OR FALSE 1.#include<iostream> 2.#include <conio.p> 3.Main (); 4.{ 5.int num1; char opt;
  • 5. TRUE OR FALSE 6. Int num2; 7. int sum,diff,quo,prod: 8. cout<<“Enter 1st number:”; 9. cin>>num1: 10. cout<<(“Enter 2nd number:”),
  • 6. TRUE OR FALSE 11. cin>>num2; 12. if (opt == ‘M’ || opt == ‘m’) 13. cout<<“The product of “”<<num1<< “and” <<num2<<“ is:”<<prod; 14. If (Opt == ‘A’ || opt == ‘a’)
  • 7. TRUE OR FALSE 15. cout<<“The sum of “<<num1” and <<num2<< is: sum 16. if (opt == ‘D’ || opt == “d”) 17. cout<<(“The quotient of <<“num1” and <<num2<< is: >>div;
  • 8. TRUE OR FALSE 18. if (opt == ‘S’ || opt == ‘s’) 19. cout<<(“The difference of <<num1 and <<num2 is: <<diff; 20. ]