ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 


 

Company >> Quark >> Quark Questions
 
 Quark technical test questions  Quark Technical Test Questions (20)  Quark interview questions  Quark Interview Questions (3)
 
Back to Questions Page
Question   You just entered the following command_Router(config#) line console 0 Which operation is most likely to follow? A. Confound terminal type B. enter protocol parameters for a serial line C. create a password on the console terminal line D. establish a terminal type 4 connection to a remote host E. change from configuration mode to console privileged mode Rank Answer Posted By  
 Interview Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
Answer: C
 
0 Guest
 
 
Answer
Ans: C

Reason :As in the Question it is mentioned as "LINE CONSOLE 
0" it means it has entered into console mode,so we will 
create password for the console terminal line....
 
0 Bharghava Srinivas
 
 
Answer
Ans: C

Reason :As in the Question it is mentioned as "LINE CONSOLE 
0" it means it has entered into console mode,so we will 
create password for the console terminal line....
 
0 Bharghava Srinivas
 
 
 
Answer
To create a username and password will enter into consol 
mode,
 
0 Surya
 
 
Answer
dear Surya i don't think so, we won't create a user name in 
console mode
 
0 Bharghava
 
 
Answer
Dear i know it there will not be any username on Consol 
port,That was enterred by mistake.
 
0 Surya Mr
 
 
Answer
No Surya By Mistake U Should Not Keep,Bcoz So Many Guys Who 
will Refer the Same Site May Confuse and asssume the 
Same .......

So,Better When U R Posting an Answer "BE SURE"
 
0 Bharghava Srinivas
 
 
Answer
E. change from configuration mode to console privileged mode
 
0 Rohit Dodia
 
 
Answer
E. change from configuration mode to console privileged mode
 
0 Rohit Dodia
 
 
Answer
option c
 
0 Pasha Jetking Bang....
 
 
Question   int f() { int I = 12; int &r = I; r += r / 4; int *p = &r; *p += r; return I; } Referring to the sample code above, what is the return value of the function "f()"? a) 12 b) 15 c) 24 d) 17 e) 30 Rank Answer Posted By  
 Interview Question Submitted By :: Ramesh.chaluvadi
I also faced this Question!!   © ALL Interview .com
Answer
ans: 30 i.e 'e'
 
0 Guest
 
 
Answer
int I=12;
int &r=I;
here r is a reference to I
 r+=r/4;
=>r=r+r/4;
=>r=12+12/4;[r=I=12]
=>r=12+3
=>r=15
=>I=15

int *p=&r;
so, p is a pointer to r(i.e.,to I)

*p +=r;
=>*p = *p+r
=>*p=15+15
=>*p=30
=>I=30

so the return value of the f() is 30
 
0 Uma Sankar Pradhan
 
 
Question   catch(exception &e) { . . . } Referring to the sample code above, which one of the following lines of code produces a written description of the type of exception that "e" refers to? a) cout << e.type(); b) cout << e.name(); c) cout << typeid(e).name(); d) cout << e.what(); e) cout << e; Rank Answer Posted By  
 Interview Question Submitted By :: Ramesh.chaluvadi
I also faced this Question!!   © ALL Interview .com
Answer
cout<<typeid(e).name() is the correct one
 
0 Guest
 
 
Answer
ans:c
 
0 Santhoo035
 
 
Question   template<class T, class X> class Obj { T my_t; X my_x; public: Obj(T t, X x) : my_t(t), my_x(x) { } }; Referring to the sample code above, which one of the following is a valid conversion operator for the type T? a) T operator T () { return my_t; } b) T operator(T) const { return my_t; } c) operator(T) { return my_t; } d) T operator T (const Obj &obj) { return obj.my_t; } e) operator T () const { return my_t; } Rank Answer Posted By  
 Interview Question Submitted By :: Ramesh.chaluvadi
I also faced this Question!!   © ALL Interview .com
Answer
option 'e' is the correct one
 
0 Guest
 
 
Question   class X { public: int x; static void f(int z); }; void X::f(int y) {x=y;} What is the error in the sample code above? a) The class X does not have any protected members. b) The static member function f() accesses the non-static z. c) The static member function f() accesses the non-static x. d) The member function f() must return a value. e) The class X does not have any private members. Rank Answer Posted By  
 Interview Question Submitted By :: Ramesh.chaluvadi
I also faced this Question!!   © ALL Interview .com
Answer
option 'c' is the answer
 
0 Guest
 
 
Answer
The error is in x not being referenced/initialized properly.
 
0 D289
 
 
Question   The "virtual" specifier in a member function enables which one of the following? a) Monmorphism b) Late binding c) Metamorphism d) Solomorphism e) Inheritance Rank Answer Posted By  
 Interview Question Submitted By :: Ramesh.chaluvadi
I also faced this Question!!   © ALL Interview .com
Answer
Late binding
 
0 Guest
 
 
Answer
Metamorphism
 
0 Leo Theboss
 
 
Answer
Late Binding
 
0 Richa
 
 
Question   Which one of the following describes characteristics of "protected" inheritance? a) The base class has access only to the public or protected members of the derived class. b) The derived class has non-public, inheritable, access to all but the private members of the base class. c) The derived class has access to all members of the base class. d) The private members of the base class are visible within the derived class. e) Public members of the derived class are privately accessible from the base class. Rank Answer Posted By  
 Interview Question Submitted By :: Ramesh.chaluvadi
I also faced this Question!!   © ALL Interview .com
Answer
Answer is b)
 
0 Guest
 
 
Answer
d
 
0 Roshanpr
 
 
Answer
the right answer is b
option <b>
 
0 Ravi
 
 
Question   class Foo { public: Foo(int i) { } }; class Bar : virtual Foo { public: Bar() { } }; Bar b; Referring to the above code, when the object 'b' is defined, a compiler error will occur. What action fixes the compiler error? a) Adding a virtual destructor to the class Bar b) Adding a constructor to Bar which takes an int parameter c) Adding "Foo()" to the Bar constructor d) Adding a copy constructor to the class Foo e) Adding "Foo(0)" to the Bar::Bar initializer list Rank Answer Posted By  
 Interview Question Submitted By :: Ramesh.chaluvadi
I also faced this Question!!   © ALL Interview .com
Answer
Ans. E
 
0 Guest
 
 
Question   class Foo { const int x; protected: Foo(int f); ~Foo(); }; Foo f; Referring to the sample code above, why will the class declaration not compile? a) The variable x is const. b) The destructor is protected. c) The destructor is not public. d) The constructor is protected. e) There is no default constructor. Rank Answer Posted By  
 Interview Question Submitted By :: Ramesh.chaluvadi
I also faced this Question!!   © ALL Interview .com
Answer
There is no default Constructor
 
0 Guest
 
 
Answer
a
 
0 Guest
 
 
Answer
a,b,c,d
 
0 Gopinath Das
 
 
Answer
a,b,c,e
 
0 Sampurna Pandey
 
 
Question   class X { private: int a; protected: X(){cout<<"X constructor was called"<<endl;} ~X(){cout<<"X destructor was called"<<endl} }; Referring to the code above, which one of the following statements regarding "X" is TRUE? a) X is an abstract class. b) Only subclasses of X may create X objects. c) Instances of X cannot be created. d) X objects can only be created using the default copy constructor. e) Only friends can create instances of X objects. Rank Answer Posted By  
 Interview Question Submitted By :: Ramesh.chaluvadi
I also faced this Question!!   © ALL Interview .com
Answer
only subclasses of X may create X objects.
i.e and B
 
0 Guest
 
 
Answer
Only subclasses of X may create X objects. 
means (b) is the only answer.
 
0 Shakti Singh Khinchi
 
 
Question   class HasStatic { static int I; }; Referring to the sample code above, what is the appropriate method of defining the member variable "I", and assigning it the value 10, outside of the class declaration? a) HasStatic I = 10; b) int static I = 10; c) static I(10); d) static I = 10; e) int HasStatic::I = 10; Rank Answer Posted By  
 Interview Question Submitted By :: Ramesh.chaluvadi
I also faced this Question!!   © ALL Interview .com
Answer
Ans e)
 
0 Guest
 
 
Question   class Foo { int x; public: Foo(int I); }; If a class does not have a copy constructor explicitly defined one will be implicitly defined for it. Referring to the sample code above, which one of the following declarations is the implicitly created copy constructor? a) Foo(Foo *f); b) Foo(Foo &f); c) Foo(const Foo *f); d) Foo(const Foo &f); e) Foo(int); Rank Answer Posted By  
 Interview Question Submitted By :: Ramesh.chaluvadi
I also faced this Question!!   © ALL Interview .com
Answer
answer is 'd'
 
0 Guest
 
 
Answer
ans :d
 
0 Santhoo035
 
 
Answer
all the above answers are wrong.

plzz don't confuse the ppl who have less knowledge.

question is about copy constructor..
b is right answer.

while e is the constructor whoch takes argument as int type.
 
0 Ranjeet Garodia
 
 
Question   class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData Rank Answer Posted By  
 Interview Question Submitted By :: Ramesh.chaluvadi
I also faced this Question!!   © ALL Interview .com
Answer
pass a const reference to Alpha in FillData i.e Ans e)
 
0 Guest
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com