SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
a. Assuming that x is 1 , show the result of the following Boolean expressions. (true) &&
(3>4)1(x>0)&&(x>0)(x>0)(x<0)(x=0)(x=0)(x>=0)(x<0) b. Write a Boolean expression that
evaluates to true if age is greater than 13 and less than 18. c. Write a Boolean expression for
x5<4.5 (Hint: x5<4.5 is equivalent to (x5)<4.5 and (x5)>4.5) d. Rewrite the following if
statements using the conditional operator. if ages>=16)ticketPrice=20; else ticketPrice =10; e.
Explain what the following conditional expression does. (int)(Math.random()*2)=0?1:1;

Weitere ähnliche Inhalte

Mehr von amazefootwear

A. The Levinthal paradox revealed that it would be impossible for pro.pdf
 A. The Levinthal paradox revealed that it would be impossible for pro.pdf A. The Levinthal paradox revealed that it would be impossible for pro.pdf
A. The Levinthal paradox revealed that it would be impossible for pro.pdfamazefootwear
 
A. To calculate and display the number of records in Random Access Fi.pdf
 A. To calculate and display the number of records in Random Access Fi.pdf A. To calculate and display the number of records in Random Access Fi.pdf
A. To calculate and display the number of records in Random Access Fi.pdfamazefootwear
 
A. The map below shows the boundaries between the major plates. Write.pdf
 A. The map below shows the boundaries between the major plates. Write.pdf A. The map below shows the boundaries between the major plates. Write.pdf
A. The map below shows the boundaries between the major plates. Write.pdfamazefootwear
 
a. The function call for a function named dog that has no parame.pdf
 a. The  function call for a function named  dog that has  no parame.pdf a. The  function call for a function named  dog that has  no parame.pdf
a. The function call for a function named dog that has no parame.pdfamazefootwear
 
a. Simple Columnar b. Stratified Cuboidal c. Pseudostratified d. Tran.pdf
 a. Simple Columnar b. Stratified Cuboidal c. Pseudostratified d. Tran.pdf a. Simple Columnar b. Stratified Cuboidal c. Pseudostratified d. Tran.pdf
a. Simple Columnar b. Stratified Cuboidal c. Pseudostratified d. Tran.pdfamazefootwear
 
A. Mantenga el tama�o del equipo peque�o. B. Financie al .pdf
 A. Mantenga el tama�o del equipo peque�o. B. Financie al .pdf A. Mantenga el tama�o del equipo peque�o. B. Financie al .pdf
A. Mantenga el tama�o del equipo peque�o. B. Financie al .pdfamazefootwear
 
a. Oligodendrocytes Produces myelin around a singular b. Astrocytes.pdf
 a. Oligodendrocytes Produces myelin around a singular b. Astrocytes.pdf a. Oligodendrocytes Produces myelin around a singular b. Astrocytes.pdf
a. Oligodendrocytes Produces myelin around a singular b. Astrocytes.pdfamazefootwear
 
a. Ellie is 15 and claimed as a dependent by her parents. She has $1,.pdf
 a. Ellie is 15 and claimed as a dependent by her parents. She has $1,.pdf a. Ellie is 15 and claimed as a dependent by her parents. She has $1,.pdf
a. Ellie is 15 and claimed as a dependent by her parents. She has $1,.pdfamazefootwear
 
A. Discuss which corporate diversification strategy (reference sectio.pdf
 A. Discuss which corporate diversification strategy (reference sectio.pdf A. Discuss which corporate diversification strategy (reference sectio.pdf
A. Discuss which corporate diversification strategy (reference sectio.pdfamazefootwear
 
A. Definici�n clara del problema que se est� estudiando. B..pdf
 A. Definici�n clara del problema que se est� estudiando. B..pdf A. Definici�n clara del problema que se est� estudiando. B..pdf
A. Definici�n clara del problema que se est� estudiando. B..pdfamazefootwear
 

Mehr von amazefootwear (10)

A. The Levinthal paradox revealed that it would be impossible for pro.pdf
 A. The Levinthal paradox revealed that it would be impossible for pro.pdf A. The Levinthal paradox revealed that it would be impossible for pro.pdf
A. The Levinthal paradox revealed that it would be impossible for pro.pdf
 
A. To calculate and display the number of records in Random Access Fi.pdf
 A. To calculate and display the number of records in Random Access Fi.pdf A. To calculate and display the number of records in Random Access Fi.pdf
A. To calculate and display the number of records in Random Access Fi.pdf
 
A. The map below shows the boundaries between the major plates. Write.pdf
 A. The map below shows the boundaries between the major plates. Write.pdf A. The map below shows the boundaries between the major plates. Write.pdf
A. The map below shows the boundaries between the major plates. Write.pdf
 
a. The function call for a function named dog that has no parame.pdf
 a. The  function call for a function named  dog that has  no parame.pdf a. The  function call for a function named  dog that has  no parame.pdf
a. The function call for a function named dog that has no parame.pdf
 
a. Simple Columnar b. Stratified Cuboidal c. Pseudostratified d. Tran.pdf
 a. Simple Columnar b. Stratified Cuboidal c. Pseudostratified d. Tran.pdf a. Simple Columnar b. Stratified Cuboidal c. Pseudostratified d. Tran.pdf
a. Simple Columnar b. Stratified Cuboidal c. Pseudostratified d. Tran.pdf
 
A. Mantenga el tama�o del equipo peque�o. B. Financie al .pdf
 A. Mantenga el tama�o del equipo peque�o. B. Financie al .pdf A. Mantenga el tama�o del equipo peque�o. B. Financie al .pdf
A. Mantenga el tama�o del equipo peque�o. B. Financie al .pdf
 
a. Oligodendrocytes Produces myelin around a singular b. Astrocytes.pdf
 a. Oligodendrocytes Produces myelin around a singular b. Astrocytes.pdf a. Oligodendrocytes Produces myelin around a singular b. Astrocytes.pdf
a. Oligodendrocytes Produces myelin around a singular b. Astrocytes.pdf
 
a. Ellie is 15 and claimed as a dependent by her parents. She has $1,.pdf
 a. Ellie is 15 and claimed as a dependent by her parents. She has $1,.pdf a. Ellie is 15 and claimed as a dependent by her parents. She has $1,.pdf
a. Ellie is 15 and claimed as a dependent by her parents. She has $1,.pdf
 
A. Discuss which corporate diversification strategy (reference sectio.pdf
 A. Discuss which corporate diversification strategy (reference sectio.pdf A. Discuss which corporate diversification strategy (reference sectio.pdf
A. Discuss which corporate diversification strategy (reference sectio.pdf
 
A. Definici�n clara del problema que se est� estudiando. B..pdf
 A. Definici�n clara del problema que se est� estudiando. B..pdf A. Definici�n clara del problema que se est� estudiando. B..pdf
A. Definici�n clara del problema que se est� estudiando. B..pdf
 

Kürzlich hochgeladen

Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
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
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
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
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
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
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 

Kürzlich hochgeladen (20)

Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
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
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
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
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
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
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
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...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 

a. Assuming that x is 1 , show the result of the following Boolean ex.pdf

  • 1. a. Assuming that x is 1 , show the result of the following Boolean expressions. (true) && (3>4)1(x>0)&&(x>0)(x>0)(x<0)(x=0)(x=0)(x>=0)(x<0) b. Write a Boolean expression that evaluates to true if age is greater than 13 and less than 18. c. Write a Boolean expression for x5<4.5 (Hint: x5<4.5 is equivalent to (x5)<4.5 and (x5)>4.5) d. Rewrite the following if statements using the conditional operator. if ages>=16)ticketPrice=20; else ticketPrice =10; e. Explain what the following conditional expression does. (int)(Math.random()*2)=0?1:1;