1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
BaLLatris [955]
4 years ago
14

Assume that a boolean variable isQuadrilateral has been declared, and that another variable, numberOfSides has been declared and

initialized. Write a statement that assigns the value true if numberOfSides is exactly 4 and false otherwise.
Computers and Technology
1 answer:
egoroff_w [7]4 years ago
4 0

Answer:

# The below code is in python programming language.

if(numberOfSides==4): #check the value number of slide is equal to 4 or not.

   isQuadrilateral=True # assignment statement for if condition

else:

  isQuadrilateral=False # assignment statement for else condition

Explanation:

The above code is in python language in which--

  • The first lines are the "if" condition which checks the value of "numberofslides" variable.
  • The second lines assign true in "isQuadrilateral" variable if "if" condition is true.
  • The third line is for "else" statement that executes when the "if" condition is false.
  • The fourth line is for "else" statement which assigns the value false to the numberofslides variables.
You might be interested in
Which file format should Wilson use for sending these images?
Nuetrik [128]
I can’t see the answer choices but I would like to say it’s JPEG am not sure. Could you at least provide the answer choices? Thanks!
7 0
3 years ago
Read 2 more answers
2.5 code practice I need answers please
Leni [432]

Answer:

import random

a = random.randint(1,10)

b = random.randint(1,10)

answer = a * b

print (str(a) + " X " + str(b) + " = " + str(answer))

Explanation:

Happy to help you mate

7 0
3 years ago
Kerrri uses a database file many time a day. To increase her productivity, she should___.
Dmitriy789 [7]

Answer:

D

Explanation:

A shortcut will make it easier for her to access the database file

4 0
3 years ago
Which musical instrument would have the lowest pitch ?
Oduvanchick [21]

Answer: subcontrabass  tuba, then octocontra bass clarinet, then organ.

Explanation:

8 0
3 years ago
Which of the following statements is not true about report styles?
Lina20 [59]

Answer:

The answer to the following question is the option "C".

Explanation:

In computer science, Report is a document that displays data in a standardized format. We can summarize the report orally but the complete reports are always given in documents. In report styles, we can select controls for formatting sources, select controls for the formatting of citations and it does not control the overall formatting of the report. So the incorrect statement to this question is "Use the Page Setup tab to choose a report style for your document".

3 0
4 years ago
Other questions:
  • when applying styles to a document, which features of the style can be modified in the themes grouping?
    9·2 answers
  • An incorrectly spelled word is indicated by _______. a. a red checkmark beside the word b. the word higlighted in yellow c. a re
    8·2 answers
  • Given the following business scenario, create a Crow's Foot ERD using a specialization hierarchy if appropriate. Granite Sales C
    12·1 answer
  • How many solutions exist for the given equation?
    9·1 answer
  • The software program you need to have to read PDF file, such as the PDF files you download from your My Courses page, is
    9·2 answers
  • Write a program that converts degrees Fahrenheit to Celsius using the following formula. degreesC = 5(degreesF – 32)/9 Prompt th
    6·1 answer
  • Which of these consoles have 64 bit architecture
    13·1 answer
  • Which of the following inputs help robotic vacuum cleaners maneuver around obstacles?
    13·2 answers
  • For the PSoC chip what is the minimum voltage level in volts that can be considered to logic one?​
    15·1 answer
  • What is the correct sequence in which a computer operates​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!