Need the answer ASAP!!!!

Select the correct answer.

What type would the object X be in the following statement:

If (x) {...}

A.number

B.Boolean

C.string

D.date

Answers

Answer 1

Answer:

its Boolean

Explanation:

trust me


Related Questions

Implement the function printTwoLargest that inputs an arbitrary number of positive numbers from the user. The input of numbers stops when the first negative or zero value is entered by the user. The function then prints the two largest values entered by the user. If fewer than two distinct positive numbers are entered a message to that effect is printed instead of printing any numbers. Hint: Duplicates will cause problems. Try to make sure that you find a way to ignore them.

Answers

Answer:

The function in Python is as follows:

def printTwoLargest():

   chk = 0

   list1 = []

   num = int(input("Enter: "))

   while num > 0:

       for i in list1:

           if i == num:

               chk+=1

               break;

       if chk == 0:

           list1.append(num)

       chk = 0

       num = int(input("Enter: "))

   list1.sort()

   if len(list1) >= 2:

       print("Largest:", list1[-1])

       print("Second:", list1[-2])

   else:

       print("Length of list must be at least 2")

Explanation:

This defines the function

def printTwoLargest():

This initializes a check variable to 0

   chk = 0

This initializes an empty list

   list1 = []

This prompts the user for input

   num = int(input("Enter: "))

The following loop is repeated until input is 0 or negative

   while num > 0:

The following for loop checks for duplicate

       for i in list1:

           if i == num: If duplicate is found

               chk+=1 The check variable is set to 1

               break; And the for loop is exited

The input is appended to the list if the check variable is 0 (i.e. no duplicate)

       if chk == 0:

           list1.append(num)

This sets the check variable back to 0, for another input

       chk = 0

This prompts the user for another input

       num = int(input("Enter: "))

This sorts the list

   list1.sort()

This prints the two largest if valid user input is 2 or more

   if len(list1) >= 2:

       print("Largest:", list1[-1])

       print("Second:", list1[-2])

if otherwise, this prints that the length must be at least 2

   else:

       print("Length of list must be at least 2")

HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP

Answers

Answer:

I should be C! :D

Answer:

B

Explanation:

Other Questions
TIMED TEST PLEASE HELP!!!!! Explain how you got the answer as well! Help please I need it thanks GUYSSS PLS HELPPPP ITS A MAJOR GRADE I NEED 5 SENTENCES THANKSSS,ANYTHING CAN HELP NO FILES OR LINKSSS!!!!!!!!! The campaign biographies below are for two candidates running for seventh-grade class president.Jacques Sportif is well known to students of Juan Ponce de Leon Middle School as a standout athlete. Although he moved to Centerville less than a year ago, he has already been named captain of the seventh-grade football and baseball teams. But there is more to Jacques than athletics! Jacques is a member of Ponce de Leon's Chess Club and recently placed third in a school-wide tournament. Jacques is surely one of the most popular students at Ponce de Leon. He will make a great seventh-grade class president. Vote for Jacques on Friday!Abigail Addams has been active in student government since entering Juan Ponce de Leon Middle School at the beginning of sixth grade. She was elected to the sixth-grade Student Council at the beginning of last year and was chosen by the council to fill the vice president's spot when it became vacant halfway through the year. Abigail also served as chairperson of the committee that organized last year's very successful field day. She is liked and respected by all of her teachers and classmates. Abigail is clearly the best candidate for seventh-grade class president. Vote for Abigail on Friday!Based on the information in the bios, why would Abigail most likely be considered more qualified than Jacques to serve as class president? A. Jacques needs to improve his chess skills. B. Abigail has more experience in student government. C. Abigail has been at the school for more than a year. D. Jacques is too busy playing two sports. Does anyone know how to do this plz help if u can. What are the coordinates of the vertices of a rectangle with an perimeter of 12 units and an area of 5 sq. units. Please help with the following question. Personal FinancialLiteracy PLEASE HELP ME QUICK DUDES!! Implement the function printTwoLargest that inputs an arbitrary number of positive numbers from the user. The input of numbers stops when the first negative or zero value is entered by the user. The function then prints the two largest values entered by the user. If fewer than two distinct positive numbers are entered a message to that effect is printed instead of printing any numbers. Hint: Duplicates will cause problems. Try to make sure that you find a way to ignore them. i need help with this pleas tell me the answer don't send me a link to download something Co...1.2 m2.5 m3.5 mThe front of a house needs to be painted black. The garage door is 1.5 m high and 2 m wide.A) How many square meters of black paint will be needed to paint the house not including thegarage door?Show your work What is the volume of a triangular prism whose base has an area of 38.2mm and heigh of the prism meausers 14mm? When borrowing money from the bank, the amount of money originally borrowed is called the pls help no links pls Need answer ASAPKeiko and Eric each randomly surveyed people with cell phones. They recorded peoples ages (a years) and how many texts they send per day on average (t texts). For their respective data, they each drew a line of best-fit and determined its equation. They then compared equations and made inferences based only on the equations they calculated. a marrow plants 0.5 m long. every week it grows by 20%. a find the value of the common ratio. b calculate how long the plant is after 12 weeks. e comment on the predicted length of the marrow after one year. Which document states that our unalienable rights include life liberty and the pursuit of happiness Which Chinese thinker based his teachings on the idea that people should live in harmony with nature?A) ConfuciusB) Zheng HeC) Chiang Kai-shekD) Laozi MIRCOLES 19 FORMACIN CVICA Y TICADESAFOS DE NUESTRA COMUNIDADLee y contesta con la informacin de tot libero pg. 136-1381-S observamos con curiosidad nuestro entorno, podremos identificar algunesproblemas, como los relacionados con la.clinediolos servicios de.vivienda a laEstas y otras dificultades impactan avestra familia yy requieren de lade todospara enfrentarlas.2-un problema se convierte en cmwanda tenemos el nimo deresolverlo Entonces, lo identificamos, iragmamosposibles,proponemos, vos organizamos y participarros activamente paraEn algo postivo para todos.3-Luc en tu libro bs casos que se presentan en las imgones y contesta.Alcudes el problema?B) Cmo puede solucionariAlles drown?) Cmo tese selachi'?4-Cuando identificanos problemos en ladonde viviros esnecesariopor qu ocurren y cmo los podemos resolver, puestales dificultades son verestro La nesesito en 5 mini