SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
1. (2 points) The data type char and the data type are often interchageable in C + + . a. double b.
float c. int d. string 2. (2 points) What will happen if a char is cout' d as an int? a. the character
will be displayed b. the ASCII value of the character will be displayed c. it will not compile d. it
will produce a run-time error 3. (2 points) What is the ASCII value of the character ' 1 '? 4. (2
points) What is the ASCII value of the character ' c '? 5. (2 points) Write a cout statement to
display the ASCII value of the character stored in a char variable called ch. Assume that ch has
been properly declared and contains a value. 6. (2 points) Explain what tolower() does to a
character. The answer should include the argument(s) that are passed to tolower0 (if any) and
what it returns. should contain the value 4. Assume that ch and int Val have been properly
declared. 8. (2 points) Write a switch statement to print out a string depending on the value of a
char variable called ch. If - ch is 'a print "excellent" - ch is 'b' print "good" - ch is 'c" print "ok" 0
if ch is anything else, print "invalid"

Weitere ähnliche Inhalte

Ähnlich wie 1- (2 points) The data type char and the data type are often interchag.pdf

Cse115 lecture14strings part01
Cse115 lecture14strings part01Cse115 lecture14strings part01
Cse115 lecture14strings part01Md. Ashikur Rahman
 
Chapter 4 (Part II) - Array and Strings.pdf
Chapter 4 (Part II) - Array and Strings.pdfChapter 4 (Part II) - Array and Strings.pdf
Chapter 4 (Part II) - Array and Strings.pdfKirubelWondwoson1
 
Java Object Orientend Programming 1.pptx
Java Object Orientend Programming 1.pptxJava Object Orientend Programming 1.pptx
Java Object Orientend Programming 1.pptxOmarBinkasimSefat
 
COM1407: Type Casting, Command Line Arguments and Defining Constants
COM1407: Type Casting, Command Line Arguments and Defining Constants COM1407: Type Casting, Command Line Arguments and Defining Constants
COM1407: Type Casting, Command Line Arguments and Defining Constants Hemantha Kulathilake
 
C++ Programming Homework Help
C++ Programming Homework HelpC++ Programming Homework Help
C++ Programming Homework HelpC++ Homework Help
 
Lesson in Strings for C Programming Lessons
Lesson in Strings for C Programming LessonsLesson in Strings for C Programming Lessons
Lesson in Strings for C Programming LessonsJamesChristianGadian
 
Chapter 4 Mathematical Functions, Characters, and Strings.pptx
Chapter 4 Mathematical Functions, Characters, and Strings.pptxChapter 4 Mathematical Functions, Characters, and Strings.pptx
Chapter 4 Mathematical Functions, Characters, and Strings.pptxssusere3b1a2
 
object oriented programming in java lecture
object oriented programming in java lectureobject oriented programming in java lecture
object oriented programming in java lectureMSohaib24
 
Bringing nullability into existing code - dammit is not the answer.pptx
Bringing nullability into existing code - dammit is not the answer.pptxBringing nullability into existing code - dammit is not the answer.pptx
Bringing nullability into existing code - dammit is not the answer.pptxMaarten Balliauw
 
Acm aleppo cpc training second session
Acm aleppo cpc training second sessionAcm aleppo cpc training second session
Acm aleppo cpc training second sessionAhmad Bashar Eter
 
Using the Ceasar Cipher encryption algorithm, you take each characte.pdf
Using the Ceasar Cipher encryption algorithm, you take each characte.pdfUsing the Ceasar Cipher encryption algorithm, you take each characte.pdf
Using the Ceasar Cipher encryption algorithm, you take each characte.pdfamirthagiftsmadurai
 
C cheat sheet for varsity (extreme edition)
C cheat sheet for varsity (extreme edition)C cheat sheet for varsity (extreme edition)
C cheat sheet for varsity (extreme edition)Saifur Rahman
 
434090527-C-Cheat-Sheet. pdf C# program
434090527-C-Cheat-Sheet. pdf  C# program434090527-C-Cheat-Sheet. pdf  C# program
434090527-C-Cheat-Sheet. pdf C# programMAHESHV559910
 

Ähnlich wie 1- (2 points) The data type char and the data type are often interchag.pdf (20)

Cse115 lecture14strings part01
Cse115 lecture14strings part01Cse115 lecture14strings part01
Cse115 lecture14strings part01
 
Chapter 4 (Part II) - Array and Strings.pdf
Chapter 4 (Part II) - Array and Strings.pdfChapter 4 (Part II) - Array and Strings.pdf
Chapter 4 (Part II) - Array and Strings.pdf
 
2nd Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
2nd  Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...2nd  Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
2nd Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
 
Cpprm
CpprmCpprm
Cpprm
 
Java Object Orientend Programming 1.pptx
Java Object Orientend Programming 1.pptxJava Object Orientend Programming 1.pptx
Java Object Orientend Programming 1.pptx
 
COM1407: Type Casting, Command Line Arguments and Defining Constants
COM1407: Type Casting, Command Line Arguments and Defining Constants COM1407: Type Casting, Command Line Arguments and Defining Constants
COM1407: Type Casting, Command Line Arguments and Defining Constants
 
C++ Programming Homework Help
C++ Programming Homework HelpC++ Programming Homework Help
C++ Programming Homework Help
 
Lesson in Strings for C Programming Lessons
Lesson in Strings for C Programming LessonsLesson in Strings for C Programming Lessons
Lesson in Strings for C Programming Lessons
 
Strings IN C
Strings IN CStrings IN C
Strings IN C
 
Chapter 4 Mathematical Functions, Characters, and Strings.pptx
Chapter 4 Mathematical Functions, Characters, and Strings.pptxChapter 4 Mathematical Functions, Characters, and Strings.pptx
Chapter 4 Mathematical Functions, Characters, and Strings.pptx
 
object oriented programming in java lecture
object oriented programming in java lectureobject oriented programming in java lecture
object oriented programming in java lecture
 
C string
C stringC string
C string
 
Bringing nullability into existing code - dammit is not the answer.pptx
Bringing nullability into existing code - dammit is not the answer.pptxBringing nullability into existing code - dammit is not the answer.pptx
Bringing nullability into existing code - dammit is not the answer.pptx
 
Nn
NnNn
Nn
 
Acm aleppo cpc training second session
Acm aleppo cpc training second sessionAcm aleppo cpc training second session
Acm aleppo cpc training second session
 
Revision1 C programming
Revision1 C programmingRevision1 C programming
Revision1 C programming
 
python-ch2.pptx
python-ch2.pptxpython-ch2.pptx
python-ch2.pptx
 
Using the Ceasar Cipher encryption algorithm, you take each characte.pdf
Using the Ceasar Cipher encryption algorithm, you take each characte.pdfUsing the Ceasar Cipher encryption algorithm, you take each characte.pdf
Using the Ceasar Cipher encryption algorithm, you take each characte.pdf
 
C cheat sheet for varsity (extreme edition)
C cheat sheet for varsity (extreme edition)C cheat sheet for varsity (extreme edition)
C cheat sheet for varsity (extreme edition)
 
434090527-C-Cheat-Sheet. pdf C# program
434090527-C-Cheat-Sheet. pdf  C# program434090527-C-Cheat-Sheet. pdf  C# program
434090527-C-Cheat-Sheet. pdf C# program
 

Mehr von 101lightings

1- An SA has no access to sensitive information by default- True False.pdf
1- An SA has no access to sensitive information by default- True False.pdf1- An SA has no access to sensitive information by default- True False.pdf
1- An SA has no access to sensitive information by default- True False.pdf101lightings
 
1- An example of an axial bone is the a- Scapula b- Ilium c- Femur d-.pdf
1- An example of an axial bone is the a- Scapula b- Ilium c- Femur d-.pdf1- An example of an axial bone is the a- Scapula b- Ilium c- Femur d-.pdf
1- An example of an axial bone is the a- Scapula b- Ilium c- Femur d-.pdf101lightings
 
1- Albert Gaytor and his wife Allison are married and file a joint ret.pdf
1- Albert Gaytor and his wife Allison are married and file a joint ret.pdf1- Albert Gaytor and his wife Allison are married and file a joint ret.pdf
1- Albert Gaytor and his wife Allison are married and file a joint ret.pdf101lightings
 
1- A static budget is one developed for a single level of activity2- T.pdf
1- A static budget is one developed for a single level of activity2- T.pdf1- A static budget is one developed for a single level of activity2- T.pdf
1- A static budget is one developed for a single level of activity2- T.pdf101lightings
 
1- A user working remotely has a secure VPN access to an Operating Sys.pdf
1- A user working remotely has a secure VPN access to an Operating Sys.pdf1- A user working remotely has a secure VPN access to an Operating Sys.pdf
1- A user working remotely has a secure VPN access to an Operating Sys.pdf101lightings
 
1- A patient exhibits abnormally low levels of circulating IgE antibod.pdf
1- A patient exhibits abnormally low levels of circulating IgE antibod.pdf1- A patient exhibits abnormally low levels of circulating IgE antibod.pdf
1- A patient exhibits abnormally low levels of circulating IgE antibod.pdf101lightings
 
1) What is Linkage disequilibrium as applied to HLA antigens- 2) What.pdf
1) What is Linkage disequilibrium as applied to HLA antigens- 2) What.pdf1) What is Linkage disequilibrium as applied to HLA antigens- 2) What.pdf
1) What is Linkage disequilibrium as applied to HLA antigens- 2) What.pdf101lightings
 
1- --Sea otters are native to the western cosst of North America- Betw.pdf
1- --Sea otters are native to the western cosst of North America- Betw.pdf1- --Sea otters are native to the western cosst of North America- Betw.pdf
1- --Sea otters are native to the western cosst of North America- Betw.pdf101lightings
 
1- (6nts) Calculate the NIPA measures in AC from the alphabetized Nati.pdf
1- (6nts) Calculate the NIPA measures in AC from the alphabetized Nati.pdf1- (6nts) Calculate the NIPA measures in AC from the alphabetized Nati.pdf
1- (6nts) Calculate the NIPA measures in AC from the alphabetized Nati.pdf101lightings
 
1- List and describe briefly the Constitutional amendments included i.pdf
1-  List and describe briefly the Constitutional amendments included i.pdf1-  List and describe briefly the Constitutional amendments included i.pdf
1- List and describe briefly the Constitutional amendments included i.pdf101lightings
 
1- Distinguish between diversity and inclusion- 2- Using Google as a.pdf
1-  Distinguish between diversity and inclusion- 2-  Using Google as a.pdf1-  Distinguish between diversity and inclusion- 2-  Using Google as a.pdf
1- Distinguish between diversity and inclusion- 2- Using Google as a.pdf101lightings
 
1- Select TWO of the three most densely populated major regions of t (1).pdf
1-   Select TWO of the three most densely populated major regions of t (1).pdf1-   Select TWO of the three most densely populated major regions of t (1).pdf
1- Select TWO of the three most densely populated major regions of t (1).pdf101lightings
 
1)is the external conditions- including natural surroundings- people-.pdf
1)is the external conditions- including natural surroundings- people-.pdf1)is the external conditions- including natural surroundings- people-.pdf
1)is the external conditions- including natural surroundings- people-.pdf101lightings
 
1)Certain amino acids are essential nutrients for some microorganisms.pdf
1)Certain amino acids are essential nutrients for some microorganisms.pdf1)Certain amino acids are essential nutrients for some microorganisms.pdf
1)Certain amino acids are essential nutrients for some microorganisms.pdf101lightings
 
1+2+3++n-(n+12).pdf
1+2+3++n-(n+12).pdf1+2+3++n-(n+12).pdf
1+2+3++n-(n+12).pdf101lightings
 
1) What are the advantages and disadvantages of using HPC therapy-2) C.pdf
1) What are the advantages and disadvantages of using HPC therapy-2) C.pdf1) What are the advantages and disadvantages of using HPC therapy-2) C.pdf
1) What are the advantages and disadvantages of using HPC therapy-2) C.pdf101lightings
 
1- Olivia and Jake walk into CVS looking for chips and candy-.pdf
1-          Olivia and Jake walk into CVS looking for chips and candy-.pdf1-          Olivia and Jake walk into CVS looking for chips and candy-.pdf
1- Olivia and Jake walk into CVS looking for chips and candy-.pdf101lightings
 
1) Discuss why the phenotype-driven developmental genetics utilizing s.pdf
1) Discuss why the phenotype-driven developmental genetics utilizing s.pdf1) Discuss why the phenotype-driven developmental genetics utilizing s.pdf
1) Discuss why the phenotype-driven developmental genetics utilizing s.pdf101lightings
 
1) Which of the following violates the Foreign Corrupt Practices Act (.pdf
1) Which of the following violates the Foreign Corrupt Practices Act (.pdf1) Which of the following violates the Foreign Corrupt Practices Act (.pdf
1) Which of the following violates the Foreign Corrupt Practices Act (.pdf101lightings
 
1) What are some of the historical figures- technologies- and standard.pdf
1) What are some of the historical figures- technologies- and standard.pdf1) What are some of the historical figures- technologies- and standard.pdf
1) What are some of the historical figures- technologies- and standard.pdf101lightings
 

Mehr von 101lightings (20)

1- An SA has no access to sensitive information by default- True False.pdf
1- An SA has no access to sensitive information by default- True False.pdf1- An SA has no access to sensitive information by default- True False.pdf
1- An SA has no access to sensitive information by default- True False.pdf
 
1- An example of an axial bone is the a- Scapula b- Ilium c- Femur d-.pdf
1- An example of an axial bone is the a- Scapula b- Ilium c- Femur d-.pdf1- An example of an axial bone is the a- Scapula b- Ilium c- Femur d-.pdf
1- An example of an axial bone is the a- Scapula b- Ilium c- Femur d-.pdf
 
1- Albert Gaytor and his wife Allison are married and file a joint ret.pdf
1- Albert Gaytor and his wife Allison are married and file a joint ret.pdf1- Albert Gaytor and his wife Allison are married and file a joint ret.pdf
1- Albert Gaytor and his wife Allison are married and file a joint ret.pdf
 
1- A static budget is one developed for a single level of activity2- T.pdf
1- A static budget is one developed for a single level of activity2- T.pdf1- A static budget is one developed for a single level of activity2- T.pdf
1- A static budget is one developed for a single level of activity2- T.pdf
 
1- A user working remotely has a secure VPN access to an Operating Sys.pdf
1- A user working remotely has a secure VPN access to an Operating Sys.pdf1- A user working remotely has a secure VPN access to an Operating Sys.pdf
1- A user working remotely has a secure VPN access to an Operating Sys.pdf
 
1- A patient exhibits abnormally low levels of circulating IgE antibod.pdf
1- A patient exhibits abnormally low levels of circulating IgE antibod.pdf1- A patient exhibits abnormally low levels of circulating IgE antibod.pdf
1- A patient exhibits abnormally low levels of circulating IgE antibod.pdf
 
1) What is Linkage disequilibrium as applied to HLA antigens- 2) What.pdf
1) What is Linkage disequilibrium as applied to HLA antigens- 2) What.pdf1) What is Linkage disequilibrium as applied to HLA antigens- 2) What.pdf
1) What is Linkage disequilibrium as applied to HLA antigens- 2) What.pdf
 
1- --Sea otters are native to the western cosst of North America- Betw.pdf
1- --Sea otters are native to the western cosst of North America- Betw.pdf1- --Sea otters are native to the western cosst of North America- Betw.pdf
1- --Sea otters are native to the western cosst of North America- Betw.pdf
 
1- (6nts) Calculate the NIPA measures in AC from the alphabetized Nati.pdf
1- (6nts) Calculate the NIPA measures in AC from the alphabetized Nati.pdf1- (6nts) Calculate the NIPA measures in AC from the alphabetized Nati.pdf
1- (6nts) Calculate the NIPA measures in AC from the alphabetized Nati.pdf
 
1- List and describe briefly the Constitutional amendments included i.pdf
1-  List and describe briefly the Constitutional amendments included i.pdf1-  List and describe briefly the Constitutional amendments included i.pdf
1- List and describe briefly the Constitutional amendments included i.pdf
 
1- Distinguish between diversity and inclusion- 2- Using Google as a.pdf
1-  Distinguish between diversity and inclusion- 2-  Using Google as a.pdf1-  Distinguish between diversity and inclusion- 2-  Using Google as a.pdf
1- Distinguish between diversity and inclusion- 2- Using Google as a.pdf
 
1- Select TWO of the three most densely populated major regions of t (1).pdf
1-   Select TWO of the three most densely populated major regions of t (1).pdf1-   Select TWO of the three most densely populated major regions of t (1).pdf
1- Select TWO of the three most densely populated major regions of t (1).pdf
 
1)is the external conditions- including natural surroundings- people-.pdf
1)is the external conditions- including natural surroundings- people-.pdf1)is the external conditions- including natural surroundings- people-.pdf
1)is the external conditions- including natural surroundings- people-.pdf
 
1)Certain amino acids are essential nutrients for some microorganisms.pdf
1)Certain amino acids are essential nutrients for some microorganisms.pdf1)Certain amino acids are essential nutrients for some microorganisms.pdf
1)Certain amino acids are essential nutrients for some microorganisms.pdf
 
1+2+3++n-(n+12).pdf
1+2+3++n-(n+12).pdf1+2+3++n-(n+12).pdf
1+2+3++n-(n+12).pdf
 
1) What are the advantages and disadvantages of using HPC therapy-2) C.pdf
1) What are the advantages and disadvantages of using HPC therapy-2) C.pdf1) What are the advantages and disadvantages of using HPC therapy-2) C.pdf
1) What are the advantages and disadvantages of using HPC therapy-2) C.pdf
 
1- Olivia and Jake walk into CVS looking for chips and candy-.pdf
1-          Olivia and Jake walk into CVS looking for chips and candy-.pdf1-          Olivia and Jake walk into CVS looking for chips and candy-.pdf
1- Olivia and Jake walk into CVS looking for chips and candy-.pdf
 
1) Discuss why the phenotype-driven developmental genetics utilizing s.pdf
1) Discuss why the phenotype-driven developmental genetics utilizing s.pdf1) Discuss why the phenotype-driven developmental genetics utilizing s.pdf
1) Discuss why the phenotype-driven developmental genetics utilizing s.pdf
 
1) Which of the following violates the Foreign Corrupt Practices Act (.pdf
1) Which of the following violates the Foreign Corrupt Practices Act (.pdf1) Which of the following violates the Foreign Corrupt Practices Act (.pdf
1) Which of the following violates the Foreign Corrupt Practices Act (.pdf
 
1) What are some of the historical figures- technologies- and standard.pdf
1) What are some of the historical figures- technologies- and standard.pdf1) What are some of the historical figures- technologies- and standard.pdf
1) What are some of the historical figures- technologies- and standard.pdf
 

Kürzlich hochgeladen

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 

Kürzlich hochgeladen (20)

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 

1- (2 points) The data type char and the data type are often interchag.pdf

  • 1. 1. (2 points) The data type char and the data type are often interchageable in C + + . a. double b. float c. int d. string 2. (2 points) What will happen if a char is cout' d as an int? a. the character will be displayed b. the ASCII value of the character will be displayed c. it will not compile d. it will produce a run-time error 3. (2 points) What is the ASCII value of the character ' 1 '? 4. (2 points) What is the ASCII value of the character ' c '? 5. (2 points) Write a cout statement to display the ASCII value of the character stored in a char variable called ch. Assume that ch has been properly declared and contains a value. 6. (2 points) Explain what tolower() does to a character. The answer should include the argument(s) that are passed to tolower0 (if any) and what it returns. should contain the value 4. Assume that ch and int Val have been properly declared. 8. (2 points) Write a switch statement to print out a string depending on the value of a char variable called ch. If - ch is 'a print "excellent" - ch is 'b' print "good" - ch is 'c" print "ok" 0 if ch is anything else, print "invalid"