SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
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;

Más contenido relacionado

Más de 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
 

Más de 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
 

Último

Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 

Último (20)

Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 

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;