tag:blogger.com,1999:blog-7392645444936952522024-03-19T13:37:11.159-07:00Interview Questions and Answers - atozIQInterview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.comBlogger1526125tag:blogger.com,1999:blog-739264544493695252.post-26396551250080182552019-03-24T19:08:00.001-07:002019-03-24T19:08:46.105-07:0050 TOP Zend Framework Interview Questions and Answers pdf 2019<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<b><span style="color: magenta;">Latest Zend Framework Interview Questions, Most recently asked Zend Framework interview questions and answers, Experienced Zend Framework interview questions and answers</span></b></h2>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiltoCPAIaJpumPYjPW-TVU1w1d90Ayea4hDsp4oYRpGTTlh8EGqVfRgTkTrW2ECP5pWQxpljwdj2bZPJLk0qhboMDscVUNNdn-3yMbs6sXD7J1Y6eGOxCTErFYiDS1wt9BRDRlV0X9aVBg/s1600/interview-questions-for-zend-framework.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="zend framework interview questions" border="0" data-original-height="224" data-original-width="400" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiltoCPAIaJpumPYjPW-TVU1w1d90Ayea4hDsp4oYRpGTTlh8EGqVfRgTkTrW2ECP5pWQxpljwdj2bZPJLk0qhboMDscVUNNdn-3yMbs6sXD7J1Y6eGOxCTErFYiDS1wt9BRDRlV0X9aVBg/s320/interview-questions-for-zend-framework.jpg" title="zend framework interview questions" width="320" /></a></div>
<b><br /></b>
<b>Q-1 Is Zend Framework a component library or a framework?</b><br />
Ans. ZF is both. Zend Framework provides all the components required for most web applications in a single distribution. But Zend Framework components are also loosely coupled, making it easy to use just a few components in a web application- even alongside other frameworks! Using this use-at-will architecture, we are implementing features commonly found in more monolithic frameworks. In fact, we are currently working on a tooling component for the 1.8 release that will make it simpler to build applications using ZF components, yet will not sacrifice the use-at-will nature of existing ZF components.<br />
<br />
<b>Q-2 What is autoloader?</b><br />
Ans. Autoloader is function that load all the object on start up.<br />
<br />
<b>Q-3 What is use of Zend front controller?</b><br />
Ans. Routing and dispatching is managed in the front controller. It collects all the request from the server and handles it.<br />
<br />
<b>Q-4 What is the use of Bootstrap?</b><br />
Ans. Apart from index if we want to do any extra configuration regarding database and other things that is done within bootstrap.<br />
<br />
<b>Q-5 How you can set Module name, Controller name, and Action name in Zend framework?</b><br />
Ans.<br />
$request->setModuleName(‘front’);<br />
$request->setControllerName(‘address’);<br />
$request->setActionName(‘addresslist’);<br />
<b><br /></b>
<b>Q-6 Configuration in Zend Framework, application.ini file?</b><br />
Ans. Configuration can be done in application.ini file in Zend framework. This file in the path application/configs/application.ini.<br />
<br />
<b>Q-7 Checking whether form posted or not in Zend framework?</b><br />
Ans.<br />
$request = $this->getRequest();<br />
$getData = $request->getParams();<br />
$postData = $request->getPost();<br />
$isPost = $request->isPost();<br />
<br />
<b>Q-8 Fetch last inserted id, fetch all record,find and fetch a single record.</b><br />
Ans.<br />
$this->_db->lastInsertId();<br />
$this->_db->fetchAll($sql);<br />
$this->_db->find($id);<br />
$this->_db->fetchRow($sql);<br />
<br />
<b>Q-9 Difference between Zend_Registry and Zend_Session?</b><br />
Ans.<br />
Zend_Registry is used to store objects/values for the current request. In short, anything that you commit to Registry in index.php can be accessed from other controllers/actions (because EVERY request is first routed to the index.php bootstrapper via the .htaccess file). Config parameters and db parameters are generally prepped for global use using the Zend_Registry object.<br />
<br />
Zend_Session actually uses PHP sessions. Data stored using Zend_Session can be accessed in different/all pages. So, if you want to create a variable named ‘UserRole’ in the /auth/login script and want it to be accessible in /auth/redirect, you would use Zend_Session.<br />
<br />
<b>Q-10 When do we need to disable layout?</b><br />
Ans. At the time of calling AJAX to fetch we need to disable layout.<br />
$this->_helper->layout()->disableLayout();<br />
$this->_helper->viewRenderer->setNoRender(true);<br />
<br />
<b>Q-11 How to call two different views from same action?</b><br />
Ans.<br />
Example1:<br />
Public function indexAction() {<br />
If(condition)<br />
$this->render(‘yourview.phtml’);<br />
Else<br />
Index.phtml;<br />
Example2:<br />
?<br />
1<br />
2<br />
Public function indexAction() {<br />
}<br />
Now in your index.phtml you can have this statement to call other view<br />
$this->action(‘action name’,’controller name’,’module name’,array(‘parameter name’=>’parameter value’));<br />
<br />
<b>Q-12 Can we call a model in view?</b><br />
Ans. Yes, you can call a model in view. Simple create the object and call the method.<br />
$modelObj = new Application_Model_User();<br />
<br />
<b>Q-13 Can we rename the application folder ?</b><br />
Ans. yes, we can<br />
<br />
<b>Q-14 Can we move the index.php file outside the public folder?</b><br />
Ans. yes, we can<br />
<br />
<b>Q-15 How to include js from controller and view in zend?</b><br />
Ans.<br />
From within a view file:<br />
$this->headScript()->appendFile(‘filename.js’);<br />
<br />
From within a controller:<br />
$this->view->headScript()->appendFile(‘filename.js’);<br />
<br />
And then somewhere in your layout you need to echo out your headScript object:<br />
<!--=$this--->headScript();?><br />
<br />
<b>Q-16 How to include css from controller and view in zend?</b><br />
Ans.<br />
From within a view file:<br />
$this->headLink()->appendStylesheet(‘filename.css’);<br />
From within a controller:<br />
$this->view->headLink()->appendStylesheet(‘filename.css’);<br />
And then somewhere in your layout you need to echo out your headLink object:<br />
<!--=$this--->headLink();?><br />
<br />
<b>Q-17 How do you protect your site from sql injection in zend when using select query?</b><br />
Ans.<br />
We have to quote the strings,<br />
$this->getAdapter ()->quote ( <variable name=""> );<br />
$select->where ( ” <field name=""> = “, <variable name=""> );<br />
OR (If you are using the question mark after equal to sign)<br />
$select->where ( ” <field name=""> = ? “, <variable name=""> );<br />
</variable></field></variable></field></variable><br />
<br />
<b>Q-18 What is zend framework?</b><br />
Ans. It is opensource framework created by zend.com (PHP company). It is object oriented and follow the MVC. Zend Framework is focused on building more secure, reliable and fast development.<br />
<br />
<b>Q-19 How to add extra HTML (i.e link) in Zend_Form?</b><br />
Ans. use Desciption decorator with (escape =false in second parameter).<br />
<br />
<b>Q-20 How can I detect if an optional file has been uploaded?</b><br />
Ans. Zend_File_Transfer_Adapter_Http's receive() return true.<br />
<br />
<b>Q-21 What is Zend registry?</b><br />
Ans. It is container for object and values in applications, when you set an object in zend_registry you can access in whole site.<br />
<br />
<b>Q-22 What is Zend_Form?</b><br />
Ans. It is mainly used to display the form. but along with this we use for filter, validation and formating our form. It have following elements<br />
Element filter<br />
Element validation<br />
Element ordering.<br />
Decorator<br />
Grouping<br />
Sub form<br />
Rendering form elments in single call or one by one for elements.<br />
<br />
<b>Q-23 What is zend helpers?</b><br />
Ans. It can be divided in two parts,<br />
a) Action Helper: the helper is created for controller<br />
b) View Helper: the helper is created for view files (.phtml).<br />
<br />
<b>Q-24 What do you know about zend layout.</b><br />
Ans. It work as a site template and have following features.<br />
Automatic selection and rendering layout<br />
Provide separate scope for calling element i.e parital, render, partialLoop<br />
<br />
<b>Q-25 What is Inflection?</b><br />
Ans. It is class in zend used to modify the string like convert to lowercase, change to url by removing special chars and convert underscore to hyphen.<br />
<br />
<b>Q-26 What is Front Controller?</b><br />
Ans. It used Front Controller pattern. zend also use singleton pattern.<br />
routeStartup: This function is called before Zend_Controller_Front calls on the router to evaluate the request.<br />
routeShutdown: This function is called after the router finishes routing the request.<br />
dispatchLoopStartup: This is called before Zend_Controller_Front enters its dispatch loop.<br />
preDispatch: called before an action is dispatched by the dispatcher.<br />
postDispatch: is called after an action is dispatched by the dispatcher.<br />
<br />
<b>Q-27 What is Zend_filter?</b><br />
Ans. Zend_filter is used to filter the data as remove the tags, trailing the spaces, remove all except digits.<br />
<br />
<b>Q-28 Tell me about Zend Framework</b><br />
Ans. Extending the art & spirit of PHP, Zend Framework is based on simplicity, object-oriented best practices, corporate friendly licensing, and a rigorously tested agile codebase. Zend Framework is focused on building more secure, reliable, and modern Web 2.0 applications & web services, and consuming widely available APIs from leading vendors like Google, Amazon, Yahoo!, Flickr, as well as API providers and cataloguers like StrikeIron and ProgrammableWeb.<br />
<br />
<b>Q-29 Which version of PHP does Zend Framework require?</b><br />
Ans. Zend Framework requires PHP 5.2.4 and up. Some Zend Framework components may work with earlier versions of PHP, but these components are tested and supported only on 5.2.4 and up. See the requirements appendix for more information.<br />
<br />
<b>Q-29 Does Zend Framework support PHP 4?</b><br />
Ans. No. Zend Framework was built to use all of the sophisticated object oriented features of PHP 5 and take advantage of significant performance and security enhancements. Another consideration was support of the platform ZF would be running on. The PHP community officially discontinued support for PHP 4 as of 2008-01-01, and no critical security updates will be published for PHP 4 after 2008-08-08. These factors, among others, convinced us that PHP 5 was the best platform for Zend Framework and applications built on ZF.<br />
<br />
<b>Q-30 Where is the model in ZF's MVC implementation?</b><br />
Ans. The model component can vary dramatically in responsibilities and data store from one MVC application to the next. The ZF community has not defined a model interface, class, or other formalism simply because we wanted to avoid introducing limitations without significant added value.<br />
<br />
<b>Q-31 Is ZF a component library or a framework?</b><br />
Ans. Simple answer: both. Zend Framework provides all the components required for most web applications in a single distribution. But Zend Framework components are also loosely coupled, making it easy to use just a few components in a web application- even alongside other frameworks! Using this use-at-will architecture, we are implementing features commonly found in more monolithic frameworks. In fact, we are currently working on a tooling component for the 1.8 release that will make it simpler to build applications using ZF components, yet will not sacrifice the use-at-will nature of existing ZF components. It's a testament to the use-at-will architecture of Zend Framework that the tooling component itself can be used standalone.<br />
<br />
<b>Q-32 Where's the model?</b><br />
Ans. Unlike the view and the controller components, the model component can vary dramatically in responsibilities and data storage from one MVC application to the next. It should represent what your application does in the abstract. The Zend Framework community has not defined a model interface, class, or other formalism because we haven't identified enough added value to justify limitations on what constitutes a model.<br />
<br />
<b>Q-33 I want to use a SQL function or perform calculations in a statement I'm generating with Zend_Db_Select. How can I do this?</b><br />
Ans. Actually, by default, if your expression includes parentheses, Zend_Db_Select will cast the statement appopriately. However, if it does not, or you are having problems, you can useZend_Db_Expr to explicitly create the expression:<br />
* Build the SQL:<br />
* SELECT p."product_id", p.cost * 1.08 AS cost_plus_tax<br />
* FROM "products" AS p<br />
*/<br />
$select = $db->select()<br />
->from(array('p' => 'products'),<br />
array(<br />
'product_id',<br />
'cost_plus_tax' => new Zend_Db_Expr('p.cost * 1.08'),<br />
));<br />
<br />
<b>Q-34 What is the difference between Zend_Auth and Zend_Acl?</b><br />
Ans. Zend_Auth is used for authenticating users with a variety of authentication methods, including LDAP, OpenID, and HTTP. Authentication is the process of verifying that the provided credentials are valid for the system. By authenticating to your system, your users can prove that they are who they say they are. For more information on Zend Framework's authentication implementation, see the Zend_Auth documentation.<br />
Zend_Acl is an implementation of Access Control List (ACL) authorization. Generally speaking, ACLs are lists of roles that are authorized to perform a particular operation on specific resources in your system. Zend_Acl can support advanced rule definitions with features such as multiple inheritance for roles and assertions for conditional rules. For more information on Zend_Acl, see the Zend_Acl documentation.<br />
Zend_Auth and Zend_Acl can be used together to build very sophisticated security systems: first the user confirms their identity with Zend_Auth, then this identity is used to assign one or more Zend_Acl roles to the user for authorization to use or modify resources in the system<br />
<br />
<b>Q-35 What is this "username" I have to submit with my CLA, and why do I have to submit it?</b><br />
Ans. This is the username you use to access the issue tracker, wiki, code browser, etc. If you don't have a username yet, you can sign up here.When we process your CLA, we need to grant the appropriate privileges to your user. To do this, we need to know your username.<br />
<br />
<b>Q-36 Should I sign an individual CLA or a corporate CLA?</b><br />
Ans. If you are contributing code as an individual- and not as part of your job at a company- you should sign the individual CLA. If you are contributing code as part of your responsibilities as an employee at a company, you should submit a corporate CLA with the names of all co-workers that you foresee contributing to the project.<br />
<br />
<b>Q-37 What should I know about the Zend Framework CLA before submitting it?</b><br />
Ans. By signing a CLA, the person contributing source code provides a copyright license to Zend to use the source code he or she submitted to the Zend Framework project. By doing so, the contributor does not give up his or her own rights or copyright to his or her own code, but provides us with a copyright license. In addition, the purpose of the CLA is to clearly define the terms under which intellectual property has been contributed to Zend Framework and to make sure that, to the best of the contributor's knowledge, he or she is entitled to make such contribution and is not violating anyone else's intellectual property.<br />
<br />
<b>Q-38 Why does the Zend Framework project have a CLA at all?</b><br />
Ans. The CLA protects all users including individuals, small and medium businesses, and large corporations. By having a CLA in place, we mitigate the risk that companies who claim intellectual property infringement may demand royalties or fees from users of Zend Framework, whether individuals or companies. This is especially important for companies basing their business or products on Zend Framework. The Zend Framework CLA helps to ensure that code and other IP in Zend Framework remains free.<br />
<br />
<b>Q-39 I am a minor (under 18 years of age). Who should sign my CLA?</b><br />
Ans. CLA's for contributors under the age of 18 should be signed by both the contributor and the contributor's legal guardian.<br />
<br />
<b>Q-40 I want to use a SQL function or perform calculations in a statement I'm generating with Zend_Db_Select. How can I do this?</b><br />
Ans.<br />
/* Build the SQL:<br />
* SELECT p."product_id", p.cost * 1.08 AS cost_plus_tax<br />
* FROM "products" AS p<br />
*/<br />
$select = $db->select()<br />
->from(array('p' => 'products'),<br />
array(<br />
'product_id',<br />
'cost_plus_tax' => new Zend_Db_Expr('p.cost * 1.08'),<br />
));<br />
<br />
<b>Q-41 How can I customize the appearance of forms generated by Zend_Form?</b><br />
Ans. You're probably looking for decorators. All forms and form elements in Zend_Form use decorators to render their output.<br />
<br />
<b>Q-42 How can I add extra HTML (such as a link) to my form element?</b><br />
Ans. This can easily be done using decorators. For instance using the Description decorator. It is important to note though that you will need to turn off escaping for the output of the decorator:<br />
$element->setDecorators(array(<br />
array('ViewHelper'),<br />
array('Description', array('escape', false)),<br />
array('Errors'),<br />
array('HtmlTag', array('tag' => 'dd')),<br />
array('Label', array('tag' => 'dt')),<br />
));<br />
Now, you can use the following to add extra HTML to the element:<br />
$element->setDescription('This contains HTML that will actually be parsed by the browser, not escaped');<br />
<br />
<b>Q-43 Why can't Zend_Form render my File element without errors?</b><br />
Ans. The file element needs a special file decorator, which is added by default. When you set your own decorators for file elements, you delete the default decorators. For example:<br />
$element->setDecorators(array(<br />
array('ViewHelper'),<br />
array('Errors')<br />
));<br />
You should use a File decorator instead of the ViewHelper for the file element, like so:<br />
$element->setDecorators(array(<br />
array('File'),<br />
array('Errors')<br />
));<br />
<br />
<b>Q-44 How can I detect if an optional file has been uploaded?</b><br />
Ans. The receive() method will return true for file elements that are not required. The reason is that you said "the file can be omitted, and that's ok for me". The receive() method will return false only in the event of a failure.<br />
Still there are several ways to detect if a file has been uploaded or not:<br />
<br />
Use isUploaded which returns a boolean<br />
Use getFileName which returns null in this case (note that you must use the latest release for this behaviour)<br />
Use getFileInfo which will have an empty 'file' key and the flag 'isUploaded' set to false</div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-18425513878929775682016-02-17T18:08:00.003-08:002016-02-17T18:08:55.799-08:00What are the major differences between services and Web services? <div dir="ltr" style="text-align: left;" trbidi="on">
Service-Oriented Architecture is an IT business system design methodology that is focused on reusability, breaking down silos, and enabling rapid and on-going optimization of business processes. An SOA can be implemented using any number of technologies. However, in practice the Web services standards and technologies (XML, SOAP, WSDL, WS-Security, WS-Policy, etc.) are at the heart of forming every organization's SOA implementation.<br />
<br />
<b><a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank">More => WCF Interview Questions & Answers</a></b><br />
<br /></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-63543174576153827752016-02-17T18:07:00.002-08:002016-02-17T18:07:59.210-08:00What is service host factory in WCF?<div dir="ltr" style="text-align: left;" trbidi="on">
1. Service host factory is the mechanism by which we can create the instances of service host dynamically as the request comes in.<br />
2. This is useful when we need to implement the event handlers for opening and closing the service.<br />
3. WCF provides ServiceFactory class for this purpose.<br />
<br />
<b><a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank">More => WCF Interview Questions & Answers</a></b><br />
<div>
<br /></div>
</div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-72501520671582620452016-02-17T18:04:00.002-08:002016-02-17T18:04:51.537-08:00What is the difference WCF and Web services? <div dir="ltr" style="text-align: left;" trbidi="on">
WCF can create services that are similar in concept to ASMX, but it can do much more !!!<br />
WCF is implemented on a different pipeline much more efficient than ASP.Net. It uses different serialization defaults. We can say that under the hood almost everything is different (and better)<br />
WCF has a much better security mechanisms<br />
WCF implement most WS* standards – Asmx Don’t. Thus WCF has security, reliability, transactions, one-way messaging and much more.<br />
With WCF you can use any transport very easily.<br />
As WCF is implemented on a different pipeline it does not have all Http context capabilities (Http session, cache etc)<br />
You can host WCF on any process including a window service. It is very common.<br />
<br />
<b><a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank">More => WCF Interview Questions & Answers</a></b></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-58101305221204913172016-02-17T18:03:00.004-08:002016-02-17T18:03:53.365-08:00How can we use MSMQ bindings in WCF?<div dir="ltr" style="text-align: left;" trbidi="on">
The NetMsmqBinding is the Queued binding provided in WCF for two WCF endpoints to communicate using MSMQ. The binding therefore, exposes specific properties that are MSMQ-specific. However, not all MSMQ features and properties are exposed in the NetMsmqBinding. The NetMsmqBinding is a compact feature designed with the optimal set of features that the majority of customers would find sufficient.<br />
<br />
<b><a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank">More => WCF Interview Questions & Answers</a></b><br />
<div>
<br /></div>
</div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-64207193032831854912016-02-17T18:03:00.000-08:002016-02-17T18:03:01.974-08:00What are tha advantages of hosting WCF service in WAS?<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: purple;">WAS (Windows Activation Service) is a component of IIS 7.0. Following are few advantages : </span></b><br />
1. We are not only limited to HTTP protocol. We can also use supported protocols like TCP, named pipes and MSMQ<br />
2. No need to completely install IIS. We can only install WAS component and keep away the WebServer.<br />
<br />
<b><a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank">More => WCF Interview Questions & Answers</a></b><br />
<br />
<br /></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-67544841015925617432016-02-17T18:01:00.003-08:002016-02-17T18:01:53.510-08:00In WCF which bindings supports the reliable session?<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: purple;">In WCF, following bindings supports the reliable session :</span></b><br />
1. wsHttpBinding<br />
2. wsDualHttpBinding<br />
3. wsFederationHttpBinding<br />
4. netTcpBinding<br />
<br />
<b><a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank">More => WCF Interview Questions & Answers</a></b></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com2tag:blogger.com,1999:blog-739264544493695252.post-44976864360191256742016-02-17T18:00:00.003-08:002016-02-17T18:00:53.375-08:00What is Transport and Message Reliability?<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: purple;">Transport reliability:</span></b> (such as the one offered by TCP) offers point-to-point guaranteed delivery at the network packet level, as well as guarantees the order of the packets. Transport reliability is not resilient to dropping network connections and a variety of other communication problems.<br />
<br />
<b><span style="color: purple;">Message reliability:</span></b> deals with reliability at the message level independent of how many packets are required to deliver the message. Message reliability provides for end-to-end guaranteed delivery and order of messages, regardless of how many intermediaries are involved, and how many network hops are required to deliver the message from the client to the service.<br />
<br />
<b><a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank">More => WCF Interview Questions & Answers</a></b></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-22407456910218119532016-02-17T17:59:00.004-08:002016-02-17T17:59:46.204-08:00How to define a service as REST based service in WCF?<div dir="ltr" style="text-align: left;" trbidi="on">
WCF 3.5 provides explicit support for RESTful communication using a new binding named WebHttpBinding.<br />
<br />
<b><span style="color: purple;">The below code shows how to expose a RESTful service :</span></b><br />
<pre>[ServiceContract]
interface IStock
{
[OperationContract]
[WebGet]
int GetStock(string StockId);
}</pre>
By adding the WebGetAttribute, we can define a service as REST based service that can be accessible using HTTP GET operation.<br />
<br />
<a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank"><b>More => WCF Interview Questions & Answers</b></a><br />
<div>
<br /></div>
</div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-83387284852256412652016-02-17T17:58:00.000-08:002016-02-17T17:58:07.181-08:00What is endpoint in WCF?<div dir="ltr" style="text-align: left;" trbidi="on">
Every service must have Address that defines where the service resides, Contract that defines what the service does and a Binding that defines how to communicate with the service. In WCF the relationship between Address, Contract and Binding is called Endpoint.<br />
The Endpoint is the fusion of Address, Contract and Binding.<br />
<br />
<b><a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank">More => WCF Interview Questions & Answers</a></b><br />
<div>
<br /></div>
</div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-73214888105684923062016-02-17T17:57:00.001-08:002016-02-17T17:57:11.134-08:00Where we can host WCF services?<div dir="ltr" style="text-align: left;" trbidi="on">
Every WCF services must be hosted somewhere. There are three ways of hosting WCF services.<br />
<br />
<b><span style="color: purple;">They are :-</span></b><br />
1. IIS<br />
2. Self Hosting<br />
3. WAS (Windows Activation Service)<br />
For more details see http://msdn.microsoft.com/en-us/library/bb332338.aspx<br />
<br />
<b><a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank">More => WCF Interview Questions & Answers</a></b></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-90667011103997036392016-02-17T17:55:00.004-08:002016-02-17T17:55:54.821-08:00What is address in WCF and how many types of transport schemas are there in WCF?<div dir="ltr" style="text-align: left;" trbidi="on">
Address is a way of letting client know that where a service is located. In WCF, every service is associated with a unique address. This contains the location of the service and transport schemas.<br />
<br />
<b><span style="color: purple;">WCF supports following transport schemas :-</span></b><br />
HTTP<br />
TCP<br />
Peer network<br />
IPC (Inter-Process Communication over named pipes)<br />
MSMQ<br />
<br />
<b><a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank">More => WCF Interview Questions & Answers</a></b></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-65250286341813270792016-02-17T17:54:00.005-08:002016-02-17T17:54:56.767-08:00What is the use of System.Windows.Navigation namespace in WPF?<div dir="ltr" style="text-align: left;" trbidi="on">
System.Windows.Navigation namespace contains different classes for navigation between windows.<br />
<br />
<b><a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank">More => WCF Interview Questions & Answers</a></b></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-41630336428506866662016-02-17T17:54:00.001-08:002016-02-17T17:54:06.380-08:00Which namespace provide classes for integration with WPF and Win32?<div dir="ltr" style="text-align: left;" trbidi="on">
The "System.Windows.Interop" namespace provides classes for integration of WPF with Win32.<br />
<br />
<b><a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank">More => WCF Interview Questions & Answers</a></b></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-67804629864649861452016-02-17T17:53:00.000-08:002016-02-17T17:53:02.297-08:00What is the use of "System.Windows.Markup" namespace in WPF?<div dir="ltr" style="text-align: left;" trbidi="on">
The System.Windows.Markup namespace provides some helper classes for XAML code.<br />
<br />
<b><a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank">More => WCF Interview Questions & Answers</a></b></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-6287822141556274422016-02-17T17:51:00.002-08:002016-02-17T17:51:30.086-08:00What are the core WPF assemblies?<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: purple;">The core WPF assemblies are:-</span></b><br />
<b><span style="color: purple;"><br /></span></b>
<b><span style="color: magenta;">WindowsBase.dll:-</span></b> It defines the core types constituting the infrastructure of WPF API.<br />
<br />
<b><span style="color: magenta;">PresentationCore.dll:-</span></b> Defines numerous types constituting foundation of WPF GUI layer.<br />
<br />
<b><span style="color: magenta;">PresentationFoundation.dll:-</span></b> It defines WPF control types, animation & multimedia support, data binding suport and other WPF services.<br />
Besides these three libraries WPF also uses an unmanaged binary called milcore.dll which acts as a bridge between WPF assemblies and DirectX runtime layer.<br />
<br />
<b><a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank">More => WCF Interview Questions & Answers</a></b><br />
<div>
<br /></div>
</div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-44333462035465809012016-02-17T17:48:00.002-08:002016-02-17T17:49:39.091-08:00What is XAML?<div dir="ltr" style="text-align: left;" trbidi="on">
XAML (pronounced as Zammel) is a declarative XML-based language by which you can define object and properties in XML. XAML document is loaded by a XAML parser.<br />
XAML parser instantiates objects and set there properties. XAML describes objects, properties and there relation in between them. Using XAML you can create any kind of objects that means graphical or non-graphical. WPF parses the XAML document and instantiates the objects and creates the relation as defined by XAML.<br />
<br />
<b><a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank">More => WCF Interview Questions and Answers</a></b><br />
<div>
<br /></div>
</div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-37721894208855885262016-02-17T17:47:00.002-08:002016-02-17T17:47:28.151-08:00What is WPF?<div dir="ltr" style="text-align: left;" trbidi="on">
Windows Presentation Framework is the new presentation API in WinFX. WPF is a two and three dimensional graphics engine.<br />
<b><span style="color: purple;">It has the following capabilities:- </span></b><br />
<b><span style="color: magenta;">=></span></b> Has all equivalent common user controls like buttons, check boxes sliders etc.<br />
<b><span style="color: magenta;">=></span> </b>Fixed and flow format documents<br />
<b><span style="color: magenta;">=></span> </b>Has all of the capabilities of HTML and Flash<br />
<span style="color: magenta;"><b>=></b></span> 2D and 3D vector graphics<br />
<b><span style="color: magenta;">=></span></b> Animation<br />
<b><span style="color: magenta;">=></span></b> Multimedia<br />
<b><span style="color: magenta;">=></span></b> Data binding<br />
<br />
<b><a href="http://atoziq.blogspot.in/2016/02/15-top-wcf-interview-questions-and.html" target="_blank">Read More => WCF Interview Questions</a></b></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-19065854302431467242016-02-17T17:41:00.001-08:002016-02-17T18:09:41.456-08:0015 TOP WCF Interview Questions and Answers for freshers and experienced pdf free download<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: magenta;">Latest WCF Interview Questions, Most recently asked WCF interview questions and answers, Experienced wcf interview questions and answers</span></b><br />
<b><span style="color: blue;">1. <a href="http://atoziq.blogspot.in/2016/02/what-is-wpf.html" target="_blank">What is WPF?</a></span></b><br />
<b><span style="color: blue;">2. <a href="http://atoziq.blogspot.in/2016/02/what-is-xaml.html" target="_blank">What is XAML?</a></span></b><br />
<b><span style="color: blue;">3. <a href="http://atoziq.blogspot.in/2016/02/what-are-core-wpf-assemblies.html" target="_blank">What are the core WPF assemblies?</a></span></b><br />
<b><span style="color: blue;">4. <a href="http://atoziq.blogspot.in/2016/02/what-is-use-of-systemwindowsmarkup.html" target="_blank">What is the use of "System.Windows.Markup" namespace in WPF?</a></span></b><br />
<b><span style="color: blue;">5. <a href="http://atoziq.blogspot.in/2016/02/which-namespace-provide-classes-for.html" target="_blank">Which namespace provide classes for integration with WPF and Win32?</a></span></b><br />
<b><span style="color: blue;">6. <a href="http://atoziq.blogspot.com/2016/02/what-is-use-of-systemwindowsnavigation.html" target="_blank">What is the use of System.Windows.Navigation namespace in WPF?</a></span></b><br />
<b><span style="color: blue;">7. <a href="http://atoziq.blogspot.in/2016/02/what-is-address-in-wcf-and-how-many.html" target="_blank">What is address in WCF and how many types of transport schemas are there in WCF?</a></span></b><br />
<b><span style="color: blue;">8. <a href="http://atoziq.blogspot.in/2016/02/where-we-can-host-wcf-services.html" target="_blank">Where we can host WCF services?</a></span></b><br />
<b><span style="color: blue;">9. <a href="http://atoziq.blogspot.in/2016/02/what-is-endpoint-in-wcf.html" target="_blank">What is endpoint in WCF?</a></span></b><br />
<b><span style="color: blue;">10. <a href="http://atoziq.blogspot.in/2016/02/how-to-define-service-as-rest-based.html" target="_blank">How to define a service as REST based service in WCF?</a></span></b><br />
<b><span style="color: blue;">10. <a href="http://atoziq.blogspot.in/2016/02/what-is-transport-and-message.html" target="_blank">What is Transport and Message Reliability?</a></span></b><br />
<b><span style="color: blue;">11. <a href="http://atoziq.blogspot.in/2016/02/in-wcf-which-bindings-supports-reliable.html" target="_blank">In WCF which bindings supports the reliable session?</a></span></b><br />
<b><span style="color: blue;">11. <a href="http://atoziq.blogspot.in/2016/02/what-are-tha-advantages-of-hosting-wcf.html" target="_blank">What are the advantages of hosting WCF service in WAS?</a></span></b><br />
<b><span style="color: blue;">12. <a href="http://atoziq.blogspot.in/2016/02/what-is-service-host-factory-in-wcf.html" target="_blank">What is service host factory in WCF?</a></span></b><br />
<b><span style="color: blue;">13. <a href="http://atoziq.blogspot.in/2016/02/how-can-we-use-msmq-bindings-in-wcf.html" target="_blank">How can we use MSMQ bindings in WCF?</a></span></b><br />
<b><span style="color: blue;">14. <a href="http://atoziq.blogspot.in/2016/02/what-is-difference-wcf-and-web-services.html" target="_blank">What is the difference WCF and Web services? </a></span></b><br />
<b><span style="color: blue;">15. <a href="http://atoziq.blogspot.in/2016/02/what-are-major-differences-between.html" target="_blank">What are the major differences between services and Web services? </a></span></b></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-90509931285229083482015-09-25T06:16:00.001-07:002016-03-01T16:31:17.991-08:00Frequently Asked Linux Objective type Questions and Answers pdf<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: blue;">46. On success fork return ______ to parent process ?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>0<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>1<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>parent process id<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>child process Id<br />
Ans: D<br />
<br />
<b><span style="color: blue;">47. Which of the following command kill all the process including shell ?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>kill kill 0<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>kill -9 kill 0<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>kill -s kill 0<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Both B and C<br />
<b>Ans: D</b><br />
<br />
<b><span style="color: blue;">48. Which of the following statement is true ?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>echo $$ return PID of login shell and echo $? return status of last command<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>echo $$ return status of last command and echo $? return PID of login shell<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>echo $$ and echo $? return some integer value of no significance<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>All of the statements are false<br />
<b>Ans: A</b><br />
<br />
<b><span style="color: blue;">49. Priority of the process can be changed using which of the following command ?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>nice<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>chpriority<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>renice<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Not allowed to change process priority<br />
<b>Ans: C</b><br />
<br />
<b><span style="color: blue;">50. In _______ state of a process, the process will be terminated and the information will still be available in the process table.</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>Interruptible<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>Uninterruptible<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>Zombie<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Running<br />
<b>Ans: C</b><br />
<br />
<b><span style="color: blue; font-size: large;">More Questions & Answers:-</span></b><br />
<b><span style="color: blue; font-size: large;"><a href="http://atoziq.blogspot.in/2015/09/50-top-linux-objective-type-questions.html" target="_blank">Page1</a> <a href="http://atoziq.blogspot.in/2015/09/linux-objective-type-questions-and.html" target="_blank">Page2</a> <a href="http://atoziq.blogspot.in/2015/09/linux-multiple-choice-questions-and_24.html" target="_blank">Page3</a> <a href="http://atoziq.blogspot.in/2015/09/basic-linux-multiple-choice-questions.html" target="_blank">Page4</a> <a href="http://atoziq.blogspot.in/2015/09/common-linux-multiple-choice-questions.html" target="_blank">Page5</a> <a href="http://atoziq.blogspot.in/2015/09/freshers-linux-objective-type-questions.html" target="_blank">Page6</a> <a href="http://atoziq.blogspot.in/2015/09/experienced-linux-objective-type.html" target="_blank">Page7</a> <a href="http://atoziq.blogspot.in/2015/09/linux-online-quiz-questions-and-answers.html" target="_blank">Page8</a> <a href="http://atoziq.blogspot.in/2015/09/tricky-linux-objective-type-questions.html" target="_blank">Page9</a> </span></b><br />
<b><span style="color: blue; font-size: large;"><a href="http://atoziq.blogspot.in/2015/09/frequently-asked-linux-objective-type.html" target="_blank">Page10</a></span></b><br />
<br /></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-44809301933245010642015-09-25T06:12:00.000-07:002015-09-25T06:20:29.905-07:00Tricky Linux Objective type Questions and Answers<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: blue;">41. What is ppid(parent process id) of daemon process in Linux ?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>any arbitrary number<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>1<br />
Ans: B<br />
<br />
<b><span style="color: blue;">42. What is context switch?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>Process switches from user mode to kernel mode<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>Process switches from kernel mode to user mode<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>Kernel switches from one process to another process<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>None of these<br />
Ans: C<br />
<br />
<b><span style="color: blue;">43. Maximum number of processes exist in Linux system ?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>32768<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>1024<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>2048<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>16384<br />
Ans: A<br />
<br />
<b><span style="color: blue;">44. Which of the following command keep a process running even after you logout from your shell?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>&<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>nohup<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>bg<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>hup<br />
Ans: B<br />
<br />
<b><span style="color: blue;">45. What is the range of nice number in linux system ? </span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>0 to 19<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>-20 to 19<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>-20 to 0<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>-10 to 10<br />
Ans: B<br />
<br />
<b><span style="color: blue; font-size: large;">More Questions & Answers:-</span></b><br />
<b><span style="color: blue; font-size: large;"><a href="http://atoziq.blogspot.in/2015/09/50-top-linux-objective-type-questions.html" target="_blank">Page1</a> <a href="http://atoziq.blogspot.in/2015/09/linux-objective-type-questions-and.html" target="_blank">Page2</a> <a href="http://atoziq.blogspot.in/2015/09/linux-multiple-choice-questions-and_24.html" target="_blank">Page3</a> <a href="http://atoziq.blogspot.in/2015/09/basic-linux-multiple-choice-questions.html" target="_blank">Page4</a> <a href="http://atoziq.blogspot.in/2015/09/common-linux-multiple-choice-questions.html" target="_blank">Page5</a> <a href="http://atoziq.blogspot.in/2015/09/freshers-linux-objective-type-questions.html" target="_blank">Page6</a> <a href="http://atoziq.blogspot.in/2015/09/experienced-linux-objective-type.html" target="_blank">Page7</a> <a href="http://atoziq.blogspot.in/2015/09/linux-online-quiz-questions-and-answers.html" target="_blank">Page8</a> <a href="http://atoziq.blogspot.in/2015/09/tricky-linux-objective-type-questions.html" target="_blank">Page9</a> </span></b><br />
<b><span style="color: blue; font-size: large;"><a href="http://atoziq.blogspot.in/2015/09/frequently-asked-linux-objective-type.html" target="_blank">Page10</a></span></b></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-39118081128200933832015-09-25T06:07:00.001-07:002015-09-25T06:20:17.340-07:00Linux Online Quiz Questions And Answers<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: blue;">36. Which command is used to execute the last command you have executed?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>!!<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>!-1<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>Both A and B<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Only A<br />
Ans: C<br />
<br />
<b><span style="color: blue;">37. What is the purpose of id command?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>Print effective and real UID<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>Print effective and real GID<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>Print effective and real UID and GID<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>None of these<br />
Ans: C<br />
<br />
<b><span style="color: blue;">38. Which command is used to print the login shell of an user? </span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>echo $SHELL<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>echo $LOGIN<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>echo $LSHELL<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>None of the Above<br />
Ans: A<br />
<br />
<b><span style="color: blue;">39. Which of the following command return the exit status of last command?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>$!<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>$$<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>$?<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>$#<br />
Ans: C<br />
<br />
<b><span style="color: blue;">40. which command is used to print the current working direcotry?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>pwd<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>echo $PWD<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>Both A and B<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Only A<br />
Ans: C<br />
<br />
<b><span style="color: blue; font-size: large;">More Questions & Answers:-</span></b><br />
<b><span style="color: blue; font-size: large;"><a href="http://atoziq.blogspot.in/2015/09/50-top-linux-objective-type-questions.html" target="_blank">Page1</a> <a href="http://atoziq.blogspot.in/2015/09/linux-objective-type-questions-and.html" target="_blank">Page2</a> <a href="http://atoziq.blogspot.in/2015/09/linux-multiple-choice-questions-and_24.html" target="_blank">Page3</a> <a href="http://atoziq.blogspot.in/2015/09/basic-linux-multiple-choice-questions.html" target="_blank">Page4</a> <a href="http://atoziq.blogspot.in/2015/09/common-linux-multiple-choice-questions.html" target="_blank">Page5</a> <a href="http://atoziq.blogspot.in/2015/09/freshers-linux-objective-type-questions.html" target="_blank">Page6</a> <a href="http://atoziq.blogspot.in/2015/09/experienced-linux-objective-type.html" target="_blank">Page7</a> <a href="http://atoziq.blogspot.in/2015/09/linux-online-quiz-questions-and-answers.html" target="_blank">Page8</a> <a href="http://atoziq.blogspot.in/2015/09/tricky-linux-objective-type-questions.html" target="_blank">Page9</a> </span></b><br />
<b><span style="color: blue; font-size: large;"><a href="http://atoziq.blogspot.in/2015/09/frequently-asked-linux-objective-type.html" target="_blank">Page10</a></span></b></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-28756963363345096352015-09-25T06:03:00.000-07:002016-02-16T17:05:57.266-08:00Experienced Linux Objective type Questions and Answers<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: blue;">31. In Linux which of following command do you use to know the purpose of a command?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>which<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>whatis<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>what<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>purpose<br />
<b>Ans: B</b><br />
<br />
<b><span style="color: blue;">32. What is the process id of init process?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>2<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>6<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>4<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>1<br />
<b>Ans: D</b><br />
<br />
<b><span style="color: blue;">33. Suppose I have made some changes in my Php.ini file and I want to restart my Apache server, which of following command should I use?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>sudo service apache2 restart<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>sudo /etc/init.d/apache2 restart<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>Both A and B<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Only A<br />
<b>Ans: C</b><br />
<br />
<b><span style="color: blue;">34. Which command is used to show process hierarchy in tree format?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>ps -tree<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>pstree<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>ps -t<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>none of these<br />
<b>Ans: B</b><br />
<br />
<b><span style="color: blue;">35. Which of the following command is used to see the content of tar(backup.tar) file without extracting it?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>tar -xvf backup.tar<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>tar -svf backup.tar<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>tar -tvf backup.tar<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>none of these<br />
<b>Ans: C</b><br />
<br />
<b><span style="color: blue; font-size: large;">More Questions & Answers:-</span></b><br />
<b><span style="color: blue; font-size: large;"><a href="http://atoziq.blogspot.in/2015/09/50-top-linux-objective-type-questions.html" target="_blank">Page1</a> <a href="http://atoziq.blogspot.in/2015/09/linux-objective-type-questions-and.html" target="_blank">Page2</a> <a href="http://atoziq.blogspot.in/2015/09/linux-multiple-choice-questions-and_24.html" target="_blank">Page3</a> <a href="http://atoziq.blogspot.in/2015/09/basic-linux-multiple-choice-questions.html" target="_blank">Page4</a> <a href="http://atoziq.blogspot.in/2015/09/common-linux-multiple-choice-questions.html" target="_blank">Page5</a> <a href="http://atoziq.blogspot.in/2015/09/freshers-linux-objective-type-questions.html" target="_blank">Page6</a> <a href="http://atoziq.blogspot.in/2015/09/experienced-linux-objective-type.html" target="_blank">Page7</a> <a href="http://atoziq.blogspot.in/2015/09/linux-online-quiz-questions-and-answers.html" target="_blank">Page8</a> <a href="http://atoziq.blogspot.in/2015/09/tricky-linux-objective-type-questions.html" target="_blank">Page9</a> </span></b><br />
<b><span style="color: blue; font-size: large;"><a href="http://atoziq.blogspot.in/2015/09/frequently-asked-linux-objective-type.html" target="_blank">Page10</a></span></b></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-19145422300322716212015-09-25T05:59:00.000-07:002015-09-25T06:20:10.533-07:00Freshers Linux Objective type Questions and Answers<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: blue;">26. Suppose currently I am in /home/sandeep/Downloads/abc. After executing cd ../.., where am I now?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>/home/sandeep<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>/home/sandeep/Downloads<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>/home<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>None of these<br />
Ans: A<br />
<br />
<b><span style="color: blue;">27. Suppose I am in /etc directoy, after executing cd .(single dot), where am I now?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>/etc<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>/(root)<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>/home<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>None of these<br />
Ans: A<br />
<br />
<b><span style="color: blue;">28. what is the purpose of -i in rm -i command? </span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>It will ask for confirmation before every deletion.<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>It just an extra option <br />
Ans: A<br />
<br />
<b><span style="color: blue;">29. mv command can be used to ?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>Move the file to different directory.<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>Renaming a file<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>Both a and b.<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Only a.<br />
Ans: C<br />
<br />
<b><span style="color: blue;">30. Which of the following command is used to display content of a file in octal format?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>octal<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>cat<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>oct<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>od<br />
Ans: D<br />
<br />
<b><span style="color: blue; font-size: large;">More Questions & Answers:-</span></b><br />
<b><span style="color: blue; font-size: large;"><a href="http://atoziq.blogspot.in/2015/09/50-top-linux-objective-type-questions.html" target="_blank">Page1</a> <a href="http://atoziq.blogspot.in/2015/09/linux-objective-type-questions-and.html" target="_blank">Page2</a> <a href="http://atoziq.blogspot.in/2015/09/linux-multiple-choice-questions-and_24.html" target="_blank">Page3</a> <a href="http://atoziq.blogspot.in/2015/09/basic-linux-multiple-choice-questions.html" target="_blank">Page4</a> <a href="http://atoziq.blogspot.in/2015/09/common-linux-multiple-choice-questions.html" target="_blank">Page5</a> <a href="http://atoziq.blogspot.in/2015/09/freshers-linux-objective-type-questions.html" target="_blank">Page6</a> <a href="http://atoziq.blogspot.in/2015/09/experienced-linux-objective-type.html" target="_blank">Page7</a> <a href="http://atoziq.blogspot.in/2015/09/linux-online-quiz-questions-and-answers.html" target="_blank">Page8</a> <a href="http://atoziq.blogspot.in/2015/09/tricky-linux-objective-type-questions.html" target="_blank">Page9</a> <a href="http://atoziq.blogspot.in/2015/09/frequently-asked-linux-objective-type.html" target="_blank">Page10</a></span></b></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0tag:blogger.com,1999:blog-739264544493695252.post-31171712920053524312015-09-25T05:54:00.001-07:002015-09-25T06:19:42.129-07:00Common Linux Multiple Choice Questions And Answers<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: blue;">21. Total no of run levels in a Linux system?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>6<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>7<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>5<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>8<br />
Ans: B<br />
<br />
<b><span style="color: blue;">22. Which command is used to copy entire directory?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>cp -r<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>cp -i<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>cp<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>none of these<br />
Ans: A<br />
<br />
<b><span style="color: blue;">23. Suppose I am in /etc directory and I want to go to my home directory which command should I use?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>cd<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>cd ~<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>Both A and B<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>none of these<br />
Ans: C<br />
<br />
<b><span style="color: blue;">24. Which special character should be avoided during naming a file?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>.(dot)<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>$<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>_(underscore)<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>-(Hyphen)<br />
Ans: D<br />
<br />
<b><span style="color: blue;">25. Which of the following is relative path to /home/sandeep directory?</span></b><br />
A.<span class="Apple-tab-span" style="white-space: pre;"> </span>$ cd Desktop/abc<br />
B.<span class="Apple-tab-span" style="white-space: pre;"> </span>$ cd Downloads/abc<br />
C.<span class="Apple-tab-span" style="white-space: pre;"> </span>Both a and b<br />
D.<span class="Apple-tab-span" style="white-space: pre;"> </span>$ cd /etc<br />
Ans: C<br />
<br />
<b><span style="color: blue; font-size: large;">More Questions & Answers:-</span></b><br />
<b><span style="color: blue; font-size: large;"><a href="http://atoziq.blogspot.in/2015/09/50-top-linux-objective-type-questions.html" target="_blank">Page1</a> <a href="http://atoziq.blogspot.in/2015/09/linux-objective-type-questions-and.html" target="_blank">Page2</a> <a href="http://atoziq.blogspot.in/2015/09/linux-multiple-choice-questions-and_24.html" target="_blank">Page3</a> <a href="http://atoziq.blogspot.in/2015/09/basic-linux-multiple-choice-questions.html" target="_blank">Page4</a> <a href="http://atoziq.blogspot.in/2015/09/common-linux-multiple-choice-questions.html" target="_blank">Page5</a> <a href="http://atoziq.blogspot.in/2015/09/freshers-linux-objective-type-questions.html" target="_blank">Page6</a> <a href="http://atoziq.blogspot.in/2015/09/experienced-linux-objective-type.html" target="_blank">Page7</a> <a href="http://atoziq.blogspot.in/2015/09/linux-online-quiz-questions-and-answers.html" target="_blank">Page8</a> <a href="http://atoziq.blogspot.in/2015/09/tricky-linux-objective-type-questions.html" target="_blank">Page9</a> </span></b><br />
<b><span style="color: blue; font-size: large;"><a href="http://atoziq.blogspot.in/2015/09/frequently-asked-linux-objective-type.html" target="_blank">Page10</a></span></b></div>
Interview Questions and Answers - atozIQhttp://www.blogger.com/profile/12345683411976845383noreply@blogger.com0