Question

Question 1: Part A Which of the following are legal identifiers for Python. Place a Y for Yes and a N for No by each of the w

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Part A

fence - Y
new house - N
1second - N
make_up - Y
phone# - N
team - Y
_year - N
adding.py - N
28223zipCode - N

Part B

1. 4+6*2 = 16
2. 10/5+8 = 10
3. 12/4+16/8 = 5
4. 17/2 = 8.5
5. 22//5 =4
6. 39%10 =9
7. 19%(2+3) =4
8. 3+4*20/5=19.0
9. 36%(6+2)=4
10. 25-7*3+12/3=8.0
11. 17%3*2-12+15=7

Add a comment
Know the answer?
Add Answer to:
Question 1: Part A Which of the following are legal identifiers for Python. Place a Y...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Part 1: Using Idle Write a Python Script that Does the Following 1. At the top...

    Part 1: Using Idle Write a Python Script that Does the Following 1. At the top of your program, import the math library as in from math import * to make the functions in the math module available. Create a variable and assign into it a constant positive integer number of your choice. The number should be at most 10. 1 Suppose we call this variable x for this writeup document Try something like x = 4 2. Create another...

  • Consider the following Python program: def fun(x, y): return x + y # [2] # [1]...

    Consider the following Python program: def fun(x, y): return x + y # [2] # [1] a = fun(2, 3) b = fun("2", 3) print a, b What does it evaluate to? Replace the last statement print a, b with print a + b and explain the traceback. What's wrong? Now eliminate the line marked [1] and change line [2] to read return x + y. Run the program and explain the traceback. Consider the following definition: def fun(n, m):...

  • Question 1 Which one of the following Button control names is a legal C# identifier? a.*Clear*Button*...

    Question 1 Which one of the following Button control names is a legal C# identifier? a.*Clear*Button* b._DisplayOption5Button c.Exit!Button d.delete Record Button Question 2 To add a control to a form, you find it in the Toolbox and then double-click it. a.True b.False    Question 3 When you write the values true or false in code, they must be written in all lowercase letters. a.True b.False Question 4 Single quotation marks can be used in program code to mark the beginning...

  • Write a Python class called polynomial that represents a polynomial in the following fashion, The initializer...

    Write a Python class called polynomial that represents a polynomial in the following fashion, The initializer of your polynomial class will be designed to take any number of numeric coefficients, The coefficient with the highest power will be the first coefficient. The last coefficient will be the constant value, that is, the value that is associated with . power 0. • Therefore, the number of the coefficients specified will directly indicate the highest power of the polynomial to be represented....

  • You need not run Python programs on a computer in solving the following problems. Place your...

    You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...

  • 1. “You are the best student in the class. You can get into Harvard." Which part...

    1. “You are the best student in the class. You can get into Harvard." Which part of the statement is positive? Which part of the statement is normative? 2. The government has been trying to discourage the use of plastic bags. Give one negative incentive to achieve that. 3. Give one opportunity cost of watching TV rather than studying. 4. Dexter decides to buy a new smartphone and offset the cost by selling his old phone to one of his...

  • #1. Part a. Which of the following bonds is different than the other? (choose one) (-45,...

    #1. Part a. Which of the following bonds is different than the other? (choose one) (-45, 7.5, 7.5, 7.5, 50) (-18, 3, 3, 3, 21) (-6, 1, 1, 1, 7) (-90, 15, 15, 15, 105) Part b. Which of the folliwng cash flow streams represent bonds that are trading at par? (check all that apply) (-100, 5, 5, 105) (-10, 1, 1, 12) (-20, 1, 1, 21) (-50, 2, 2, 50) Part c. Which of the following must be true...

  • Questin 1 (CO 2) Which of the following is not a valid name in python? last_name...

    Questin 1 (CO 2) Which of the following is not a valid name in python? last_name lastName last name lname Question 2 (CO 3) How many times will “Hello World” be displayed after the following code executes? num=2 while num<12:     print("Hello world")     num+=2 2 12 5 4 Question 3 (CO 1) The following code contains an error, what type of error is it and what line number is it? 1 count=1 2 while count<4 3    print("count = ",...

  • This question has two parts. Part 1) The following question scenario covers the next question as...

    This question has two parts. Part 1) The following question scenario covers the next question as well. An economics quiz contains eleven multiple-choice questions. Let x represent the number of questions a student answers correctly. Is x a discrete or continuous random variable? Part 2) An economics quiz contains eleven multiple-choice questions. Let x represent the number of questions a student answers correctly. What are the possible values of x? 9, 8, 15, 0, 3, 12, 1, 5, 13, 2,...

  • Attention!!!!!!! I need python method!!!!!!!!! the part which need to edit is below: i nee...

    attention!!!!!!! I need python method!!!!!!!!! the part which need to edit is below: i need python one!!!!!!!!! the part below is interface for the range search tree which don’t need to modify it. Week 3: Working with a BST TODO: Implement a Binary Search Tree (Class Name: RangesizeTree) Choose one language fromJava or Python. Iin both languages,there is an empty main function in the Range Size Tree file. The main function is not tested, however, it is provided for you...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT