What is computational error

Assignment Help Python Programming
Reference no: EM131890317

Questions -

Q1. What is 5-norm of [[4,5,6],[6,7,8],[7,8,9]]?

23

26.39

25

Q2. What is the second derivative for sin(x)cos(x)?

-cos(2x)

-2sin(2x)

-sin(x)cos(x)

-2sin(x)cos(x)

Q3. Which on is wrong in python?

x = [1:2]

x = [1,2]

x = {1, 2}

x = (1, 2)

Q4. What is the oct value for 1111?

2127

2129

2128

2125

2124

Q5. What does integral measure?

above the curve

under the curve

on the curve

Q6. In python, which one is incorrect?

9 / 2 == 9//2

int(9.2) = 9

Q7. In python, what is the type of number 5.60?

bool

float

int

Q8. What does an integral measure?

area between the curve and y=x

area above the curve

area under the curve

some function of the curve

Q9. In Python, the def statement defines a function or method.

False

True

Q10. What is the uncertainty of the output if z =f(x)?

z= f'(x)

∂x = ∂z

∂z = f'(x)∂x

Q11. True or False: Total error = computational error + propagated data error

True

False

Q12. True of False: A problem is well posted if the solution has a continuous dependence on input data (a small change in the input causes a small change in the output)

False

True

Q13. Is it true or false that a lower triangular matrix has zeros above the diagonal elements?

True

False

Q14. When does Cholesky algorithm fail?

When the input matrix is not a positive definite.

All of the above

When the input matrix is not symmetric.

Q15. In python, what is the type of number 3?

int

float

bool

Q16. True or False: Linear algebra is the extension of elementary algebra to matrices (and vectors, which can be seen as special types of matrices)by defining the four elementary operations among them.

False

True

Q17. What is computational error?

the difference between f(x) and x

the difference between x and avg x

the difference between avg f(x) and y

the difference between avg f(x) and x

Q18. If the determinant of a matrix is zero, then it's inverse matrix is also zero.

False

True

Q19. Which expression has different value of others in python?

1 / 2 + 1 / 2

3 // 2

2 - 1

0 - -1

Q20. Which of the following expression have syntax error in python?

i++

i = i + 1

i += 1

i = 1 + 1

Q21. How do you import the entire content of a library?

import *

import +

import -

import data

Q22. Which one is False if i == 1?

before ++i, i is 2

after ++i, i is 2

Q23. Ture or False: Support vector machines try to maximize margin by solving a quadratic optimization problem.

True

False

Q24. Given a function f, we can approximate its integral by dividing its domain into n rectangles with width 1/n and height f(n). We can get better approximations for this integral by...

Increasing n.

Decreasing n.

Using trapezoids instead of rectangles and increasing n.

You cannot approximate an integral using this method.

Using trapezoids.

Q25. In Python, we can obtain a list of object attributes (including methods) for any object using the command dir.

True

False

Q26. True or False: If an inverse, A-1 exists, it is unique.

False

True

It depends on the matrix

Q27. Python supports multiple programming paradigms, including object oriented (class), imperative (def), and functional (lambda) programming.

False

True

Q28. What is the reason for systematic error?

A modeling errors (we do not know f (x))

A and B

Rounding errors (we do not implement f (x) with arbitrary precision arithmetic's).

Q29. When we take a set of observations of vectors that are possibly correlated and convert it to a set of vectors that are not correlated, the mathematical procedure is called:

Principal Component Analysis.

Curve-fitting.

Quadrature.

Golden section search.

Linear Least Squares.

Q30. Let f(x)f(x) = cos2(x)-sin2(x)cos2(x)-sin2(x). Compute ∫π/40f(x)dx∫0π/4f(x)dx.

-1/2

ππ

1/2

π/2π/2

0

Q31. A Fourier transformation uses a vector to approximate a function with a domain over a finate interval.

False

True

Q32. Which is an example of a statistical distribution of data?

Gaussian

Exponential

Binomial

Poisson

All of these.

Q33. Which is a type of algorithm used to cluster data?

Centroid-based clustering

All of these.

Distribution-based clustering

Hierarchial clustering

Q34. When converting very large, sparse matrices, the best algorithm we discussed was ___, because___.

Minimum residual algorithm; if a solution exists, the minimum residual diverges.

Minimum residual algorithm; if a solution exists, the minimum residual converges to it.

Stabilized bi-conjugate gradient method; it is slower than minimum residual with a smoother convergence.

Stabilized bi-conjugate gradient method; it is faster than minimum residual with a smoother convergence.

Gauss-Jordan elimination; this is the only practical algorithm to use.

Q35. In a geometric representation, the scalar product relates to the angle (αα) between 2 vectors:

a'b = ||a|| *||b||*tan(αα)

a'b = ||a|| *||b|| *cos(αα)

a'b = (||a|| +||b||) *(||a|| -||b||)* cos(αα)

a'b = ||a|| *||b||*sin(αα)

Q36. We can use the _____ algorithm on a _____ matrix to determine if the matrix is ________.

Linear least squares; singular; positive-definite.

Jacobi; symmetric; sparse.

Cholesky; symmetric; positive-definite.

Minimum residual; non-symmetric; sparse.

Q37. Given variable x and integers n and C, the general integral of the power function x^n is...

x^(n+C)

(x^n-1)/n+1 +C

(nx)^n-1 +C

(x^n+1)/n+1 +C

Q38. The list.append(x) is one of the method of list objects. It adds an item to the end of the list. Equivalent to:

a[len(a):] = [x]

a[:len(a)] = [x]

a[-1:] = [x]

a[len(a)] = [x]

Q39. What is the inverse of [[2,3],[7,4]]

[[-4/13, 3/13], [7/13, -2/13]]

[[7/13, 3/13], [-4/13, -2/13]]

[[-2/13, 3/13], [7/13, -4/13]]

Q40. Solve this system of linear equations:

3x+2y-z=12x-2y+4z=-2-x+1/2y-z=03x+2y-z=12x-2y+4z=-2-x+1/2y-z=0

x=-1y=-2z=-2x=-1y=-2z=-2

x=1y=-2z=-2x=1y=-2z=-2

x=-2y=22z=-2x=-2y=22z=-2

x=1y=2z=2

Reference no: EM131890317

Questions Cloud

What did you notice as a result of practicing the strategies : What did you notice as a result of practicing these strategies? What challenges did you encounter with regards to incorporating these strategies?
Produce the majority of their cellular-atp from carbohydrate : Which of the acids below causes physiologic and acid/base problems for individuals that cannot, for whatever reason, produce the majority of their cellular-ATP
Review the final project assignment overview : For this part of your Final Project Assignment, you are to provide a brief summary of the individual and the biography you selected for your Final Project.
Anatomy of the heart and the physiology of the heart : We have also been discussing cardiac physiology. Differentiate between anatomy of the heart and the physiology of the heart.
What is computational error : What is computational error? How do you import the entire content of a library? What is the reason for systematic error
Why are we seeing a reemergence of these diseases : Discuss some of the reasons behind this increase. Why are we seeing a reemergence of these diseases? Please cite the sources.
Explain the evolutionary relationship among reptiles : Briefly explain the evolutionary relationship among reptiles including birds, theropods, dinosaurs, turtles, archosaurs, lepidosaurs.
How long does it take for a bacteria to divide : How long does it take for a bacteria to divide? If there were 10 E. coli bacteria in your burrito, and you left it in your car for 3 hours.
What is the cultural or historical context of the image : What is the cultural or historical context of the image? You should record all of the activities. Some of them will become important pieces of your final draft.

Reviews

len1890317

3/7/2018 1:34:26 AM

Detailed Question: Need to answer 100 extremely easy phython multiple choice correctly. You need to make a question in exchange for 5 questions to answer. Already answer 30 correctly Need help finish the rest. True of False: A problem is well posted if the solution has a continuous dependence on input data (a small change in the input causes a small change in the output).

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