What operator has the lowest precedence

Assignment Help Python Programming
Reference no: EM132360955

Question 1 : Which language does a computer know?

A. Java

B. C++

C. high-level

D. machine language

Question 2 : Misuse of a language's grammar rules is called a(n) ____ error.

A. illegal

B. logical

C. syntax

D. semantic

Question 3 : In the following statement, which operation is done third?answer = a + b + c * d / e - f

A.  a+b

B.  b+c

C.  e-f

D.  d/e

Question 4 : An AND decision can be constructed using a ____ decision.

A. nested

B. stacked

C. combined

D. dual

Question 5 : A variable declaration is a statement that provides a data type and identifier for a variable

True

False

Question 6 : An algorithm is the sequence of steps necessary to solve a problem.

True

False

Question 7 : The ____ variable is initialized before entering the loop.

A. loop ending

B. ending control

C. interrupt control

D. loop control

Question 8 : What will be the value stored in the variable total when the following code completes executing:

count = num
total = num = 0

For count = 1 to 10

total = total + count

endfor

A. 10

B. 55

C. 45

D. 0

Question 9 : All of the variables in an array have the same name and data type but are differentiated with special numbers called subscripts.

True

False

Question 10 : An error commonly made by beginning programmers is to forget that array subscripts start with the integer 1.

True

False

Question 11 : The piece of hardware that performs processing tasks is the central data unit.

True

False

Question 12 : The two major components of any computer system are its hardware and its software.

True

False

Question 13 : Many programming languages allow you to use ____ to force an expression to evaluate first.

A. a pound sign

B. an asterisk

C. parentheses

D. quotation marks

Question 14 : A loop control variable's value is tested to control the loop's execution.

True

False

Question 15 : When you combine AND and OR operators within the same statement, the AND operators take precedence.

True

False

Question 16 : What is the answer for the following operation: (3+5) * 10 - 4/8

A. 79.5

B. 9.5

C. 47.7

D. 76

Question 17 : What operator has the lowest precedence?
A.  +

B.  /

C.  *

D.  =

Question 18 : The selection structure is also called an if-then structure.

True

False

Question 19 : The body of a loop can contain only a limited number of statements.

True

False

Question 20 : ____ a data item means you override incorrect data by setting the variable to a specific value.

A. Forcing

B. Incrementing

C. Initializing

D. Terminating

Question 21 : Program comments are nonexecuting statements.

True

False

Question 22 : To use computer programs, you must first load them into memory.

True

False

Question 23 : A noun would be a good choice for a variable or constant identifier.

True

False

Question 24 : What would be the output of the following expression if the temperature outside is 30 degrees?

If temperature >=35 and temperature <= 55 then

output "it is cold outside"

else output "The weather is nice today"

A. The weather is nice today

B. The temperature is 45

C. it is cold outside

D. none of the above

Question 25 : When using the OR operator, an action is taken when at least one of the comparisons evaluates to true.

True

False

Reference no: EM132360955

Questions Cloud

Essential component of the original bitcoin white paper : Besides the Merkle Tree - a data structure, the other essential component of the Original Bitcoin White Paper, is the cryptographic aspect.
Write a code for a simple cellular automata game : Write a code for a simple cellular automata game, called Conway's Game of Life. In this game, you have a grid where pixels can either be on or off.
Evaluate the four risk-mitigation options and strategies : Evaluate the four risk-mitigation options and strategies. Give your opinion as to what circumstances would warrant each strategy.
What are the interagency workgroups : What are the "interagency workgroups" to which the speaker refers, and what is their role? Where can one go to find a complete overview of each Healthy People.
What operator has the lowest precedence : All of the variables in an array have the same name and data type but are differentiated with special numbers called subscripts.
Develop a company sustainability policy : Identify one internal information source and one external information source that can be used to plan and develop a company's sustainability policy.
Department of homeland security cyber storm exercise : What is the Department of Homeland Security's Cyber Storm exercise? What are some of the strengths and weaknesses of exercise?
Address the issues with the it product : What would your approach be to address the issues with the IT Product? What do you tell your customers?
What is the potential or realized impact of legislation : In your opinion, what is the potential or realized impact of this legislation on the community? Do you agree or disagree with the legislation?

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd