TutorMe homepage
Subjects
PRICING
COURSES
Start Free Trial
Asish B.
tutor for 2 year
Tutor Satisfaction Guarantee
Electrical Engineering
TutorMe
Question:

Root locus of s(s+2)+K(s+4) =0 is a circle. What are the coordinates of the center of this circle? a) -2,0 b) -3,0 c) -4,0 d) -5,0 control system subject

Asish B.

Answer: c Explanation: s(s+2)+K(s+4) =0 1+K(s+4)/s(s+2) =0. G(s)H(s) =K(s+b)/s(s+a) Centre =(-b,0) =(-4,0).

C++ Programming
TutorMe
Question:

#include<iostream> using namespace std; class A { public: virtual void fun() {cout << "A" << endl ;} }; class B: public A { public: virtual void fun() {cout << "B" << endl;} }; class C: public B { public: virtual void fun() {cout << "C" << endl;} }; int main() { A *a = new C; A *b = new B; a->fun(); b->fun(); return 0; } this was my question sem xam,plzz solve it

Asish B.

A base class pointer can point to objects of children classes. A base class pointer can also point to objects of grandchildren classes. Therefore, the line “A *a = new C;” is valid. The line “a->fun();” prints “C” because the object pointed is of class C and fun() is declared virtual in both A and B (See this for details). The second line of output is printed by the statement “b->fun();”. the output is C and B.

C Programming
TutorMe
Question:

What will be output if you will compile and execute the following c code? struct marks{ int p:3; int c:3; int m:2; }; void main(){ struct marks s={2,-6,5}; printf("%d %d %d",s.p,s.c,s.m); } (a) 2 -6 5 (b) 2 -6 1 (c) 2 2 1 (d) Compiler error (e) None of these

Asish B.

Binary value of 2: 00000010 (Select three two-bit) =2 Binary value of 6: 00000110 Binary value of -6: 11111001+1=11111010 =2 (Select last three bit) Binary value of 5: 00000101 (Select last two bit) =1 the answer is c 2 2 1

Send a message explaining your
needs and Asish will reply soon.
Contact Asish