QUESTION (8)
(a) x=12 and y=12
*p and *q are declare as pointer type so *p=&x means *p holds the address of x and *q=&y means *q holds the address of the y so *p=*q means assign the value of *q into *p so *p hold the value 12 , *p and x both are point the same memory location and *p as pointer type so changes in *p is parmanently so value of x also will be change
(b) x=2 and y=5
*m and *n are declare as pointer type so *m=&x means *m holds the address of x and *n=&y means *n holds the address of the y so *m=*n means assign the value of *n into *m so *m hold the value 3 , *m and x both are point the same memory location and *m as pointer type so changes in *m is parmanently so value of x also will be change so final value of *m will be 2 and *n will be 5 so x and y also hold 2 and 5
(c) x=8 and y=5
*a and *b are declare as pointer type so *a=&x means *a holds the address of x and *b=&y means *b holds the address of the y so *a=*b means assign the value of *b into *a so *b hold the value 6 , *a and x both are point the same memory location and *a as pointer type so changes in *a is parmanently so value of x also will be change so final value of *a will be 8 after 2 add in *a, and *b will be 5 after 1 decrement so x and y also hold 8 and 5
QUESTION (4):
(a) OUTPUT : ------
in this statement for loop exicute six time so six time print "-"
8 Suppose the following declarations and statement are in effect. What are the values of x...
Suppose the following declarations and statement are m effect What are the values of and b in each ease? int a = 10, b - 20, x = &a, y = &b; x = y; int a - 10, b - 20, x =6a, y =&b; x = y; x = 2; y = 5; int a = 10, b = 20, x =&a, y = &b; x = y; x + = 2; [y] --;
Suppose X and Y are independent random variables with Exponential(2) distribution (Section 6.3). We say X ~ Exponential(2) if its pdf is f(x) = -1/2 for x > 0.
question is from a java quiz Based on the following code, what is the value of y if x = 5? int x, y; if (x < 4) у 2; else if (x > 4) = { if (x > 7) y = 4; else y = 6; } else y = 8; 6 8 2 O 4
8) Assume that X ~ N(μ = 4,02-1). Find c >0 such that P(-c 〈 X 〈 c) Find P(2 〈 X 〈 6) a. 0.95 b.
2. Consider the following programs (using C's syntax): #include <stdio.h> int a- 1, b-2; int foo (int x) 1 return (x+a); void ba r () { printf("%d, %d\n",a,b); void foobar) } printf("%d, %d\n", a, b) ; int a -4; bar bfoo (b); bar int main)( int b 8; foobar printf ("%d, %d\n", a, b) ; return 0; (a) What does the program print under static scoping? (b) What does the program print under dynamic scoping?
Part A. Let X and Y be two i.i.d. random variables that are exponentially distributed with 0.5e-x/2 an x>0 0 otherwise 6. Given W- X+Y. Find the MGF of W -23 a. e2sx b. e C. d. 7. Given W-X +Y. Find Ew] a. 4 b. 8 c. 12 d. 16 e. 24
Problem 7: Let X and Y be two jointly continuous random variables with joint PDF 4 (x y) otherwise a) Find P(0< Y< 1/2 I x-2) b) For what value of A is it true that P(0 < Y < ½ |X> A)-5/16
(6 points) Let X and Y be independent random variables with p.d.f.s fx(x) -{ { 1-22 0, for |2|<1, otherwise. fy(y) = for y>0, otherwise. 0, Let W = XY (a) (2 points) Find the p.d.f. of W, fw(w). (b) (2 points) Find the moment generating function of W2, Mw?(t) = E (e«w?). (c) (2 points) Find the conditional expectation of W given Y = y, E(W|Y = y).
Any help would be appreciated! Problem 4 Let (X, Y)~ N and Z = X1(XY > 0}-X1(XY < 0} (1) Find the distribution of Z (2) Show that the joint distribution of Y and Z is not bivariate normal.
Please write clearly Thank you Zero-State Response of LTI System: Superposition Sum > Example: Let: x[n] h[n] akh 2.5 1.5 2 1.5 x[n] h[n] 1 0.5 0.5 0 2 0 00. 3 5 4 6 7 N 3 5 6 7 8 y[n = Z That k=-o h[n] x [n-k