Ask Python Expert

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

Python, Programming

  • Category:- Python
  • Reference No.:- M92718664
  • Price:- $70

Guranteed 36 Hours Delivery, In Price:- $70

Have any Question?


Related Questions in Python

Part i the assignment filesone of the most important

Part I: The Assignment Files One of the most important outcomes of this assignment is that you understand the importance of testing. This assignment will follow an iterative development cycle. That means you will write a ...

Homework -this homework will have both a short written and

Homework - This homework will have, both a short written and coding assignment. The problems that are supposed to be written are clearly marked. 1) (Written) Make heuristics Describe two heuristics for the slide problem ...

Tasksdemonstrate data scraping of a social network of

Tasks Demonstrate data scraping of a social network of choice. Develop technical documentation, including the development of the code & detailing the results. Provide a report on the findings, that includes research into ...

Assignment1 utilising python 3 build the following

Assignment 1. Utilising Python 3 Build the following regression models: - Decision Tree - Gradient Boosted Tree - Linear regression 2. Select a dataset (other than the example dataset given in section 3) and apply the De ...

Python programming assignment -you first need an abstract

Python Programming Assignment - You first need an abstract base class, called, Account which has the following attributes and methods: accountID: This attribute holds the ID assigned the account , if not provided set to ...

Learning outcomes lo3 - research develop and document a

Learning Outcomes LO3 - Research, develop, and document a basic security policy, and analyse, record, and resolve all security incidents LO4 - Identify and assess the threats to, and vulnerabilities of networks Assessmen ...

Question research pythons dictionary data type dictdiscuss

Question : Research Python's dictionary data type (dict). Discuss its interface and usage. Include examples. Discuss practical applications of dictionaries.

Questionwhat is a python development frameworkgive 3

Question What is a python development framework? Give 3 examples python development framework used today. and explain which development framework is used in which industry.

Below zero - ice cream storethe local ice-cream store needs

Below Zero - ice cream store The local ice-cream store needs a new ordering system to improve customer service by streamlining the ordering process. The manager of the store has found that many orders are incorrect and s ...

The second task in this assignment is to create a python

The second task in this assignment is to create a Python program called pancakes.py that will determine the final order of a stack of pancakes after a series of flips.(PYTHON 3) Problem Task In this problem, your input w ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As