<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Interview Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/interview/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/interview/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:33:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Top 10 Interview Question in Laravel 2021?</title>
		<link>https://www.scmgalaxy.com/tutorials/top-10-interview-question-in-laravel-2021/</link>
					<comments>https://www.scmgalaxy.com/tutorials/top-10-interview-question-in-laravel-2021/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Sat, 15 May 2021 12:09:08 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[interview2021]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[laraveldeveloper]]></category>
		<category><![CDATA[laravelengineer]]></category>
		<category><![CDATA[Questions]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6291</guid>

					<description><![CDATA[<p>Q #1) What is Laravel?. Laravel is a free and open-source PHP framework that is utilized to developed wide variety [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/top-10-interview-question-in-laravel-2021/">Top 10 Interview Question in Laravel 2021?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1200/1*Q9Xa0MqAt8ZqoSb_-kPlgg.jpeg" alt=""/></figure>



<p class="wp-block-paragraph" id="0fd6">Q #1) What is Laravel?.</p>



<p class="wp-block-paragraph" id="24ef">Laravel is a free and open-source PHP framework that is utilized to developed wide variety of web applications. Laravel is an accessible language for new programmers because the laravel community provides lots of modules resources are free available. Laravel provides a simple way to authorization logic and control access to resources with a simple ActiveRecord implementation that makes their interaction with databases.</p>



<p class="wp-block-paragraph" id="18ab">Q #2) Define Composer.</p>



<p class="wp-block-paragraph" id="b090">Composer is a dependency manager for php framework. Composer runs through the command line. The main purpose of the composer is to install the dependencies or libraries for an application. Composer help to install required package component whatever you want to install in your application.</p>



<p class="wp-block-paragraph" id="013b">Q #3) What is Routing?</p>



<p class="wp-block-paragraph" id="9775">Route is a way to create request URL of your application, Route is a method of accepting a request and sending it to the relevant function in the controller.</p>



<p class="wp-block-paragraph" id="cbc4">What are the two main routing files in Laravel?</p>



<p class="wp-block-paragraph" id="551f">1. web.php<br>2. api.php</p>



<p class="wp-block-paragraph" id="d303">Q #4) What is a CSRF token?</p>



<p class="wp-block-paragraph" id="787c">Answer: CSRF is an abbreviation for Cross-Site Request Forgery that is generated by the server-side application and transmitted to the client. A CSRF token is a unique value that is generated by the server-side of the application and sent to the client</p>



<p class="wp-block-paragraph" id="e071">CSRF token helps to protect web applications from attacks which force a user to perform an unwanted action (commonly known as CSRF attacks).</p>



<p class="wp-block-paragraph" id="5f0b">Q #5) What is an artisan?</p>



<p class="wp-block-paragraph" id="3426">Artisan is the command-line tool for Laravel to help the developer build the application use while developing your application. You can enter the below command to get all the available commands:</p>



<p class="wp-block-paragraph" id="1ac4">example of commands</p>



<p class="wp-block-paragraph" id="75b8">php artisan make:controller — Make Controller file<br>php artisan make:model</p>



<p class="wp-block-paragraph" id="9066">Q #6) How to put Laravel applications in maintenance mode?</p>



<p class="wp-block-paragraph" id="be0d">php artisan down</p>



<p class="wp-block-paragraph" id="ec77">And can put the application again on live using the below command:</p>



<p class="wp-block-paragraph" id="f8a0">php artisan up</p>



<p class="wp-block-paragraph" id="4fd0">Q #7) How to put Laravel applications in maintenance mode?</p>



<p class="wp-block-paragraph" id="6cc9">What are the default route files in Laravel?</p>



<p class="wp-block-paragraph" id="8ac7">web.php — For registering web routes.<br>api.php — For registering API routes.<br>console.php — For registering closure-based console commands.<br>channel.php — For registering all your event broadcasting channels that your application supports.</p>



<p class="wp-block-paragraph" id="0a93">Q #8) What are seeders in Laravel?</p>



<p class="wp-block-paragraph" id="3161">Seeders in laravel are used to put dummy data in the database tables automatically. After running migrations to create the tables, we can run `php artisan db:seed` to run the seeder to populate the database tables.</p>



<p class="wp-block-paragraph" id="d92d">We can create a new Seeder using the below artisan command:</p>



<p class="wp-block-paragraph" id="fafb">php artisan make:seeder [className]</p>



<p class="wp-block-paragraph" id="578e">Q #9) List out common artisan commands used in Laravel.</p>



<p class="wp-block-paragraph" id="aa76">Laravel supports following artisan commands:</p>



<p class="wp-block-paragraph" id="5e91">PHP artisan down;<br>PHP artisan up;<br>PHP artisan make:controller;<br>PHP artisan make:model;<br>PHP artisan make:migration;<br>PHP artisan make:middleware;</p>



<p class="wp-block-paragraph" id="ae52">Q #10) What is the Latest version of Laravel?</p>



<p class="wp-block-paragraph" id="86c0">Answer: Laravel 8 is the latest version.</p>



<p class="wp-block-paragraph" id="909c">Thanks… <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f44d.png" alt="👍" class="wp-smiley" style="height: 1em; max-height: 1em;" /><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f44d.png" alt="👍" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/top-10-interview-question-in-laravel-2021/">Top 10 Interview Question in Laravel 2021?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/top-10-interview-question-in-laravel-2021/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>DBMS Interview Q&#038;A Part- 2</title>
		<link>https://www.scmgalaxy.com/tutorials/dbms-interview-qa-part-2/</link>
		
		<dc:creator><![CDATA[Chandan Kumar]]></dc:creator>
		<pubDate>Tue, 11 May 2021 05:12:12 +0000</pubDate>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[dbms]]></category>
		<category><![CDATA[Denormalization]]></category>
		<category><![CDATA[Engineers]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Joins]]></category>
		<category><![CDATA[Locks]]></category>
		<category><![CDATA[Primary Key]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Transaction]]></category>
		<category><![CDATA[Trigger]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6166</guid>

					<description><![CDATA[<p>Q1. Can you create a table without using create command ? A. Yes, we can create table with the help [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/dbms-interview-qa-part-2/">DBMS Interview Q&#038;A Part- 2</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h5 class="wp-block-heading">Q1. Can you create a table without using create command ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Yes, we can create table with the help of SELECT INTO statement. It<br>copies content of one table to another table. However, there should be<br>at least one table from where we can copy content.<br>Example :  Copying all columns : select * into new_table from old_table where<br>condition<br>Copying specific column : select col1,col2 into new_table from old_table<br>where condition<br>Creating new empty table : select * into new_table from old_table where 1<br>= 0</p>



<h5 class="wp-block-heading">Q2. What is Denormalization ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> It is the reverse process of Normalization. It is the process of trying to<br>improve the readability of the database by grouping data. Denormalization<br>is also used for speeding up the performance.</p>



<h5 class="wp-block-heading">Q3. What are Joins ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Join clause are used to combine rows from two or more tables,<br>depending upon the columns between them.</p>



<h5 class="wp-block-heading">Q4. What are the different types of Joins ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Different types of Joins are :</p>



<ol class="wp-block-list"><li><strong>INNER JOIN</strong> : It returns all records that are common in both tables.</li><li><strong>LEFT OUTER JOIN</strong> : It returns all records from the left table, and matched records from right table</li><li><strong>RIGHT OUTER JOIN</strong> : It returns all records from the right table, and matched records from left table.</li><li><strong>FULL OUTER JOIN</strong> : It returns all records when there is a match in either left or right table.</li></ol>



<h5 class="wp-block-heading">Q5. Explain Transaction ?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>Transaction refers to the collection of multiple statements, that are<br>responsible for transferring a database from one consistent state to another<br>consistent state.</p>



<h5 class="wp-block-heading">Q6. Explain the role of views in database ?</h5>



<p class="wp-block-paragraph">A.View refers to the virtual table. We can create view using create view<br>statement.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
CREATE VIEW as Select col1
FROM table1
where CONDITION;
</pre></div>


<h5 class="wp-block-heading">Q7. Explain Trigger ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Triggers are defined as special kind of stored programs, which are<br>automatically executed whenever a specific operation occurs in the<br>database server.</p>



<h5 class="wp-block-heading">Q8. What are Locks ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Locking is the mechanism to protect data integrity and ensure data<br>consistency during transactions. Locks are the most common cause of<br>blocked processes. Stronger the Isolation level, more the chances of<br>blocking.</p>



<h5 class="wp-block-heading">Q9. Explain different types of Locks ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Locks are broadly characterized into following types :</p>



<p class="wp-block-paragraph"><strong>Shared Locks</strong> : These locks are acquired by readers during read<br>operations. In other words, these locks exist when two transactions are<br>granted read access. Data updation is not allowed until shared lock is<br>released.<br><strong>Exclusive Locks</strong> : In exclusive lock, data items can be both read as well<br>as written by the transaction. In Exclusive lock, multiple transactions do not<br>modify the same data simultaneously.</p>



<h5 class="wp-block-heading">Q10. What is Super Key ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> An attribute or set of attributes that uniqueness in database is refered to<br>as Super key. It is the superset of Candidate key.</p>



<h5 class="wp-block-heading">Q11. What is Candidate Key ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> A minimal set of attribute/attributes that can be used to uniquely identify<br>a single row in a given relation is refered to as Candidate key.</p>



<h5 class="wp-block-heading">Q12. Explain Primary Key ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> DB Designer selects one of the candidate key as primary key for a<br>relation for the purpose of identification of a tuple uniquely. It is identified<br>during table creation.</p>



<h5 class="wp-block-heading">Q13. What is Composite Key ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> If a primary key has more than one attribute, then it is referred to as<br>Composite key.</p>



<h5 class="wp-block-heading">Q14. Explain Foreign Key ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> A set of attribute/attributes that is used to establish and enforce a link<br>between data in two or more relations.</p>



<h5 class="wp-block-heading">Q15. Can a table have more than one primary key ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> No.</p>



<h5 class="wp-block-heading">Q16. Can We Have NULL Value in Primary Key?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> No.</p>



<h5 class="wp-block-heading">Q17. What are cursors ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> A cursor is a temporary work area created in system memory when a<br>SQL statement is executed. A cursor can hold more than one row, but can<br>process only one row at a time.</p>



<h5 class="wp-block-heading">Q18.<strong>What are the differences between Hash join, Merge join and Nested loops?</strong></h5>



<figure class="wp-block-table"><table><tbody><tr><td class="has-text-align-center" data-align="center"><strong>Hash join</strong></td><td class="has-text-align-center" data-align="center"><strong>Merge join</strong></td><td class="has-text-align-center" data-align="center"><strong>Nested loops</strong></td></tr><tr><td class="has-text-align-center" data-align="center">The hash join is used when you have to join large tables.</td><td class="has-text-align-center" data-align="center">Merge join is used when projections of the joined tables are sorted on the join columns.</td><td class="has-text-align-center" data-align="center">The nested loop consists of an outer loop and an inner loop.</td></tr></tbody></table></figure>



<h5 class="wp-block-heading">Q19. <strong>What do you understand by Proactive, Retroactive and Simultaneous Update</strong> ?</h5>



<ol class="wp-block-list"><li><strong>Proactive Update:</strong> These updates are applied to the database before it becomes effective in the real-world environment.</li><li><strong>Retroactive Update:</strong> These retroactive updates are applied to a database after it becomes effective in the real-world environment.</li><li><strong>Simultaneous Update:</strong> These updates are applied to the database at the same instance of time as it becomes effective in a real-world environment.</li></ol>



<h5 class="wp-block-heading">Q20.<strong>What do you understand by Data Independence?</strong></h5>



<p class="wp-block-paragraph"><strong>A. </strong>When you say an application has data independence, it implies that the application is independent of the storage structure and data access strategies of data.</p>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/dbms-interview-qa-part-2/">DBMS Interview Q&#038;A Part- 2</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>DBMS Interview Q&#038;A Part- 1</title>
		<link>https://www.scmgalaxy.com/tutorials/dbms-interview-qa-part-1/</link>
					<comments>https://www.scmgalaxy.com/tutorials/dbms-interview-qa-part-1/#respond</comments>
		
		<dc:creator><![CDATA[Chandan Kumar]]></dc:creator>
		<pubDate>Mon, 10 May 2021 06:36:50 +0000</pubDate>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[dbms]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Questions]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6147</guid>

					<description><![CDATA[<p>Q. What is Data ? A. Data refers to raw facts and figures that can be recorded. Q. What is [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/dbms-interview-qa-part-1/">DBMS Interview Q&#038;A Part- 1</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h5 class="wp-block-heading">Q. What is Data  ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Data refers to raw facts and figures that can be recorded.</p>



<h5 class="wp-block-heading">Q. What is Database ?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>Database refers to the collection of interrelated and coherent data.</p>



<h5 class="wp-block-heading">Q. Explain DBMS ?</h5>



<p class="wp-block-paragraph" id="block-6dd739f4-3f59-4e01-bc84-3fe42e47a63e"><strong>A.</strong> DBMS stands for Database Management System. It is a software<br>package designed to define, manipulate, retrieve and manage data in<br>database.</p>



<h5 class="wp-block-heading">Q. Why DBMS ?</h5>



<p class="wp-block-paragraph" id="block-be293b80-1ba9-4550-b118-ec6b9d119b99"><strong>A.</strong> To make information easy to access and protected, we use database<br>management systems. DBMS is important because it manages the data<br>efficiently and allow users to perform multiple tasks on it with the ease.</p>



<h5 class="wp-block-heading">Q. What is a database system?</h5>



<p class="wp-block-paragraph" id="block-87aacc1a-6300-4442-ba51-444d3e959c87"><strong>A. </strong>The collection of database and DBMS software together is known as a<br>database system.</p>



<h5 class="wp-block-heading">Q. What do you mean by Data Modelling ?</h5>



<p class="wp-block-paragraph" id="block-046c18f7-6254-4c7b-8d1d-520b0a082bab"><strong>A.</strong> Data Modelling is the set of conceptual tools for describing data<br>relationship, data semantics, and consistency constraints. Different data<br>models are : Network model, Relational model, Object Oriented model, ER<br>model, and more.</p>



<h5 class="wp-block-heading">Q. Explain RDBMS ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> RDBMS stands for Relational Database Management System. It<br>arranges information into allied rows and columns. RDMS is an information<br>management system which is oriented on a data model. RDBMS Example<br>systems are SQL Server, Oracle, MySQL, MariaDB and SQLite.</p>



<h5 class="wp-block-heading">Q. Explain Abstraction of Data, with reference to DBMS ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Data Abstraction refers to the process of hiding background details from<br>user.</p>



<h5 class="wp-block-heading">Q. Explain the 3 L’s of Data Abstraction ?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>It refers to three levels of abstraction. They are :</p>



<ol class="wp-block-list"><li><strong>Physical Level </strong>: It is lowest level of abstraction. It describes how data is<br>actually stored. It also describes complex data structure in detail.</li><li><strong>Logical Level</strong> : It describes what data get stored in the database and what are the relationships among them.</li><li><strong>View Level </strong>: It is the highest level of data abstraction that only describes a part of database indirectly</li></ol>



<h5 class="wp-block-heading">Q. What is Database Schema ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Schema refers to the overall structure of database without data values.</p>



<h5 class="wp-block-heading">Q. What do you mean by transparent DBMS?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>The transparent DBMS is a type of DBMS which keeps its physical<br>structure hidden from users.</p>



<h5 class="wp-block-heading">Q. Explain ER Model ?</h5>



<p class="wp-block-paragraph">A. This model is based on the perception of real world that consists of<br>collection of basic entities and relationship among these objects. It is the<br>graphical representation of the database.</p>



<h5 class="wp-block-heading">Q. What do you understand by Data Independency ?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>It refers to the capacity to change data at one level without affecting next<br>higher level is called Data Independence. It is of two types : Physical DI,<br>Logical DI.<br><strong>Physical DI :</strong> It indicates that physical storage of device could be changed<br>without affecting conceptual view.<br><strong>Logical DI :</strong> It indicates that conceptual schema can be changed without<br>affecting existing external schema.</p>



<h5 class="wp-block-heading">Q. What is a Database Language ?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>Database Language is a medium by which we can interact with the<br>database system through some set of commands. These commands are<br>structured.</p>



<h5 class="wp-block-heading">Q. What is a Tuple ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> A single row of a table, which contains a single record for that relation is<br>called a tuple.</p>



<h5 class="wp-block-heading">Q. Explain degree and Cardinality ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Degree is the total number of attributes in a relation or table and<br>cardinality is total number of tuples/rows in a relation/table.</p>



<h5 class="wp-block-heading">Q. What is a relation in DBMS ?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>A database relation refers to an individual table in a relational database.<br>A table is a relation because it stores the relation between data in its<br>column-row format.</p>



<h5 class="wp-block-heading">Q. What is the role of DML Compiler ?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>It translates DML statements in a query language into low-level<br>instructions that the query evaluation engine can easily understand.</p>



<h5 class="wp-block-heading">Q. Explain me the role of using clause for queries ?</h5>



<p class="wp-block-paragraph">A. Clause enables you to specify conditions that filters the results as per<br>the requirement. Some of the most commonly used clauses are : having,<br>where etc.</p>



<h5 class="wp-block-heading">Q. What is a Query ?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>Query is a statement that is used for the extraction of data from<br>database.<br>For example – select * from table1 is a query</p>



<h5 class="wp-block-heading">Q. What is Subquery ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Subquery is a query within query.<br>For example – select * from students where marks = ( select max(marks)<br>from students);</p>



<h5 class="wp-block-heading">Q. Explain BCNF ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> BCNF is Boyce-Codd Normal Form. It is considered to be the advanced<br>version of 3 NF. Hence it is also refered to as 3.5 NF. A relation is said to<br>be in BCNF, if it satisfies following rules :</p>



<ol class="wp-block-list"><li>It is in 3NF.</li><li>For every functional dependency P->Q, P should be the super key of the table.</li></ol>



<h5 class="wp-block-heading">Q. What are Stored Procedures ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Stored Procedure refers to the set of Structured Query Language(SQL)<br>statements stored in a relational database management system as a group.<br>It can further be reused and shared by multiple programs. It provides a<br>layer of security between a user interface and database.</p>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/dbms-interview-qa-part-1/">DBMS Interview Q&#038;A Part- 1</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/dbms-interview-qa-part-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>General SCM Interview Questions</title>
		<link>https://www.scmgalaxy.com/tutorials/integration-of-cm-and-case-tools/</link>
					<comments>https://www.scmgalaxy.com/tutorials/integration-of-cm-and-case-tools/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 08 Jan 2018 07:42:39 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Build Interview]]></category>
		<category><![CDATA[Case]]></category>
		<category><![CDATA[CASE Tools]]></category>
		<category><![CDATA[CM]]></category>
		<category><![CDATA[Configuration Management]]></category>
		<category><![CDATA[Integration]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Perforce]]></category>
		<category><![CDATA[SCM Interview Questions]]></category>
		<category><![CDATA[Software Configuration Management Interview Questions]]></category>
		<category><![CDATA[Tools]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4497</guid>

					<description><![CDATA[<p>The previous chapters outlined the state of CM technology from the standpoint of a spectrum of concepts underlying automated CM, [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/integration-of-cm-and-case-tools/">General SCM Interview Questions</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The previous chapters outlined the state of CM technology from the standpoint of a spectrum of concepts underlying automated CM, and from the standpoint of the reflection of some of these concepts in commercial CM products. Clearly, no CM product supports all CM concepts; similarly, not all CM concepts are necessary in the support of all possible end-user requirements. That is, different CM tools (and the concepts which underlie these tools) may be required by different organizations or projects, or within projects at different  phases of the software development life cycle. This observation, coupled with the observed,continuing industry effort to adopt computer-aided software engineering (CASE) tools, leads us to conclude that integration is key to providing automated CM support in software development environments.<br />
In this chapter we define what we mean by integration by way of a three-level model of integration. We illustrate where CM integration fits into this three-level model.  e then describe the advantages and disadvantages of current approaches to achieving integration in  software development environments. We close with a brief discussion on the relationship between future integration technology and the three levels of integration.</p>
<p><strong>CM Services in Software Environments: A Question of Integration</strong></p>
<p>There is no concensus regarding where CM services should reside in software environment architectures, despite the diversity of approaches that have been explored. For example, CM services have been offered via:</p>
<p><strong>· Tools such as RCS, SCCS, CCC.<br />
· Operating system extensions at the file-system level such as DSEE and NSE.<br />
· Shared data models such as in the CIS specifications [18] and the PCTE PACT [53] environment.</strong></p>
<p>A further complication is the emergence of a robust CASE tool industry, wherein many popular CASE tools provide their own tool-specific repository and CM services. As a result, CM functions are increasingly provided by, and distributed across, several CASE tools in an environment.<br />
We have found it useful to think of integration in terms of a three-level model. This model, illustrated in Figure 5-1, corresponds to the ANSI/SPARC [48] three-schema  pproach used to describe database architectures. A useful intuition is that this correspondence is more than accidental. The bottom level of integration, called &#8220;mechanism&#8221; integration, corresponds to the ANSI/SPARC physical schema level. Mechanism integration addresses the implementation aspects of software integration, including, but not limited to: software interfaces provided by the environment infrastructure, e.g., operating system or environment framework interfaces;</p>
<p>software interfaces provided by individual tools in the environment; and architectural aspects of the tools, such as process structure (e.g., client/server) and data management structure (derivers, data dictionary, database). In the case of CM, mechanism integration can refer to integration with CM systems such as SCCS, RCS, CCC and DSEE; and CM implementation aspects such as transparent repositories and other operating-systems level CM services.</p>
<p>The middle level of integration, called &#8220;services&#8221; integration, corresponds to the ANSI/SPARC logical schema level. Services refers to the high-level functions provided by tools, and integration at this level can be regarded as the specification of how services can be related in a coherent fashion. In the case of CM, these services refer to elements of the spectrum of concepts discussed in chapter 3, e.g., workspaces and transactions, and services integration constitutes a kind of unified model of CM services.</p>
<p>The top level of integration, called &#8220;process&#8221; integration, corresponds to the ANSI/SPARC external schema (also called &#8220;end-user&#8221;) level. Process integration can be regarded as a kind of process specification for how software will be developed; this specification can define a view of the process from many perspectives, spanning individual roles through larger organizational pespectives. In the case of CM, process integration refers to policies and procedures for carrying out CM activities.</p>
<p>Integration occurs within each of these levels of integration; thus, mechanisms are inte- 34 ATR grated with mechanisms, services with services, and process elements with process elements. There are also relationships that span the levels. The relationship between the mechanism level and the services level is an implementation relationship: a CM concept in  he services layer may be implemented by different tools in the mechanism level, and conversely, a single mechanism may implement more than one CM concept. The relationship between the services level and the process level is a process adaptation relationship: different CM services may be combined, and tuned, to support different process requirements.</p>
<p><a href="http://community.scmgalaxy.com/action/file/download?file_guid=1035"><img decoding="async" src="http://community.scmgalaxy.com/mod/file/thumbnail.php?file_guid=1035&amp;size=large" alt="image" /></a></p>
<p><strong>This three-level model provides</strong> a working context for understanding integration. For the moment, however, existing integration technology does not match exactly this somewhat idealized model of integration. For example, many services provided by CASE tools (including CM) embed process constraints that should logically be separate, i.e., reside in the process level. Similarly, tool services are often closely coupled to particular implementation techniques.</p>
<p>The level of adaptability required of integrating CM—both in terms of adaptability for projectspecific requirements as well as adaptability to multiple underlying CM<br />
implementations—pushes the limits of available environment integration techniques. The following sections describe the current state of integration technology and its limitations. The next chapter discusses how future generation integration technology can address these shortcomings.</p>
<p><strong>Reference: </strong><br />
The State of Automated Configuration Management.<br />
A. Brown, S. Dart, P. Feiler, K. Wallnau</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/integration-of-cm-and-case-tools/">General SCM Interview Questions</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/integration-of-cm-and-case-tools/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Git Interview Questions and Answer</title>
		<link>https://www.scmgalaxy.com/tutorials/git-interview-questions-and-answer/</link>
					<comments>https://www.scmgalaxy.com/tutorials/git-interview-questions-and-answer/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 19 Apr 2017 20:10:39 +0000</pubDate>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Answer]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Git FAQs]]></category>
		<category><![CDATA[Git Interview]]></category>
		<category><![CDATA[Git Interview Q&A]]></category>
		<category><![CDATA[Git Interview Questions and Answer]]></category>
		<category><![CDATA[Git Job Interview]]></category>
		<category><![CDATA[Git Questions]]></category>
		<category><![CDATA[Git Questions and Answer]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[List of Git Interview Questions and Answer]]></category>
		<category><![CDATA[Questions]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2017/04/19/git-interview-questions-and-answer/</guid>

					<description><![CDATA[<p>Q1. What is GIT? Git is a distributed version control system and source code management (SCM) system with focus to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/git-interview-questions-and-answer/">Git Interview Questions and Answer</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3><img fetchpriority="high" decoding="async" class="aligncenter wp-image-2939 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/04/git-interview-questions-and.png" alt="git-interview-questions-and-answer" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/04/git-interview-questions-and.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/04/git-interview-questions-and-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></h3>
<h3>Q1. What is GIT?</h3>
<p>Git is a distributed version control system and source code management (SCM) system with focus to handle small and large projects source code versions in the local repository with speed and efficiency. It is free and open source and its one of widly used versioning tools used ever worldwide.</p>
<hr />
<h3>Q2. What do you understant the repository in Git?</h3>
<p>A repository in git, consists of .git directory which contains the each source code commited in form of objects created using SHA1 algorithms. A .git directry where git keeps all of its metadata for the source code in objects forms. It also contains the git configuration file, breanch reference and staging state of the work space.</p>
<hr />
<h3>Q. What is the command you can use to write a commit message?</h3>
<p>The command that is used to write a commit message is “git commit –m&#8221;this is reason for commit&#8221;.  The –a on the command line instructs git to commit the new content of all tracked files that have been modified. You can use &#8220;git add &lt;file&gt;&#8221; before git commit –a if new files need to be committed for the first time.</p>
<p>In nutshell, any new changes has to added from working directory to stageing area and then commit from staging area to reposiory. Please refer the image for the same as below;</p>
<hr />
<h3>Q. What is the difference between GIT and SVN?</h3>
<p>The difference between GIT and SVN is</p>
<ol>
<li>Git is less preferred for handling extremely large files or frequently changing binary files while SVN can handle multiple projects stored in the same repository.</li>
<li>GIT does not support ‘commits’ across multiple branches or tags.  Subversion allows the creation of folders at any location in the repository layout.</li>
<li>Gits are unchangeable, while Subversion allows committers to treat a tag as a branch and to create multiple revisions under a tag root.</li>
</ol>
<hr />
<h3>Q. What are the advantages of using GIT?</h3>
<ol>
<li>Data redundancy and replication</li>
<li>High availability</li>
<li>Only one.git directory per repository</li>
<li>Superior disk utilization and network performance</li>
<li>Collaboration friendly</li>
<li>Any sort of projects can use GIT</li>
</ol>
<hr />
<h3>Q. What language is used in GIT?</h3>
<p>GIT is fast, and ‘C’ language makes this possible by reducing the overhead of runtimes associated with higher languages.</p>
<hr />
<h3>Q. What is the function of ‘GIT PUSH’ in GIT?</h3>
<p>‘GIT PUSH’ updates remote refs along with associated objects.</p>
<hr />
<h3>Q. Why GIT better than Subversion?</h3>
<p>GIT is an open source version control system; it will allow you to run ‘versions’ of a project, which show the changes that were made to the code overtime also it allows you keep the backtrack if necessary and undo those changes.  Multiple developers can checkout, and upload changes and each change can then be attributed to a specific developer.</p>
<hr />
<h3>Q. What is “Staging Area” or “Index” in GIT?</h3>
<p>Before completing the commits, it can be formatted and reviewed in an intermediate area known as ‘Staging Area’ or ‘Index’.</p>
<hr />
<h3>Q. What is GIT stash?</h3>
<p>GIT stash takes the current state of the working directory and index and puts in on the stack for later and gives you back a clean working directory.  So in case if you are in the middle of something and need to jump over to the other job, and at the same time you don’t want to lose your current edits then you can use GIT stash.</p>
<h3>Q. What is GIT stash drop?</h3>
<p>When you are done with the stashed item or want to remove it from the list, run the git ‘stash drop’ command.  It will remove the last added stash item by default, and it can also remove a specific item if you include as an argument.</p>
<hr />
<h3>Q. How will you know in GIT if a branch has been already merged into master?</h3>
<p>Git branch—merged lists the branches that have been merged into the current branch</p>
<p>Git branch—no merged lists the branches that have not been merged</p>
<hr />
<h3>Q. is the function of git clone?</h3>
<p>The git clone command creates a copy of an existing Git repository.  To get the copy of a central repository, ‘cloning’  is the most common way used by programmers.</p>
<hr />
<h3>Q. What is the function of ‘git config’?</h3>
<p>The ‘git config’ command is a convenient way to set configuration options for your Git installation.  Behaviour of a repository, user info, preferences etc. can be defined through this command.</p>
<hr />
<h3>Q. What does commit object contain?</h3>
<ol>
<li>A set of files, representing the state of a project at a given point of time</li>
<li>Reference to parent commit objects</li>
<li>An SHAI name, a 40 character string that uniquely identifies the commit object.</li>
</ol>
<hr />
<h3>Q. How can you create a repository in Git?</h3>
<p>In Git, to create a repository, create a directory for the project if it does not exist, and then run command “git init”. By running this command .git directory will be created in the project directory, the directory does not need to be empty.</p>
<hr />
<h3>Q. What is ‘head’ in git and how many heads can be created in a repository?</h3>
<p>A ‘head’ is simply a reference to a commit object. In every repository, there is a default head referred as “Master”.  A repository can contain any number of heads.</p>
<hr />
<h3>Q. What is the purpose of branching in GIT?</h3>
<p>The purpose of branching in GIT is that you can create your own branch and jump between those branches. It will allow you to go to your previous work keeping your recent work intact.</p>
<hr />
<h3>Q. What is the common branching pattern in GIT?</h3>
<p>The common way of creating branch in GIT is to maintain one as “Main“</p>
<p>branch and create another branch to implement new features. This pattern is particularly useful when there are multiple developers working on a single project.</p>
<hr />
<h3>Q. How can you bring a new feature in the main branch?</h3>
<p>To bring a new feature in the main branch, you can use a command “git merge” or “git pull command”.</p>
<hr />
<h3>Q. What is a ‘conflict’ in git?</h3>
<p>A ‘conflict’ arises when the commit that has to be merged has some change in one place, and the current commit also has a change at the same place. Git will not be able to predict which change should take precedence.</p>
<hr />
<h3>Q. How can conflict in git resolved?</h3>
<p>To resolve the conflict in git, edit the files to fix the conflicting changes and then add the resolved files by running “git add” after that to commit the repaired merge,  run “git commit”.  Git remembers that you are in the middle of a merger, so it sets the parents of the commit correctly.</p>
<hr />
<h3>Q. To delete a branch what is the command that is used?</h3>
<p>Once your development branch is merged into the main branch, you don’t need development branch.  To delete a branch use, the command “git branch –d [head]”.</p>
<hr />
<h3>Q. What is another option for merging in git?</h3>
<p>“Rebasing” is an alternative to merging in git.</p>
<hr />
<h3>Q. What is the syntax for “Rebasing” in Git?</h3>
<p>The syntax used for rebase is “git rebase [new-commit] “</p>
<hr />
<h3>Q. What is the difference between ‘git remote’ and ‘git clone’?</h3>
<p>‘git remote add’  just creates an entry in your git config that specifies a name for a particular URL.  While, ‘git clone’ creates a new git repository by copying and existing one located at the URI.</p>
<hr />
<h3>Q. What is GIT version control?</h3>
<p>With the help of GIT version control, you can track the history of a collection of files and includes the functionality to revert the collection of files to another version.  Each version captures a snapshot of the file system at a certain point of time. A collection of files and their complete history are stored in a repository.</p>
<hr />
<h3>Q. Mention some of the best graphical GIT client for LINUX?</h3>
<p>Some of the best GIT client for LINUX is</p>
<ol>
<li>Git Cola</li>
<li>Git-g</li>
<li>Smart git</li>
<li>Giggle</li>
<li>Git GUI</li>
<li>qGit</li>
</ol>
<hr />
<h3>Q. What is Subgit? Why to use Subgit?</h3>
<p>‘Subgit’ is a tool for a smooth, stress-free SVN to Git migration.  Subgit is a solution for a company -wide migration from SVN to Git that is:</p>
<p>a)      It is much better than git-svn</p>
<p>b)      No requirement to change the infrastructure that is already placed</p>
<p>c)       Allows to use all git and all sub-version features</p>
<p>d)      Provides genuine stress –free migration experience.</p>
<hr />
<h3>Q. What is the function of ‘git diff ’ in git?</h3>
<p>‘git diff ’ shows the changes between commits, commit and working tree etc.</p>
<hr />
<h3>Q. What is ‘git status’ is used for?</h3>
<p>As ‘Git Status’ shows you the difference between the working directory and the index, it is helpful in understanding a git more comprehensively.</p>
<hr />
<h3>Q. What is the difference between the ‘git diff ’and ‘git status’?</h3>
<p>‘git diff’ is similar to ‘git status’, but it shows the differences between various commits and also between the working directory and index.</p>
<hr />
<h3>Q. What is the function of ‘git checkout’ in git?</h3>
<p>A ‘git checkout’ command is used to update directories or specific files in your working tree with those from another branch without merging it in the whole branch.</p>
<hr />
<h3>Q. What is the function of ‘git rm’?</h3>
<p>To remove the file from the staging area and also off your disk ‘git rm’ is used.</p>
<hr />
<h3>Q. What is the function of ‘git stash apply’?</h3>
<p>When you want to continue working where you have left your work, ‘git stash apply’ command is used to bring back the saved changes onto the working directory.</p>
<hr />
<h3>Q. What is the use of ‘git log’?</h3>
<p>To find specific commits in your project history- by author, date, content or history ‘git log’ is used.</p>
<hr />
<h3>Q. What is ‘git add’ is used for?</h3>
<p>‘git add’ adds file changes in your existing directory to your index.</p>
<hr />
<h3>Q. What is the function of ‘git reset’?</h3>
<p>The function of ‘Git Reset’ is to reset your index as well as the working directory to the state of your last commit.</p>
<hr />
<h3>Q. What is git Is-tree?</h3>
<p>‘git Is-tree’ represents a tree object including the mode and the name of each item and the SHA-1 value of the blob or the tree.</p>
<hr />
<h3>Q. How git instaweb is used?</h3>
<p>‘Git Instaweb’ automatically directs a web browser and runs webserver with an interface into your local repository.</p>
<hr />
<h3>Q. What does ‘hooks’ consist of in git?</h3>
<p>This directory consists of Shell scripts which are activated after running the corresponding Git commands.  For example, git will try to execute the post-commit script after you run a commit.</p>
<hr />
<h3>Q. Explain what is commit message?</h3>
<p>Commit message is a feature of git which appears when you commit a change. Git provides you a text editor where you can enter the modifications made in commits.</p>
<hr />
<h3>Q. How can you fix a broken commit?</h3>
<p>To fix any broken commit, you will use the command “git commit—amend”. By running this command, you can fix the broken commit message in the editor.</p>
<hr />
<h3>Q. Why is it advisable to create an additional commit rather than amending an existing commit?</h3>
<p>There are couple of reason</p>
<ol>
<li>The amend operation will destroy the state that was previously saved in a commit.  If it’s just the commit message being changed then that’s not an issue.  But if the contents are being amended then chances of eliminating something important remains more.</li>
<li>Abusing “git commit- amend” can cause a small commit to grow and acquire unrelated changes.</li>
</ol>
<hr />
<h3>Q. What is ‘bare repository’ in GIT?</h3>
<p>To co-ordinate with the distributed development and developers team, especially when you are working on a project from multiple computers ‘Bare Repository’ is used. A bare repository comprises of a version history of your code.</p>
<hr />
<h3>Q. How do you revert a commit that has already been pushed and made public?</h3>
<p>One or more commits can be reverted through the use of <em>git revert</em>. This command, in essence, creates a new commit with patches that cancel out the changes introduced in specific commits. In case the commit that needs to be reverted has already been published or changing the repository history is not an option, <em>git revert</em> can be used to revert commits. Running the following command will revert the last two commits:</p>
<p>git revert HEAD~2..HEAD</p>
<p>Alternatively, one can always checkout the state of a particular commit from the past, and commit it anew.</p>
<hr />
<h3>Q. How do you squash last N commits into a single commit?</h3>
<p>Squashing multiple commits into a single commit will overwrite history, and should be done with caution. However, this is useful when working in feature branches. To squash the last N commits of the current branch, run the following command (with {N} replaced with the number of commits that you want to squash):</p>
<p>git rebase -i HEAD~{N}</p>
<p>Upon running this command, an editor will open with a list of these N commit messages, one per line. Each of these lines will begin with the word “pick”. Replacing “pick” with “squash” or “s” will tell Git to combine the commit with the commit before it. To combine all N commits into one, set every commit in the list to be squash except the first one. Upon exiting the editor, and if no conflict arises, <em>git rebase</em> will allow you to create a new commit message for the new combined commit.</p>
<hr />
<h3>Q. How do you find a list of files that has changed in a particular commit?</h3>
<p>git diff-tree -r {hash}</p>
<p>Given the commit hash, this will list all the files that were changed or added in that commit. The <em>-r</em> flag makes the command list individual files, rather than collapsing them into root directory names only.</p>
<p>The output will also include some extra information, which can be easily suppressed by including a couple of flags:</p>
<p>git diff-tree –no-commit-id –name-only -r {hash}</p>
<p>Here <em>–no-commit-id</em> will supress the commit hashes from appearing in the output, and <em>–name-only</em> will only print the file names, instead of their paths.</p>
<hr />
<h3>Q. How do you setup a script to run every time a repository receives new commits through push?</h3>
<p>To configure a script to run every time a repository receives new commits through push, one needs to define either a pre-receive, update, or a post-receive hook depending on when exactly the script needs to be triggered.</p>
<p>Pre-receive hook in the destination repository is invoked when commits are pushed to it. Any script bound to this hook will be executed before any references are updated. This is a useful hook to run scripts that help enforce development policies.</p>
<p>Update hook works in a similar manner to pre-receive hook, and is also triggered before any updates are actually made. However, the update hook is called once for every commit that has been pushed to the destination repository.</p>
<p>Finally, post-receive hook in the repository is invoked after the updates have been accepted into the destination repository. This is an ideal place to configure simple deployment scripts, invoke some continuous integration systems, dispatch notification emails to repository maintainers, etc.</p>
<p>Hooks are local to every Git repository and are not versioned. Scripts can either be created within the hooks directory inside the “.git” directory, or they can be created elsewhere and links to those scripts can be placed within the directory.</p>
<hr />
<h3>Q. What is git bisect? How can you use it to determine the source of a (regression) bug?</h3>
<p>Git provides a rather efficient mechanism to find bad commits. Instead of making the user try out every single commit to find out the first one that introduced some particular issue into the code, <em>git bisect</em> allows the user to perform a sort of binary search on the entire history of a repository.</p>
<p>By issuing the command <em>git bisect start</em>, the repository enters bisect mode. After this, all you have to do is identify a bad and a good commit:</p>
<p>git bisect bad # marks the current version as bad</p>
<p>git bisect good {hash or tag} # marks the given hash or tag as good, ideally of some earlier commit</p>
<p>Once this is done, Git will then have a range of commits that it needs to explore. At every step, it will checkout a certain commit from this range, and require you to identify it as good or bad. After which the range will be effectively halved, and the whole search will require a lot less number of steps than the actual number of commits involved in the range. Once the first bad commit has been found, or the bisect mode needs to be ended, the following command can be used to exit the mode and reset the bisection state:</p>
<p>git bisect reset</p>
<hr />
<h3>Q. What are the different ways you can refer to a commit?</h3>
<p>In Git each commit is given a unique hash. These hashes can be used to identify the corresponding commits in various scenarios (such as while trying to checkout a particular state of the code using the <em>git checkout {hash}</em> command).</p>
<p>Additionally, Git also maintains a number of aliases to certain commits, known as refs. Also, every tag that you create in the repository effectively becomes a ref (and that is exactly why you can use tags instead of commit hashes in various git commands). Git also maintains a number of special aliases that change based on the state of the repository, such as HEAD, FETCH_HEAD, MERGE_HEAD, etc.</p>
<p>Git also allows commits to be referred as relative to one another. For example, HEAD~1 refers to the commit parent to HEAD, HEAD~2 refers to the grandparent of HEAD, and so on. In case of merge commits, where the commit has two parents, ^ can be used to select one of the two parents, e.g. HEAD^2 can be used to follow the second parent.</p>
<p>And finally, refspecs. These are used to map local and remote branches together. However, these can be used to refer to commits that reside on remote branches allowing one to control and manipulate them from a local Git environment.</p>
<hr />
<h3>Q. What is git rebase and how can it be used to resolve conflicts in a feature branch before merge?</h3>
<p>In simple words, <em>git rebase</em> allows one to move the first commit of a branch to a new starting location. For example, if a feature branch was created from master, and since then the master branch has received new commits, <em>git rebase</em> can be used to move the feature branch to the tip of master. The command effectively will replay the changes made in the feature branch at the tip of master, allowing conflicts to be resolved in the process. When done with care, this will allow the feature branch to be merged into master with relative ease and sometimes as a simple fast-forward operation.</p>
<hr />
<h3>Q. How do you configure a Git repository to run code sanity checking tools right before making commits, and preventing them if the test fails?</h3>
<p>This can be done with a simple script bound to the pre-commit hook of the repository. The pre-commit hook is triggered right before a commit is made, even before you are required to enter a commit message. In this script one can run other tools, such as linters and perform sanity checks on the changes being committed into the repository. For example, the following script:</p>
<p>#!/bin/sh<br />
files=$(git diff –cached –name-only –diff-filter=ACM | grep ‘.go$’)<br />
if [ -z files ]; then<br />
exit 0<br />
fi<br />
unfmtd=$(gofmt -l $files)<br />
if [ -z unfmtd ]; then<br />
exit 0<br />
fi<br />
echo “Some .go files are not fmt’d”<br />
exit 1</p>
<p>… checks to see if any .go file that is about to be commited needs to be passed through the standard Go source code formatting tool <em>gofmt</em>. By exiting with a non-zero status, the script effectively prevents the commit from being applied to the repository.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/git-interview-questions-and-answer/">Git Interview Questions and Answer</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/git-interview-questions-and-answer/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Top 20 DevOps Questions you must prepare before Interview &#124; scmGalaxy</title>
		<link>https://www.scmgalaxy.com/tutorials/20-devops-questions-you-must-prepare-before-interview/</link>
					<comments>https://www.scmgalaxy.com/tutorials/20-devops-questions-you-must-prepare-before-interview/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 23 Feb 2017 07:56:56 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Devops]]></category>
		<category><![CDATA[DevOps Interview]]></category>
		<category><![CDATA[DevOps Interview Questions]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[List of DevOps Interview Questions]]></category>
		<category><![CDATA[Most Asked DevOps Interview Questions]]></category>
		<category><![CDATA[Popular DevOps Interview Questions]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Top DevOps Interview Questions]]></category>
		<category><![CDATA[Top DevOps Questions]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2017/02/23/20-devops-questions-you-must-prepare-before-interview/</guid>

					<description><![CDATA[<p>What do you understand about DevOps? Can you please define it in your terminologies? What are the ways, DevOps will [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-devops-questions-you-must-prepare-before-interview/">Top 20 DevOps Questions you must prepare before Interview | scmGalaxy</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h4><img decoding="async" class="aligncenter wp-image-2998 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/02/devops-interview-questions.png" alt="devops-interview-questions" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/02/devops-interview-questions.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/02/devops-interview-questions-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></h4>
<ol>
<li>
<h4>What do you understand about DevOps? Can you please define it in your terminologies?</h4>
</li>
<li>
<h4>What are the ways, DevOps will help the Software Projects and Team?</h4>
</li>
<li>
<h4>What is Continuous Integration? Share your approach which you applied in your projects in order to implement CI.</h4>
</li>
<li>
<h4>What is difference between Continuous Delivery and Continuous Deployment?</h4>
</li>
<li>
<h4>How Jenkins will help to implement CI and what are the capabilities what Jenkins has so we call Jenkins is a CI tool?</h4>
</li>
<li>
<h4>How is DevOps different from Agile / SDLC?</h4>
</li>
<li>
<h4>What are the advantages of DevOps for the organization?</h4>
</li>
<li>
<h4>Whether DevOps can be implemented only by DevOps Engineer in a project? If not, Why we should hire you?</h4>
</li>
<li>
<h4>How would you deploy a software to 5000 systems? Do you know how you would go about large-scale deployments?</h4>
</li>
<li>
<h4>How would you trace a binary deployment back to the source code ? How would you structure such a build ?How do you plan capacity for your CI/CD servers ?</h4>
</li>
<li>
<h4>Which are the top DevOps tools? Which tools have you worked on? How do all these tools work together?</h4>
</li>
<li>
<h4>Explain your understanding and expertise on both the software development side and the technical operations side of an organization you have worked with in the past.</h4>
</li>
<li>
<h4>What is agile development and Scrum ?</h4>
</li>
<li>
<h4>Can we consider DevOps as an agile methodology ?</h4>
</li>
<li>
<h4>What is DevOps engineer&#8217;s duty with regards to Agile development ?</h4>
</li>
<li>
<h4>How people communicate or the tools that you choose to deploy?</h4>
</li>
<li>
<h4>How would you make software deployable?</h4>
</li>
<li>
<h4>How do you manage dependencies ?</h4>
</li>
<li>
<h4>What are the branching strategy you follow and why?</h4>
</li>
<li>
<h4>Discuss your experience building bridges between IT Ops, QA and development.</h4>
</li>
</ol>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-devops-questions-you-must-prepare-before-interview/">Top 20 DevOps Questions you must prepare before Interview | scmGalaxy</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/20-devops-questions-you-must-prepare-before-interview/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Top 25 TFS Interview Questions and Answers</title>
		<link>https://www.scmgalaxy.com/tutorials/tfs-interview-questions-and-answers/</link>
					<comments>https://www.scmgalaxy.com/tutorials/tfs-interview-questions-and-answers/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 01 Jul 2016 09:51:02 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Advanced TFS Interview Questions And Answers]]></category>
		<category><![CDATA[Answers]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Most asked TFS Interview Questions]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Team Foundation Server]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[TFS Interview]]></category>
		<category><![CDATA[TFS Interview Q&A]]></category>
		<category><![CDATA[TFS Interview Questions]]></category>
		<category><![CDATA[TFS Interview Questions and Answers]]></category>
		<category><![CDATA[TFS interview questions for developers]]></category>
		<category><![CDATA[Top Interview Questions TFS]]></category>
		<category><![CDATA[Top TFS Interview Questions and Answers]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2016/07/01/tfs-interview-questions-and-answers/</guid>

					<description><![CDATA[<p>TFS Interview Questions 1) What is Team  Foundation Server? What does it cover – version control? build processes? bug tracking? [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tfs-interview-questions-and-answers/">Top 25 TFS Interview Questions and Answers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2><img decoding="async" class="aligncenter wp-image-3186 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2016/07/tfs-interview-questions-and.png" alt="tfs-interview-questions-and-answers" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2016/07/tfs-interview-questions-and.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2016/07/tfs-interview-questions-and-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></h2>
<h2 style="box-sizing: border-box; font-family: 'Open Sans'; font-weight: 400; line-height: 1.35em; margin-top: 20px; margin-bottom: 10px; font-size: 22px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; color: #474747; text-align: justify;">TFS Interview Questions</h2>
<p style="box-sizing: border-box; margin: 0px 0px 10px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;"><a style="box-sizing: border-box; outline: none; -webkit-appearance: none; font-weight: 400;">1) What is Team  Foundation Server? What does it cover – version control? build processes? bug tracking? task management?</a></span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">Team Foundation Server is defined in the documentation as:</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">Team Foundation is a collection of collaborative technologies that support a team effort to deliver a product. While the Team Foundation technologies are typically employed by a software team to build a software product, they can also be used on other types of projects.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">As the customer already noted three of the core deliverables of Team Foundation Server:</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">1. Build Process</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">2. List/Work item Tracking</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">3. Source Control</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">This is leaving off probably the two most import features of Team Foundation Server. By integrating the build process, source control,policy and work item tracking you can get a deep insight into what teams are doing and some analytics for future trends which leads to the 4<span style="box-sizing: border-box; font-size: 10.5px; line-height: 0; position: relative; vertical-align: baseline; top: -0.5em;">th</span> core deliverable of Team Foundation Server</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">4. Reporting</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">Having insight into how a team is tracking is really only half the answer their also needs to a mechanism to share this information which brings us to the last feature of Team Foundation Server:</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">5. Collaboration (Typically enabled through the Team Portal, Team Project and Process Guidance)</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">Interestingly it is the two missing categories that set Team Foundations Server apart from other offerings.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">2) List out the functionalities provided by team foundation server?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Project Management</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Tracking work items</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Version Control</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Test case management</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Build Automation</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Reporting</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Virtual Lab Management</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">3) Explain TFS in respect to GIT?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-15997" style="box-sizing: border-box; border: 0px; vertical-align: middle; max-width: 100%; height: auto;" src="http://d2pkmwbral2204.cloudfront.net/wp-content/uploads/2016/03/t1.jpg" alt="t" width="797" height="501" /></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">4) Explain how you can create a Git-TFS in Visual Studio 2013 express?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">To create a Git-TFS in Visual Studio 2013 express</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Create an account with MS TFS service if you don’t have inhouse TFS server</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– After that, you will be directed to TFS page, where you will see tow option for creating project, one with new team project and another with a new team project+Git</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– The account URL will be found right below “Getting Started.”</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Click on create git project and it will take you to a new window, where you specify details about the project like project name, description, the process template, version control, etc. and once completed click on create project.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Now you can create a local project in team foundation server by creating a new project in Visual studio and do not forget to mark the check box that says “Add to source control”</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– In the next window, select mark Git as your version control and click ok, and you will be able to see the alteration made in the source code</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– After that, commit your code, right click a file in team explorer and you can compare version differences</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">5) Mention whether all of the team foundation service features are included into the Team foundation server?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">TFS service is updated every 3 weeks while Team Foundation Server “on-premise” is updated every 3 months.  So, the on-premise version will always remain a little behind. However, TFS on-premise has got something that the TFS service does not.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– You can use TFS Lab</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Customize work items/process templates</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">6) Explain what kind or report server you can add in TFS?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">TFS uses SQL for its data storage, so you have to add SQL server reporting services to provide a report server for TFS.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">7) How one would know whether the report is updated in TFS?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">For each report, there will be an option “Date Last Updated” in the lower light corner, when you click or select that option, it will give details about when it was last updated.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">8) Explain how you can restore hidden debugger commands in Visual Studio 2013?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">To restore the debugger feature that is hidden, you have to add the command back to the command</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Open your project, click on Tools menu and then click customize</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Tap the command tab in the customize dialog box</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– In the menu bar, drop down, choose the debug menu for which you want to contain the restored command</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Tap on the Add command button</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– In the Add command box, choose the command you want to add and click OK</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Repeat the step to add another command</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">9) Explain how you can track your code by customizing the scroll bar in Visual Studio 2013?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">To show the annotations on the scroll bar</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– You can customize the scroll bar to display code changes, breakpoints, bookmarks and errors</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Open the scroll bar options page</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– Choose the option “show annotations over vertical scroll bar”, and then choose the annotations you want to see</p>
<p style="box-sizing: border-box; margin: 0px 0px 10px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">– You can replace anything in the code that frequently appears in the file which is not meant to be</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">10) Can I install the TFS 2010 Build Service on my TFS 2008 build machine? </span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">Yes, you can. Even though they both default to the same port (9191), they can share that port without any problems.<span style="box-sizing: border-box; font-weight: bold;"><br style="box-sizing: border-box;" /></span></p>
<h4 style="box-sizing: border-box; font-family: Raleway, 'Open Sans', sans-serif; font-weight: 400; line-height: 1.35em; margin-top: 10px; margin-bottom: 10px; font-size: 16px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; color: #474747; text-align: justify;">11) Can we disable the “Override CheckIn Policy Failure” checkbox? Can that be customized based on User Login, Policy Type of File type?</h4>
<p style="box-sizing: border-box; margin: 0px 0px 10px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">No. It is designed it to be fully auditable by including policy compliance data in the changeset details and in the checkin mail that is delivered, but left it up to the developer to determine whether they have a good reason for overriding.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">12) What are the different events available in the event model and is there any documentation on them?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-style: inherit; font-weight: inherit;">There is really only one SCC event and that is the one that is raised on checkin. Subscription is via the general event model that is discussed in the extensibility kit.</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">13) Are Deletes you make in TFS 2010 Source Control physical or logical? Can accidental deletes be recovered?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-style: inherit; font-weight: inherit;">Deletes are fully recoverable with the “undelete” operation. You wouldn’t want to do a SQL restore because that would roll back every change to the TFS in the time since the file was deleted.</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">14) Can different CheckIn Policies be applied on different branches? E.g. Can they have QA specific policies applied on CheckIn in a QA branch?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-style: inherit; font-weight: inherit;">No.</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">15) How do I redisplay source control explorer?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-style: inherit; font-weight: inherit;">Selecting View &gt; Other Windows &gt; Source Control Explorer will display the Source Control Explorer window within the IDE.</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">16) Why doesn’t source control detect that I have deleted a file/folder on my local disk?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-style: inherit; font-weight: inherit;">The main scenario here is deleting a file (by mistake or intentionally) outside of Team Foundation and then trying the get that file back from source control. If the file version has not changed the server thinks the user already has the file and does not copy it over. This is because the server keeps a list of files that the user already has and when activities are made outside of source control this list becomes out of date. Team Foundation Version Control does have a force get option which will provide the functionality needed to obtain the desired version but it is currently partially hidden under the Get Specific Version Dialog window as a check box item.</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">17) Can I compare directory structures in TFS Source Control?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-style: inherit; font-weight: inherit;">No, you cannot compare Directory Structures in TFS Source Control</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">18) Can we configure SCC to not check-in the binary files? Where are such configurations done?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-style: inherit; font-weight: inherit;">Team Foundation Version Control provides a way to limit check-ins by setting up check-in policies that are evaluated before a check-in can take effect. The easiest way to do this is by authoring a policy that checks if the user is trying to check-in a binary file from a given folder structure and reject or accept it in accordance.</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">19) How can I add non-solution items to source control?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-style: inherit; font-weight: inherit;">This can be achieved by either clicking the Add icon or by going to File &gt; Source Control and selecting the Add To Source Control menu item.</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">20) When a user “edits” a file in a “source controlled” project, it gets checked out automatically. Is this configurable? Can we change this behavior?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-style: inherit; font-weight: inherit;">Yes it can be done by configuring TFS by going to Tools &gt; Options &gt; Source Control &gt; Environment provides an option where a user can change the settings to not checkout files automatically on edit.</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;"><a style="box-sizing: border-box; outline: none; -webkit-appearance: none; font-weight: 400;">21) What plugin / extensibility API does it expose?</a></span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">The Team Foundation Server component model for modifying both the Process Template and creating plugins is built on to be entirely open(in many cases the entry points are defined in XML configuration files). In addition to the having this the development team and community is quite active in supplying samples of this:</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">Brian Harry</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">Buck Hodges</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">Rob Caron</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">This open platform has also enabled a ecosystem of add-ons like Teamlook, Teamprise, Teamplain, Teamword, TFSPermission Manager.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">22)  How does it integrate with other non-MS platforms?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">Team Foundation Server uses Web Services for cross machine communication therefore the Team Foundation Server functionality can be made available to any computer. (see MSDN Team System Article on how to use these web services) This is exactly how companies likeTeamprise, Teamplain, have built their clients to run on non windows computers.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">23) How does it integrate with other software (eg custom task management software etc)?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">In addition to the integration methods mentioned above Team Foundation is also a popular platform for other software manufacturers to host themselves in. Examples of this is Borland with their Together and Caliber Products and Compuware Testing with DevPartner.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;"><a style="box-sizing: border-box; outline: none; -webkit-appearance: none; font-weight: 400;">24) How does the version control compare to Perforce? Branching, merging, change lists etc?</a></span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">Team Foundation Server supports all normally expected Source Control features such as branching, merging, exclusively locking, remote disconnected scenarios, labeling, searching on various properties high fidelity reporting (how much code churn per person per project per iteration etc) plus a couple of newer paradigms like shelving and optimization for things like branching scenarios (many version control systems do a full copy for branches). I would have some performance comparisons but most systems don’t allow this.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;"><a style="box-sizing: border-box; outline: none; -webkit-appearance: none; font-weight: 400;">25)  Automated build system?</a></span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">Yes Team Foundation Server includes an Automated Build System. This system is based on MSBUILD and offers the additional functionality of automatically running tests, profiling, code analysis, verifying policies, collating the changesets and workitems for reporting.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;">26) Any support for distributed build tools? Eg integrating our custom data build tools into the system throughout a network?</span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">MSbuild was written to be extensible and integrate with existing tools through easy to use XML configuration files. Many of the commercial build utilities are already using and/or integrated with MSBuild –such as Cruisecontrol.net. In addition to making these actions part of the build script I have found the generic tests set to run as part of the build to do just as good a job with a rich user interface and support for managing/filtering etc.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;"><a style="box-sizing: border-box; outline: none; -webkit-appearance: none; font-weight: 400;">27) Documentation support – eg integrating documentation with code check-ins etc?</a></span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">This would typically be done through an entry to a work item (to be either associated or resolved) on time of check in and linked with this work item.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">The links to the documentation can exist in a couple of ways.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">1. Checked in as Files (ie doc, HTML etc) Team Foundation Server makes it trivial to link all object checked in (as well as other workitems.)</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">2. Process guidance files that exist on the Windows Sharepoint Site – Again making it easy for linking.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">3. External files once again to linked in a Workitem entry.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;"><a style="box-sizing: border-box; outline: none; -webkit-appearance: none; font-weight: 400; transition: all 0.2s ease-in-out;">28) Does it send data compressed over the network?</a></span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">Team Foundation uses Web Services for cross machine communication and by default automatically configures IIS use Compression.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;"><a style="box-sizing: border-box; outline: none; -webkit-appearance: none; font-weight: 400;">29) Working from home / remote location?</a></span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">Since cross machine communication is accomplished through web services remote access is vastly simplified.</p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;"><span style="box-sizing: border-box; font-weight: bold;"><a style="box-sizing: border-box; outline: none; -webkit-appearance: none; font-weight: 400;">30) Working offline? If the server is offline?</a></span></p>
<p style="box-sizing: border-box; margin: 10px 0px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-size: 14px; color: #444444; font-family: 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 20px; text-align: justify;">Yes, you need to change the file property to offline via a command utility called TFPT and save changes your local workspace. Any subsequent check-in does a get latest which would resolve if there are conflicts to be merged.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tfs-interview-questions-and-answers/">Top 25 TFS Interview Questions and Answers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/tfs-interview-questions-and-answers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Top 25 Chef configuration management interview questions and answers</title>
		<link>https://www.scmgalaxy.com/tutorials/chef-configuration-management-interview-questions-and-answers/</link>
					<comments>https://www.scmgalaxy.com/tutorials/chef-configuration-management-interview-questions-and-answers/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 02 Sep 2015 14:34:19 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Answers]]></category>
		<category><![CDATA[Best]]></category>
		<category><![CDATA[Chef]]></category>
		<category><![CDATA[Chef Configuration Management Interview]]></category>
		<category><![CDATA[Chef Interview]]></category>
		<category><![CDATA[Chef Interview Q&A]]></category>
		<category><![CDATA[Chef Interview questions and answers]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Configuration Management]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[List of chef Interview questions and answers]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Top]]></category>
		<category><![CDATA[Top chef Interview questions and answers]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/09/02/chef-configuration-management-interview-questions-and-answers/</guid>

					<description><![CDATA[<p>Source &#8211; learn.chef.io What is a resource? Answer- A resource represents a piece of infrastructure and its desired state, such [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/chef-configuration-management-interview-questions-and-answers/">Top 25 Chef configuration management interview questions and answers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3372" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/09/chef-interview-questions-an.png" alt="chef-interview-questions-and-answers" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/09/chef-interview-questions-an.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/09/chef-interview-questions-an-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Source &#8211; <a href="http://learn.chef.io">learn.chef.io</a></strong></p>
<p><strong>What is a resource?</strong><br />
<strong>Answer-</strong> A resource represents a piece of infrastructure and its desired state, such as a package that should be installed, a service that should be running, or a file that should be generated.</p>
<p><strong>Question: What is a recipe?</strong><br />
<strong>Answer- </strong>A recipe is a collection of resources that describes a particular configuration or policy. A recipe describes everything that is required to configure part of a system. Recipes do things such as:</p>
<p>install and configure software components.<br />
manage files.<br />
deploy applications.<br />
execute other recipes.</p>
<p><strong>Question: What happens when you don&#8217;t specify a resource&#8217;s action?</strong><br />
<strong>Answer- </strong>When you don&#8217;t specify a resource&#8217;s action, Chef applies the default action.</p>
<p><strong>Question: Are these two recipes the same?</strong></p>
<pre>package 'httpd'</pre>
<pre>service 'httpd' do    action [:enable, :start]  end</pre>
<p>&amp;&amp;</p>
<pre>service 'httpd' do    action [:enable, :start]    end</pre>
<pre>package 'httpd'</pre>
<p><strong>Answer-</strong><br />
No, they are not. Remember that Chef applies resources in the order they appear. So the first recipe ensures that the httpd package is installed and then configures the service. The second recipe configures the service and then ensures the package is installed.</p>
<p><strong>Question: The second recipe may not work as you&#8217;d expect because the service resource will fail if the package is not yet installed.</strong></p>
<p>Are these two recipes the same?</p>
<pre>package 'httpd'</pre>
<pre>service 'httpd' do    action [:enable, :start]    end</pre>
<pre>package 'httpd'</pre>
<pre>service 'httpd' do    action [:start, :enable]    end</pre>
<p><strong>Answer- </strong><br />
No, they are not. Although both recipes ensure that the httpd package is installed before configuring its service, the first recipe enables the service when the system boots and then starts it. The second recipe starts the service and then enables it to start on reboot.</p>
<p><strong>Are these two recipes the same?</strong></p>
<p>file &#8216;/etc/motd&#8217; do<br />
owner &#8216;root&#8217;<br />
group &#8216;root&#8217;<br />
mode &#8216;0755&#8217;<br />
action :create<br />
end</p>
<p>file &#8216;/etc/motd&#8217; do<br />
action :create<br />
mode &#8216;0755&#8217;<br />
group &#8216;root&#8217;<br />
owner &#8216;root&#8217;<br />
end</p>
<p><strong>Answer- </strong><br />
Yes, they are! Order matters with a lot of things in Chef, but you can order resource attributes any way you want.</p>
<p><strong>Question &#8211; </strong><br />
Write a service resource that stops and then disables the httpd service from starting when the system boots.</p>
<p><strong>Answer &#8211;</strong><br />
service &#8216;httpd&#8217; do<br />
action [:stop, :disable]<br />
end</p>
<p><strong>How does a cookbook differ from a recipe?</strong><br />
A recipe is a collection of resources, and typically configures a software package or some piece of infrastructure. A cookbook groups together recipes and other information in a way that is more manageable than having just recipes alone.</p>
<p>For example, in this lesson you used a template resource to manage your HTML home page from an external file. The recipe stated the configuration policy for your web site, and the template file contained the data. You used a cookbook to package both parts up into a single unit that you can later deploy.</p>
<p><strong>How does chef-apply differ from chef-client?</strong></p>
<p>chef-apply applies a single recipe; chef-client applies a cookbook.</p>
<p>For learning purposes, we had you start off with chef-apply because it helps you understand the basics quickly. In practice, chef-apply is useful when you want to quickly test something out. But for production purposes, you typically run chef-client to apply one or more cookbooks.</p>
<p>You&#8217;ll learn in the next module how to run chef-client remotely from your workstation.</p>
<p><strong>What&#8217;s the run-list?</strong></p>
<p>The run-list lets you specify which recipes to run, and the order in which to run them. The run-list is important for when you have multiple cookbooks, and the order in which they run matters.</p>
<p><strong>What are the two ways to set up a Chef server?</strong></p>
<p>Install an instance on your own infrastructure.<br />
Use hosted Chef.</p>
<p><strong>What&#8217;s the role of the Starter Kit?</strong><br />
The Starter Kit provides certificates and other files that enable you to securely communicate with the Chef server.</p>
<p><strong>Where can you get reusable cookbooks that are written and maintained by the Chef community?</strong><br />
Chef Supermarket, https://supermarket.chef.io.</p>
<p><strong>What&#8217;s the command that enables you to interact with the Chef server?</strong><br />
knife</p>
<p><strong>What is a node?</strong><br />
A node represents a server and is typically a virtual machine, container instance, or physical server – basically any compute resource in your infrastructure that&#8217;s managed by Chef.</p>
<p><strong>What information do you need to in order to bootstrap?</strong><br />
You need:</p>
<p>your node&#8217;s host name or public IP address.<br />
a user name and password you can log on to your node with.<br />
Alternatively, you can use key-based authentication instead of providing a user name and password.</p>
<p><strong>What happens during the bootstrap process?</strong><br />
During the bootstrap process, the node downloads and installs chef-client, registers itself with the Chef server, and does an initial checkin. During this checkin, the node applies any cookbooks that are part of its run-list.</p>
<p><strong>Which of the following lets you verify that your node has successfully bootstrapped?</strong></p>
<p>The Chef management console.<br />
knife node list<br />
knife node show<br />
You can use all three of these methods.</p>
<p><strong>What is the command you use to upload a cookbook to the Chef server?</strong><br />
knife cookbook upload</p>
<p><strong>How do you apply an updated cookbook to your node?</strong><br />
We mentioned two ways.</p>
<p>Run knife ssh from your workstation.<br />
SSH directly into your server and run chef-client.<br />
You can also run chef-client as a daemon, or service, to check in with the Chef server on a regular interval, say every 15 or 30 minutes.</p>
<p>Update your Apache cookbook to display your node&#8217;s host name, platform, total installed memory, and number of CPUs in addition to its FQDN on the home page.</p>
<p>Update index.html.erb like this.<br />
&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;hello from &lt;%= node[&#8216;fqdn&#8217;] %&gt;&lt;/h1&gt;</p>
<p>&lt;pre&gt;<br />
&lt;%= node[&#8216;hostname&#8217;] %&gt;<br />
&lt;%= node[&#8216;platform&#8217;] %&gt; &#8211; &lt;%= node[&#8216;platform_version&#8217;] %&gt;<br />
&lt;%= node[&#8216;memory&#8217;][&#8216;total&#8217;] %&gt; RAM<br />
&lt;%= node[&#8216;cpu&#8217;][&#8216;total&#8217;] %&gt; CPUs<br />
&lt;/pre&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>Then upload your cookbook and run it on your node.</p>
<p><strong>What would you set your cookbook&#8217;s version to once it&#8217;s ready to use in production?</strong></p>
<p>According to Semantic Versioning, you should set your cookbook&#8217;s version number to 1.0.0 at the point it&#8217;s ready to use in production.</p>
<p><strong>What is the latest version of the haproxy community cookbook?</strong></p>
<p>To know the latest version of any cookbook on Chef Supermarket, browse to its page and view the latest version from the version selection box.</p>
<p>Or, get the info from the knife cookbook site command, like this.</p>
<p>knife cookbook site show haproxy | grep latest_version<br />
latest_version: http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/1.6.6</p>
<p><strong>Create a second node and apply the awesome_customers cookbook to it. How long does it take?</strong></p>
<p>You already accomplished the majority of the tasks that you need. You wrote the awesome_customers cookbook, uploaded it and its dependent cookbooks to the Chef server, applied the awesome_customers cookbook to your node, and verified that everything&#8217;s working.</p>
<p>All you need to do now is:</p>
<p>Bring up a second Red Hat Enterprise Linux or CentOS node.<br />
Copy your secret key file to your second node.<br />
Bootstrap your node the same way as before. Because you include the awesome_customers cookbook in your run-list, your node will apply that cookbook during the bootstrap process.<br />
The result is a second node that&#8217;s configured identically to the first one. The process should take far less time because you already did most of the work.</p>
<p>Now when you fix an issue or add a new feature, you&#8217;ll be able to deploy and verify your update much more quickly!</p>
<p><strong>What&#8217;s the value of local development using Test Kitchen?</strong></p>
<p>Local development with Test Kitchen:</p>
<p>enables you to use a variety of virtualization providers that create virtual machine or container instances locally on your workstation or in the cloud.<br />
enables you to run your cookbooks on servers that resemble those that you use in production.<br />
speeds up the development cycle by automatically provisioning and tearing down temporary instances, resolving cookbook dependencies, and applying your cookbooks to your instances.</p>
<p><strong>What is VirtualBox? What is Vagrant?</strong></p>
<p>VirtualBox is the software that manages your virtual machine instances.</p>
<p>Vagrant helps Test Kitchen communicate with VirtualBox and configures things like available memory and network settings.</p>
<p>Verify that your motd cookbook runs on both CentOS 6.6 and CentOS 6.5.</p>
<p>Your motd cookbook is already configured to work on CentOS 6.6 as well as CentOS 6.5, so you don&#8217;t need to modify it.</p>
<p>To run it on CentOS 6.5, add an entry to the platforms section of your .kitchen.yml file like this.</p>
<pre>---       driver:       name: vagrant</pre>
<pre>provisioner:       name: chef_zero</pre>
<pre>platforms:       - name: centos-6.6       driver:       box: opscode-centos-6.6       box_url: http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.6_chef-provisionerless.box       - name: centos-6.5       driver:       box: opscode-centos-6.5       box_url: http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.5_chef-provisionerless.box</pre>
<pre>suites:       - name: default       run_list:       - recipe[motd::default]       attributes:</pre>
<p>In many cases, Test Kitchen can infer the box and box_url parameters, which specify the name and location of the base image, or box. We specify them here to show you how to use them.</p>
<p>Run kitchen list to see the matrix of test instances that are available. Here, we have two platforms – CentOS 6.5 and CentOS 6.6 – multiplied by one suite – default.</p>
<p>$kitchen list</p>
<pre>Instance           Driver   Provisioner  Verifier  Transport  Last Action default-centos-66  Vagrant  ChefZero     Busser    Ssh        &lt;Not Created&gt; default-centos-65  Vagrant  ChefZero     Busser    Ssh        &lt;Not Created&gt;</pre>
<p>Run kitchen converge to create the instances and apply the motd cookbook.</p>
<pre>$kitchen converge    -----&gt; Starting Kitchen (v1.4.0)    -----&gt; Creating &lt;default-centos-66&gt;...    Bringing machine 'default' up with 'virtualbox' provider...    [...]    Running handlers:    Running handlers complete    Chef Client finished, 1/1 resources updated in 10.372334751 seconds    Finished converging &lt;default-centos-66&gt; (3m52.59s).    -----&gt; Creating &lt;default-centos-65&gt;...    Bringing machine 'default' up with 'virtualbox' provider...    [...]    Running handlers:    Running handlers complete    Chef Client finished, 1/1 resources updated in 5.32753132 seconds    Finished converging &lt;default-centos-65&gt; (10m12.63s).  -----&gt; Kitchen is finished. (19m47.71s)</pre>
<p>Now to confirm that everything&#8217;s working, run kitchen login. But this time, you need to provide the instance name so that Test Kitchen knows which instance to connect to.</p>
<pre>$kitchen login default-centos-66       Last login: Wed May 13 20:15:00 2015 from 10.0.2.2              hostname:  default-centos-66       fqdn:      default-centos-66       memory:    469392kB       cpu count: 1       [vagrant@default-centos-66 ~]$ logout       Connection to 127.0.0.1 closed.$kitchen login default-centos-65       Last login: Wed May 13 20:28:18 2015 from 10.0.2.2              hostname:  default-centos-65       fqdn:      default-centos-65       memory:    469452kB       cpu count: 1       [vagrant@default-centos-65 ~]$ logout       Connection to 127.0.0.1 closed.</pre>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/chef-configuration-management-interview-questions-and-answers/">Top 25 Chef configuration management interview questions and answers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/chef-configuration-management-interview-questions-and-answers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Chef configuration management interview questions and answers &#124; Chef Interview Q&#038;A</title>
		<link>https://www.scmgalaxy.com/tutorials/chef-configuration-management-interview-questions-and-answers-2/</link>
					<comments>https://www.scmgalaxy.com/tutorials/chef-configuration-management-interview-questions-and-answers-2/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 02 Sep 2015 14:34:19 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Answers]]></category>
		<category><![CDATA[Best]]></category>
		<category><![CDATA[Chef]]></category>
		<category><![CDATA[Chef Configuration Management Interview]]></category>
		<category><![CDATA[Chef Interview]]></category>
		<category><![CDATA[Chef Interview Q&A]]></category>
		<category><![CDATA[Chef Interview questions and answers]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Configuration Management]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[List of chef Interview questions and answers]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Top]]></category>
		<category><![CDATA[Top chef Interview questions and answers]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/09/02/chef-configuration-management-interview-questions-and-answers-2/</guid>

					<description><![CDATA[<p>Source &#8211; learn.chef.io What is a resource? Answer- A resource represents a piece of infrastructure and its desired state, such [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/chef-configuration-management-interview-questions-and-answers-2/">Chef configuration management interview questions and answers | Chef Interview Q&#038;A</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3372 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/09/chef-interview-questions-an.png" alt="chef-interview-questions-and-answers" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/09/chef-interview-questions-an.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/09/chef-interview-questions-an-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Source &#8211; <a href="http://learn.chef.io" target="_blank" rel="noopener">learn.chef.io</a></strong></p>
<p><strong>What is a resource?</strong><br />
<strong>Answer-</strong> A resource represents a piece of infrastructure and its desired state, such as a package that should be installed, a service that should be running, or a file that should be generated.</p>
<p><strong>Question: What is a recipe?</strong><br />
<strong>Answer- </strong>A recipe is a collection of resources that describes a particular configuration or policy. A recipe describes everything that is required to configure part of a system. Recipes do things such as:</p>
<p>install and configure software components.<br />
manage files.<br />
deploy applications.<br />
execute other recipes.</p>
<p><strong>Question: What happens when you don&#8217;t specify a resource&#8217;s action?</strong><br />
<strong>Answer- </strong>When you don&#8217;t specify a resource&#8217;s action, Chef applies the default action.</p>
<p><strong>Question: Are these two recipes the same?</strong></p>
<pre>package 'httpd'</pre>
<pre>service 'httpd' do    action [:enable, :start]  end</pre>
<p>&amp;&amp;</p>
<pre>service 'httpd' do    action [:enable, :start]    end</pre>
<pre>package 'httpd'</pre>
<p><strong>Answer-</strong><br />
No, they are not. Remember that Chef applies resources in the order they appear. So the first recipe ensures that the httpd package is installed and then configures the service. The second recipe configures the service and then ensures the package is installed.</p>
<p><strong>Question: The second recipe may not work as you&#8217;d expect because the service resource will fail if the package is not yet installed.</strong></p>
<p>Are these two recipes the same?</p>
<pre>package 'httpd'</pre>
<pre>service 'httpd' do    action [:enable, :start]    end</pre>
<pre>package 'httpd'</pre>
<pre>service 'httpd' do    action [:start, :enable]    end</pre>
<p><strong>Answer- </strong><br />
No, they are not. Although both recipes ensure that the httpd package is installed before configuring its service, the first recipe enables the service when the system boots and then starts it. The second recipe starts the service and then enables it to start on reboot.</p>
<p><strong>Are these two recipes the same?</strong></p>
<p>file &#8216;/etc/motd&#8217; do<br />
owner &#8216;root&#8217;<br />
group &#8216;root&#8217;<br />
mode &#8216;0755&#8217;<br />
action :create<br />
end</p>
<p>file &#8216;/etc/motd&#8217; do<br />
action :create<br />
mode &#8216;0755&#8217;<br />
group &#8216;root&#8217;<br />
owner &#8216;root&#8217;<br />
end</p>
<p><strong>Answer- </strong><br />
Yes, they are! Order matters with a lot of things in Chef, but you can order resource attributes any way you want.</p>
<p><strong>Question &#8211; </strong><br />
Write a service resource that stops and then disables the httpd service from starting when the system boots.</p>
<p><strong>Answer &#8211;</strong><br />
service &#8216;httpd&#8217; do<br />
action [:stop, :disable]<br />
end</p>
<p><strong>How does a cookbook differ from a recipe?</strong><br />
A recipe is a collection of resources, and typically configures a software package or some piece of infrastructure. A cookbook groups together recipes and other information in a way that is more manageable than having just recipes alone.</p>
<p>For example, in this lesson you used a template resource to manage your HTML home page from an external file. The recipe stated the configuration policy for your web site, and the template file contained the data. You used a cookbook to package both parts up into a single unit that you can later deploy.</p>
<p><strong>How does chef-apply differ from chef-client?</strong></p>
<p>chef-apply applies a single recipe; chef-client applies a cookbook.</p>
<p>For learning purposes, we had you start off with chef-apply because it helps you understand the basics quickly. In practice, chef-apply is useful when you want to quickly test something out. But for production purposes, you typically run chef-client to apply one or more cookbooks.</p>
<p>You&#8217;ll learn in the next module how to run chef-client remotely from your workstation.</p>
<p><strong>What&#8217;s the run-list?</strong></p>
<p>The run-list lets you specify which recipes to run, and the order in which to run them. The run-list is important for when you have multiple cookbooks, and the order in which they run matters.</p>
<p><strong>What are the two ways to set up a Chef server?</strong></p>
<p>Install an instance on your own infrastructure.<br />
Use hosted Chef.</p>
<p><strong>What&#8217;s the role of the Starter Kit?</strong><br />
The Starter Kit provides certificates and other files that enable you to securely communicate with the Chef server.</p>
<p><strong>Where can you get reusable cookbooks that are written and maintained by the Chef community?</strong><br />
Chef Supermarket, https://supermarket.chef.io.</p>
<p><strong>What&#8217;s the command that enables you to interact with the Chef server?</strong><br />
knife</p>
<p><strong>What is a node?</strong><br />
A node represents a server and is typically a virtual machine, container instance, or physical server – basically any compute resource in your infrastructure that&#8217;s managed by Chef.</p>
<p><strong>What information do you need to in order to bootstrap?</strong><br />
You need:</p>
<p>your node&#8217;s host name or public IP address.<br />
a user name and password you can log on to your node with.<br />
Alternatively, you can use key-based authentication instead of providing a user name and password.</p>
<p><strong>What happens during the bootstrap process?</strong><br />
During the bootstrap process, the node downloads and installs chef-client, registers itself with the Chef server, and does an initial checkin. During this checkin, the node applies any cookbooks that are part of its run-list.</p>
<p><strong>Which of the following lets you verify that your node has successfully bootstrapped?</strong></p>
<p>The Chef management console.<br />
knife node list<br />
knife node show<br />
You can use all three of these methods.</p>
<p><strong>What is the command you use to upload a cookbook to the Chef server?</strong><br />
knife cookbook upload</p>
<p><strong>How do you apply an updated cookbook to your node?</strong><br />
We mentioned two ways.</p>
<p>Run knife ssh from your workstation.<br />
SSH directly into your server and run chef-client.<br />
You can also run chef-client as a daemon, or service, to check in with the Chef server on a regular interval, say every 15 or 30 minutes.</p>
<p>Update your Apache cookbook to display your node&#8217;s host name, platform, total installed memory, and number of CPUs in addition to its FQDN on the home page.</p>
<p>Update index.html.erb like this.<br />
&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;hello from &lt;%= node[&#8216;fqdn&#8217;] %&gt;&lt;/h1&gt;</p>
<p>&lt;pre&gt;<br />
&lt;%= node[&#8216;hostname&#8217;] %&gt;<br />
&lt;%= node[&#8216;platform&#8217;] %&gt; &#8211; &lt;%= node[&#8216;platform_version&#8217;] %&gt;<br />
&lt;%= node[&#8216;memory&#8217;][&#8216;total&#8217;] %&gt; RAM<br />
&lt;%= node[&#8216;cpu&#8217;][&#8216;total&#8217;] %&gt; CPUs<br />
&lt;/pre&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>Then upload your cookbook and run it on your node.</p>
<p><strong>What would you set your cookbook&#8217;s version to once it&#8217;s ready to use in production?</strong></p>
<p>According to Semantic Versioning, you should set your cookbook&#8217;s version number to 1.0.0 at the point it&#8217;s ready to use in production.</p>
<p><strong>What is the latest version of the haproxy community cookbook?</strong></p>
<p>To know the latest version of any cookbook on Chef Supermarket, browse to its page and view the latest version from the version selection box.</p>
<p>Or, get the info from the knife cookbook site command, like this.</p>
<p>knife cookbook site show haproxy | grep latest_version<br />
latest_version: http://cookbooks.opscode.com/api/v1/cookbooks/haproxy/versions/1.6.6</p>
<p><strong>Create a second node and apply the awesome_customers cookbook to it. How long does it take?</strong></p>
<p>You already accomplished the majority of the tasks that you need. You wrote the awesome_customers cookbook, uploaded it and its dependent cookbooks to the Chef server, applied the awesome_customers cookbook to your node, and verified that everything&#8217;s working.</p>
<p>All you need to do now is:</p>
<p>Bring up a second Red Hat Enterprise Linux or CentOS node.<br />
Copy your secret key file to your second node.<br />
Bootstrap your node the same way as before. Because you include the awesome_customers cookbook in your run-list, your node will apply that cookbook during the bootstrap process.<br />
The result is a second node that&#8217;s configured identically to the first one. The process should take far less time because you already did most of the work.</p>
<p>Now when you fix an issue or add a new feature, you&#8217;ll be able to deploy and verify your update much more quickly!</p>
<p><strong>What&#8217;s the value of local development using Test Kitchen?</strong></p>
<p>Local development with Test Kitchen:</p>
<p>enables you to use a variety of virtualization providers that create virtual machine or container instances locally on your workstation or in the cloud.<br />
enables you to run your cookbooks on servers that resemble those that you use in production.<br />
speeds up the development cycle by automatically provisioning and tearing down temporary instances, resolving cookbook dependencies, and applying your cookbooks to your instances.</p>
<p><strong>What is VirtualBox? What is Vagrant?</strong></p>
<p>VirtualBox is the software that manages your virtual machine instances.</p>
<p>Vagrant helps Test Kitchen communicate with VirtualBox and configures things like available memory and network settings.</p>
<p>Verify that your motd cookbook runs on both CentOS 6.6 and CentOS 6.5.</p>
<p>Your motd cookbook is already configured to work on CentOS 6.6 as well as CentOS 6.5, so you don&#8217;t need to modify it.</p>
<p>To run it on CentOS 6.5, add an entry to the platforms section of your .kitchen.yml file like this.</p>
<pre>---       driver:       name: vagrant</pre>
<pre>provisioner:       name: chef_zero</pre>
<pre>platforms:       - name: centos-6.6       driver:       box: opscode-centos-6.6       box_url: http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.6_chef-provisionerless.box       - name: centos-6.5       driver:       box: opscode-centos-6.5       box_url: http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.5_chef-provisionerless.box</pre>
<pre>suites:       - name: default       run_list:       - recipe[motd::default]       attributes:</pre>
<p>In many cases, Test Kitchen can infer the box and box_url parameters, which specify the name and location of the base image, or box. We specify them here to show you how to use them.</p>
<p>Run kitchen list to see the matrix of test instances that are available. Here, we have two platforms – CentOS 6.5 and CentOS 6.6 – multiplied by one suite – default.</p>
<p>$kitchen list</p>
<pre>Instance           Driver   Provisioner  Verifier  Transport  Last Action default-centos-66  Vagrant  ChefZero     Busser    Ssh        &lt;Not Created&gt; default-centos-65  Vagrant  ChefZero     Busser    Ssh        &lt;Not Created&gt;</pre>
<p>Run kitchen converge to create the instances and apply the motd cookbook.</p>
<pre>$kitchen converge    -----&gt; Starting Kitchen (v1.4.0)    -----&gt; Creating &lt;default-centos-66&gt;...    Bringing machine 'default' up with 'virtualbox' provider...    [...]    Running handlers:    Running handlers complete    Chef Client finished, 1/1 resources updated in 10.372334751 seconds    Finished converging &lt;default-centos-66&gt; (3m52.59s).    -----&gt; Creating &lt;default-centos-65&gt;...    Bringing machine 'default' up with 'virtualbox' provider...    [...]    Running handlers:    Running handlers complete    Chef Client finished, 1/1 resources updated in 5.32753132 seconds    Finished converging &lt;default-centos-65&gt; (10m12.63s).  -----&gt; Kitchen is finished. (19m47.71s)</pre>
<p>Now to confirm that everything&#8217;s working, run kitchen login. But this time, you need to provide the instance name so that Test Kitchen knows which instance to connect to.</p>
<pre>$kitchen login default-centos-66       Last login: Wed May 13 20:15:00 2015 from 10.0.2.2              hostname:  default-centos-66       fqdn:      default-centos-66       memory:    469392kB       cpu count: 1       [vagrant@default-centos-66 ~]$ logout       Connection to 127.0.0.1 closed.$kitchen login default-centos-65       Last login: Wed May 13 20:28:18 2015 from 10.0.2.2              hostname:  default-centos-65       fqdn:      default-centos-65       memory:    469452kB       cpu count: 1       [vagrant@default-centos-65 ~]$ logout       Connection to 127.0.0.1 closed.</pre>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/chef-configuration-management-interview-questions-and-answers-2/">Chef configuration management interview questions and answers | Chef Interview Q&#038;A</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/chef-configuration-management-interview-questions-and-answers-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Interview Questions and Answer for Perforce Version Control Tool</title>
		<link>https://www.scmgalaxy.com/tutorials/interview-questions-and-answer-for-perforce-version-control-tool/</link>
					<comments>https://www.scmgalaxy.com/tutorials/interview-questions-and-answer-for-perforce-version-control-tool/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 22 Sep 2014 00:00:00 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Answer]]></category>
		<category><![CDATA[Control]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[Most Asked]]></category>
		<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Perforce Interview]]></category>
		<category><![CDATA[Perforce Interview Q&A]]></category>
		<category><![CDATA[Perforce Interview Questions]]></category>
		<category><![CDATA[Perforce Interview Questions Answers]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Selected]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[Top]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[Version Control Interview Questions and Answer]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2014/09/22/interview-questions-and-answer-for-perforce-version-control-tool/</guid>

					<description><![CDATA[<p>Some of the perforce commands which is not commonly used but useful. p4 annotate &#8211; Print file lines along with [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/interview-questions-and-answer-for-perforce-version-control-tool/">Interview Questions and Answer for Perforce Version Control Tool</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3543 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/09/perforce-interview-question.png" alt="perforce-interview-questions-answers" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/09/perforce-interview-question.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/09/perforce-interview-question-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Some of the perforce commands which is not commonly used but useful.</strong><br />
p4 annotate &#8211; <a name="1041869"></a>Print file lines along with their revisions.<br />
<a name="1048072"></a>e.g p4 annotate file.c</p>
<p><strong>How to ignore files/folder in perforce workspace/client?</strong><br />
Assuming you have a client named &#8220;CLIENT&#8221;, a directory named &#8220;foo&#8221; (located at your project root), and you wish to ignore all .dll files in that directory tree, you can add the following lines to your workspace view to accomplish this:</p>
<p>-//depot/foo/*.dll //CLIENT/foo/*.dll<br />
-//depot/foo/&#8230;/*.dll //CLIENT/foo/&#8230;/*.dll</p>
<p>The first line removes them from the directory &#8220;foo&#8221; and the second line removes them from all sub directories. Now, when you &#8216;Reconcile Offline Work&#8230;&#8217;, all the .dll files will be moved into &#8220;Excluded Files&#8221; folders at the bottom of the folder diff display. They will be out of your way, but can still view and manipulate them if you really need to.</p>
<p>You can also do it another way, which will reduce your &#8220;Excluded Files&#8221; folder to just one, but you won&#8217;t be able to manipulate any of the files it contains because the path will be corrupt (but if you just want them out of your way, it doesn&#8217;t matter).</p>
<pre>-//depot/foo.../*.dll //CLIENT/foo.../*.dll</pre>
<p><a href="http://stackoverflow.com/questions/55449/can-you-ignore-a-file-in-perforce">Reference</a><br />
<a href="http://answers.perforce.com/articles/KB_Article/Exclude-Directories-from-Commands">How can I exclude a directory from a Perforce command?</a></p>
<p>P4IGNORE<br />
Specify a file that contains a list of files to ignore when adding files to the depot and reconciling workspaces.<br />
<a href="http://www.perforce.com/perforce/doc.current/manuals/cmdref/P4IGNORE.html">Reference</a></p>
<p><strong>How to check last 10 submitted, pending, or shelved changelists that include any file under the project directory?</strong><br />
p4 changes -m 5 //depot/project/&#8230;</p>
<p><strong>How to check last 10 submitted or pending, or shelved changelists that include any file under the project directory?</strong><br />
p4 changes -m 1 -s submitted | pending | shelved</p>
<p>Interview Questions Related to Perforce Admin</p>
<ol>
<li>How to take perforce backup</li>
<li>How to restore perforce backup</li>
<li>How to verify health of the perforce repos database</li>
<li>What is the ise of p4 dbverify and p4 verify</li>
</ol>
<p><strong>What is the use of p4 admin commands.</strong></p>
<p>The p4 admin command allows Perforce superusers to perform administrative tasks even when working from a different machine than the one running the shared Perforce service.<br />
p4 [g-opts] admin checkpoint [ -z | -Z ] [ prefix ]<br />
p4 [g-opts] admin journal [ -z ] [ prefix ]<br />
p4 [g-opts] admin stop<br />
p4 [g-opts] admin restart<br />
p4 [g-opts] admin updatespecdepot [ -a | -s type ]<br />
p4 [g-opts] admin resetpassword -a | -u user<br />
Reference – <a href="http://www.perforce.com/perforce/doc.current/manuals/cmdref/p4_admin.html">Click here</a></p>
<p><strong>How to remove files from perforce permanently?</strong><br />
p4 archive -p with caution. This is the one of only two commands in Perforce that actually removes file data. (The other command that removes file data is p4 obliterate.)</p>
<p><strong>How to set properly in Perforce?</strong><br />
The Perforce service offers three ways of storing metadata: counters/keys, attributes, and properties.</p>
<p>If your application requires only the flat storage of simple key/value pairs, and attempts to implement no security model, use the p4 counters and p4 keys commands.</p>
<p>The p4 property command can be used by administrators to view and update property definitions stored in the Perforce service. The service does not use the property definitions; it provides this capability for other Perforce applications, such as P4V</p>
<p>If your application&#8217;s metadata is associated with particular files, use p4 attribute.</p>
<p>If your application&#8217;s metadata is not associated with files, and if you have a requirement to restrict its visibility to users, groups, and/or to control the precedence of multiple values using sequence numbers, use p4 property.</p>
<p>p4 property -n name -v value<br />
p4 counter mycounter 123<br />
p4 key mykey 12<br />
p4 attribute -n name [ -v value ] files&#8230;</p>
<p><strong>Perforce Integration with other Tools</strong></p>
<ol>
<li>Gitfushion</li>
<li>Swarm</li>
<li>Replication</li>
</ol>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/interview-questions-and-answer-for-perforce-version-control-tool/">Interview Questions and Answer for Perforce Version Control Tool</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/interview-questions-and-answer-for-perforce-version-control-tool/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Top Interview Questions and Answers of Jenkins</title>
		<link>https://www.scmgalaxy.com/tutorials/interview-questions-and-answers-of-jenkins/</link>
					<comments>https://www.scmgalaxy.com/tutorials/interview-questions-and-answers-of-jenkins/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 20 Aug 2014 00:00:00 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Answers]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Interview Questions and Answers of Jenkins]]></category>
		<category><![CDATA[Interview Questions of Jenkins]]></category>
		<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[Jenkins Interview]]></category>
		<category><![CDATA[Jenkins Interview Q&A]]></category>
		<category><![CDATA[Jenkins Interview Questions]]></category>
		<category><![CDATA[Jenkins Interview Questions and Answers]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[List of Jenkins Interview Questions]]></category>
		<category><![CDATA[Most Asked]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Top]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2014/08/20/interview-questions-and-answers-of-jenkins/</guid>

					<description><![CDATA[<p>What is continuous integration? Jenkins Continuous integration API features? Advantages of jenkins? Jenkins plugins? Requirements for using Jenkins? Installing Jenkins [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/interview-questions-and-answers-of-jenkins/">Top Interview Questions and Answers of Jenkins</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3399 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/08/jenkins-interview-questions.png" alt="jenkins-interview-questions" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/08/jenkins-interview-questions.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/08/jenkins-interview-questions-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<ul>
<li>
<h3>What is continuous integration?</h3>
</li>
<li>
<h3>Jenkins Continuous integration API features?</h3>
</li>
<li>
<h3>Advantages of jenkins?</h3>
</li>
<li>
<h3>Jenkins plugins?</h3>
</li>
<li>
<h3>Requirements for using Jenkins?</h3>
</li>
<li>
<h3>Installing Jenkins on Ubuntu and RHEL?</h3>
</li>
<li>
<h3>Process to take Jenkins backup and copying files?</h3>
</li>
<li>
<h3>Top 20 Jenkins and Useful Plugins?</h3>
</li>
</ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/interview-questions-and-answers-of-jenkins/">Top Interview Questions and Answers of Jenkins</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/interview-questions-and-answers-of-jenkins/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Top 10 Interview Questions and Answers in SVN (Subversion)</title>
		<link>https://www.scmgalaxy.com/tutorials/interview-questions-and-answers-in-svn-subversion/</link>
					<comments>https://www.scmgalaxy.com/tutorials/interview-questions-and-answers-in-svn-subversion/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 20 Aug 2014 00:00:00 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Answers]]></category>
		<category><![CDATA[Best]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[List of SVN Interview Questions]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[Subversion Interview]]></category>
		<category><![CDATA[Subversion Interview Questions]]></category>
		<category><![CDATA[Subversion Interview Questions and Answers]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[SVN Interview]]></category>
		<category><![CDATA[SVN Interview Questions]]></category>
		<category><![CDATA[SVN Interview Questions and Answers]]></category>
		<category><![CDATA[Top]]></category>
		<category><![CDATA[Top SVN Interview Questions]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2014/08/20/interview-questions-and-answers-in-svn-subversion/</guid>

					<description><![CDATA[<p>What is SVN? What is &#8220;branch&#8221; , &#8220;Tag&#8221; and &#8220;Trunk&#8221; in SVN ? what do you mean by &#8220;Synchronizing with [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/interview-questions-and-answers-in-svn-subversion/">Top 10 Interview Questions and Answers in SVN (Subversion)</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3403 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/08/svn-subversion-interview-qu.png" alt="svn-subversion-interview-questions-and-answers" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/08/svn-subversion-interview-qu.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/08/svn-subversion-interview-qu-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<ul>
<li>
<h2>What is SVN?</h2>
</li>
<li>
<h2>What is &#8220;branch&#8221; , &#8220;Tag&#8221; and &#8220;Trunk&#8221; in SVN ?</h2>
</li>
<li>
<h2>what do you mean by &#8220;Synchronizing with Repository&#8221; ? How is it different from &#8220;Update&#8221; ?</h2>
</li>
<li>
<h2>Difference between Update and Commit ?</h2>
</li>
<li>
<h2>How to apply a patch in SVN ?</h2>
</li>
<li>
<h2>What if SVN Update gives Merge Conflicts and you just want your local files to be overriden with the repository versions ?</h2>
</li>
<li>
<h2>trunk vs branch vs tag in subversion or SVN</h2>
</li>
<li>
<h2>What is the process to take backuop and restore in SVN?</h2>
</li>
<li>
<h2>How to setup SVN?</h2>
</li>
<li>
<h2>How to setup authentication in SVN?</h2>
</li>
</ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/interview-questions-and-answers-in-svn-subversion/">Top 10 Interview Questions and Answers in SVN (Subversion)</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/interview-questions-and-answers-in-svn-subversion/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>All Possible Interview Questions on Git, Github and Gitlab</title>
		<link>https://www.scmgalaxy.com/tutorials/interview-questions-on-git-github-and-gitlab/</link>
					<comments>https://www.scmgalaxy.com/tutorials/interview-questions-on-git-github-and-gitlab/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 18 Aug 2014 00:00:00 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Git Interview]]></category>
		<category><![CDATA[Git Interview Questions]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[Github Interview]]></category>
		<category><![CDATA[Github Interview Questions]]></category>
		<category><![CDATA[Gitlab]]></category>
		<category><![CDATA[Gitlab Interview]]></category>
		<category><![CDATA[Gitlab Interview Questions]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[Most Asked]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Top]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2014/08/18/interview-questions-on-git-github-and-gitlab/</guid>

					<description><![CDATA[<p>What is GIT? What is a repository in GIT? What is the command you can use to write a commit [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/interview-questions-on-git-github-and-gitlab/">All Possible Interview Questions on Git, Github and Gitlab</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3397 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/08/interview-questions-on-git-.png" alt="interview-questions-on-git-github-gitlab" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/08/interview-questions-on-git-.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/08/interview-questions-on-git--300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<ul>
<li>What is GIT?</li>
<li>What is a repository in GIT?</li>
<li>What is the command you can use to write a commit message?</li>
<li>What is the difference between GIT and SVN and other CM systems?
<ul>
<li>Answers &#8211;
<ul>
<li style="font: 7.0pt 'Times New Roman';"><!-- [if gte mso 9]><xml>  <o:OfficeDocumentSettings>   <o:AllowPNG/>  </o:OfficeDocumentSettings> </xml><![endif]--><!-- [if gte mso 9]><xml>  <w:WordDocument>   <w:View>Normal</w:View>   <w:Zoom>0</w:Zoom>   <w:TrackMoves/>   <w:TrackFormatting/>   <w:PunctuationKerning/>   <w:ValidateAgainstSchemas/>   <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>   <w:IgnoreMixedContent>false</w:IgnoreMixedContent>   <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>   <w:DoNotPromoteQF/>   <w:LidThemeOther>EN-US</w:LidThemeOther>   <w:LidThemeAsian>X-NONE</w:LidThemeAsian>   <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>   <w:Compatibility>    <w:BreakWrappedTables/>    <w:SnapToGridInCell/>    <w:WrapTextWithPunct/>    <w:UseAsianBreakRules/>    <w:DontGrowAutofit/>    <w:SplitPgBreakAndParaMark/>    <w:EnableOpenTypeKerning/>    <w:DontFlipMirrorIndents/>    <w:OverrideTableStyleHps/>   </w:Compatibility>   <m:mathPr>    <m:mathFont m:val="Cambria Math"/>    <m:brkBin m:val="before"/>    <m:brkBinSub m:val="&#45;-"/>    <m:smallFrac m:val="off"/>    <m:dispDef/>    <m:lMargin m:val="0"/>    <m:rMargin m:val="0"/>    <m:defJc m:val="centerGroup"/>    <m:wrapIndent m:val="1440"/>    <m:intLim m:val="subSup"/>    <m:naryLim m:val="undOvr"/>   </m:mathPr></w:WordDocument> </xml><![endif]--><!-- [if gte mso 9]><xml>  <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true" DefSemiHidden="true" DefQFormat="false" DefPriority="99" LatentStyleCount="267">   <w:LsdException Locked="false" Priority="0" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Normal"/>   <w:LsdException Locked="false" Priority="9" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>   <w:LsdException Locked="false" Priority="39" Name="toc 1"/>   <w:LsdException Locked="false" Priority="39" Name="toc 2"/>   <w:LsdException Locked="false" Priority="39" Name="toc 3"/>   <w:LsdException Locked="false" Priority="39" Name="toc 4"/>   <w:LsdException Locked="false" Priority="39" Name="toc 5"/>   <w:LsdException Locked="false" Priority="39" Name="toc 6"/>   <w:LsdException Locked="false" Priority="39" Name="toc 7"/>   <w:LsdException Locked="false" Priority="39" Name="toc 8"/>   <w:LsdException Locked="false" Priority="39" Name="toc 9"/>   <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>   <w:LsdException Locked="false" Priority="10" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Title"/>   <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>   <w:LsdException Locked="false" Priority="11" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>   <w:LsdException Locked="false" Priority="22" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Strong"/>   <w:LsdException Locked="false" Priority="20" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>   <w:LsdException Locked="false" Priority="59" SemiHidden="false" UnhideWhenUsed="false" Name="Table Grid"/>   <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>   <w:LsdException Locked="false" Priority="1" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 1"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 1"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 1"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>   <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>   <w:LsdException Locked="false" Priority="34" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>   <w:LsdException Locked="false" Priority="29" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Quote"/>   <w:LsdException Locked="false" Priority="30" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 1"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 1"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 2"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 2"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 2"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 2"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 2"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 3"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 3"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 3"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 3"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 3"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 4"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 4"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 4"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 4"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 4"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 5"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 5"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 5"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 5"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 5"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 6"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 6"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 6"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 6"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 6"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>   <w:LsdException Locked="false" Priority="19" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>   <w:LsdException Locked="false" Priority="21" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>   <w:LsdException Locked="false" Priority="31" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>   <w:LsdException Locked="false" Priority="32" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>   <w:LsdException Locked="false" Priority="33" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>   <w:LsdException Locked="false" Priority="37" Name="Bibliography"/>   <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>  </w:LatentStyles> </xml><![endif]--><!-- [if gte mso 10]>


<style>  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} </style>

 <![endif]-->Cheap Local Branching</li>
<li style="font: 7.0pt 'Times New Roman';">Everything is Local</li>
<li style="font: 7.0pt 'Times New Roman';">Git is Fast</li>
<li style="font: 7.0pt 'Times New Roman';">Git is Small</li>
<li style="font: 7.0pt 'Times New Roman';">The Staging Area</li>
<li style="font: 7.0pt 'Times New Roman';">Distributed</li>
<li style="font: 7.0pt 'Times New Roman';">Any Workflow</li>
<li style="font: 7.0pt 'Times New Roman';">Easy to Learn</li>
<li style="font: 7.0pt 'Times New Roman';">Git is the new standard</li>
</ul>
</li>
</ul>
</li>
<li>What are the advantages of using GIT?</li>
<li>What language is used in GIT?</li>
<li>What is the function of ‘GIT PUSH’ in GIT?</li>
<li>Why GIT better than Subversion?</li>
<li>What is “Staging Area” or “Index” in GIT?</li>
<li>What is GIT stash?</li>
<li>What is GIT stash drop?</li>
<li>How will you know in GIT if a branch has been already merged into master?</li>
<li>What is the function of git clone?</li>
<li>What is the function of ‘git config’?</li>
<li>What does commit object contain?</li>
<li>How can you create a repository in Git?</li>
<li>What is ‘head’ in git and how many heads can be created in a repository?</li>
<li>What is the purpose of branching in GIT?</li>
<li>What is the common branching pattern in GIT?</li>
<li>How can you bring a new feature in the main branch?</li>
<li>What is a ‘conflict’ in git?</li>
<li>How can conflict in git resolved?</li>
<li>To delete a branch what is the command that is used?</li>
<li>What is another option for merging in git?</li>
<li>What is the syntax for “Rebasing” in Git?</li>
<li>What is the difference between ‘git remote’ and ‘git clone’?</li>
<li>What is GIT version control?</li>
<li>Mention some of the best graphical GIT client for LINUX?</li>
<li>What is Subgit? Why to use Subgit?</li>
<li>What is the function of ‘git diff ’ in git?</li>
<li>What is ‘git status’ is used for?</li>
<li>What is the difference between the ‘git diff ’and ‘git status’?</li>
<li>What is the function of ‘git checkout’ in git?</li>
<li>What is the function of ‘git rm’?</li>
<li>What is the function of ‘git stash apply’?</li>
<li>What is the use of ‘git log’?</li>
<li>What is ‘git add’ is used for?</li>
<li>What is the function of ‘git reset’?</li>
<li>What is git Is-tree?</li>
<li>How git instaweb is used?</li>
<li>What does ‘hooks’ consist of in git?</li>
<li>Explain what is commit message?</li>
<li>How can you fix a broken commit?</li>
<li>What is ‘bare repository’ in GIT?</li>
<li>How do you start Git and what is the process called?</li>
<li>How do you put your local repository (repo) on the GitHub server?</li>
<li>How to delete the working branch?</li>
<li>What as the strength and weaknesses of the software?</li>
<li>But I am quite happy with Subversion (SVN). What is all this fuss about? Is there a substantial trend for distributed versioning control systems (DVCS)?</li>
<li>Isn&#8217;t DVCS something for small teams and startups? I am working in a very big company. We value established things way more than the cutting edge stuff, that may not be here to stay.</li>
<li>Okay. Let&#8217;s say we go with DVCS. Why should I take git and not mercurial?</li>
<li>I like, that git allows our developers to host the complete repository on his local machine. That makes software development faster. So why do</li>
<li>you I need Stash on top?</li>
<li>How do you use this rights management with Stash? How does it work? Will developers only get have a repository? Is that still functional then?</li>
<li>What is a pull request? What is this for? Aren&#8217;t we sharing all code with all developers and let everyone do what he wants? Is that only for</li>
<li>hierachical software development methods?</li>
<li>How would you summarize the advantages of Stash in short?</li>
<li>What is the one reason, that your customers give Atlassian today on why they purchase Stash?</li>
<li>Can you offer us a small sneak peak into your upcoming next releases? Is there anything, that you can share first hand with us?</li>
<li>What is your general roadmap for stash? Where do you want to position it near and long term?</li>
<li>Do you ultimately plan to support Mercurial? When is a good time to buy Stash, if I run with hg at the moment?</li>
<li>Why should I go for Stash in favor of GitHub Enterprise or RhodeCode?</li>
<li>Why is Stash a separated product and not part of Bitbucket. I could imagine seeing Bitbucket Enterprise resembling GitHub Enterprise.</li>
<li>Is Atlassian using Stash internally in software development? If not, why not?</li>
<li>Wouldn&#8217;t it be interesting to combine Fisheye, Crucible and Stash in one product?</li>
<li>What is the difference between GIT and SVN?</li>
<li>What are the advantages of using GIT over other tools?</li>
<li>What is GIT stash?</li>
<li>What does commit object contain?</li>
<li>How can conflict in git resolved?</li>
<li>What is the difference between ‘git remote’ and ‘git clone’?</li>
<li>Mention some of the best graphical GIT client for LINUX?</li>
<li>What does ‘hooks’ consist of in git?</li>
<li>What is ‘bare repository’ in GIT?</li>
<li>Add a line to the some.txt file and then throw out all changes since the last commit.</li>
<li>Why GIT better than Subversion?</li>
<li>How to troubleshoot Git?</li>
<li>How to troubleshoot GitLab?</li>
<li>How to troubleshoot Github?</li>
<li>How to take Gitlab backup</li>
<li>What is Git Objects? explain about Tree, blob, commit, tag, branch objects?</li>
<li>How git Object storage works?</li>
<li>What is SHA1?</li>
<li>Introduction to the GitHub platform</li>
<li>github Distributed version control synchronization</li>
<li>github Project management and repository integration</li>
<li>github Multiple remotes and Fork maintenance</li>
<li>github Remote repository interaction and dependencies</li>
</ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/interview-questions-on-git-github-and-gitlab/">All Possible Interview Questions on Git, Github and Gitlab</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/interview-questions-on-git-github-and-gitlab/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Interview Questions &#038; Answer for Build &#038; Release Engineers</title>
		<link>https://www.scmgalaxy.com/tutorials/interview-questions-answer-for-build-release-engineer/</link>
					<comments>https://www.scmgalaxy.com/tutorials/interview-questions-answer-for-build-release-engineer/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 22 May 2012 10:37:35 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Answer]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[Build & Release Engineer Interview]]></category>
		<category><![CDATA[Build & Release Engineer Interview Questions & Answer]]></category>
		<category><![CDATA[Build & Release Interview]]></category>
		<category><![CDATA[Build & Release Interview Q&A]]></category>
		<category><![CDATA[Build & Release Interview Questions & Answer]]></category>
		<category><![CDATA[Build and Release]]></category>
		<category><![CDATA[Build and Release Job Interview]]></category>
		<category><![CDATA[Build and Release Professional Interview]]></category>
		<category><![CDATA[Engineer]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[Interview Questions & Answer]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Release]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2012/05/22/interview-questions-answer-for-build-release-engineer/</guid>

					<description><![CDATA[<p>I get many emails and linkedin personal message about sharing interview questions for Build &#38; Release Engineer and Configuration Engineer. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/interview-questions-answer-for-build-release-engineer/">Interview Questions &#038; Answer for Build &#038; Release Engineers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3814 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/05/build-release-engineer-inte.png" alt="build-release-engineer-interview-questions-answer" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/05/build-release-engineer-inte.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/05/build-release-engineer-inte-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>I get many emails and linkedin personal message about sharing interview questions for Build &amp; Release Engineer and Configuration Engineer.</p>
<p>I have asked some of my friends to share too and now here is the consolidated list of interview questions which is very much commonly asked in interview. if you like it, please share with other members and contribut it too. I will add in this article in next update. mail me at rajesh at scmgalaxy.com</p>
<p><strong>Tag Line:</strong></p>
<p>Interview Questions &amp; Answer for Build Engineer<br />
Interview Questions &amp; Answer for Release Engineer<br />
Interview Questions &amp; Answer for Configuration Engineer<br />
Interview Questions &amp; Answer for Build &amp; Release Engineer</p>
<p><strong>Interview Questions and Answer on configuration management?</strong></p>
<ul>
<li>What do you think about configuration management?</li>
<li>What do you understand about Change Management?</li>
<li>branching methodologies and what currently theya re using it. Show with some example with pros and cons</li>
<li>Concept of Merging and Why do we need?</li>
</ul>
<p><strong>Interview Questions and Answer on build Management?</strong></p>
<ul>
<li>What do you think about build Management?</li>
<li>What are the key benefit of build Automation and what are the key inputs to automate the build process in the project?</li>
<li>Discuss about tools and technology which help to automate the entire build cycle.</li>
<li>What is Continuous Build Integration and How this is useful for the project?</li>
<li>What is daily build &amp; nightly builds and what are the process need to set up to Automate &amp; monitor consistently.</li>
<li>Explain in details for writing build sciprt for any project</li>
</ul>
<p><strong>Interview Questions and Answer on release Management?</strong></p>
<ul>
<li>What is release Management?</li>
<li>Talk about Release Management on several platforms?</li>
<li>What do you understand about Packaging and Deployment?</li>
<li>How to Automate Remote Deployment of Builds on Development &amp; Test Servers?</li>
</ul>
<p><strong>Some Generic Interview questions for Build and Release and SCM Professionals.</strong></p>
<ul>
<li>What is workflow management. exmplain this in details</li>
<li>What do you understand about Code Coverage? Describe repective tools &amp; utilities.</li>
<li>Describe the Integrate Packaging scripts &amp; Test Automation scripts with build &amp; Monitor build verification test status and tools.</li>
<li>How to co-ordinate with development team to increase their productiavity.</li>
<li>What do you understand about multisite project</li>
<li>How SCM team perform integration and co-ordination between Dev and QA</li>
<li>How do you Troubleshooting your build server. What kind of issues you get in build server or cm server?</li>
<li>java Comipler issues in build server and their version</li>
<li>C++ compiler issues in build server and their version</li>
<li>What are basic skills required for Perforce administration including Command Line info.</li>
<li>Explain the best practice for Setup process &amp; maintain the Archive of software releases (internal &amp; external) &amp; license management of Third Party Libraries</li>
<li>Concept of labeling, branching and merging in perforce / svn and git</li>
<li>Best Practice and strategy of branching and merging in perforce</li>
<li>Talk about agile and attempts to minimize risk by developing software in short iterations.</li>
<li>Why agile on Iterative development model and Waterfall software development model?</li>
<li>What are Bug /Issue Tatcking tools available and descibe them.</li>
</ul>
<p><strong>Source code control best practice?</strong></p>
<ul>
<li>Use a reliable and dedicated server to house your code.</li>
<li>Backup your code daily.</li>
<li>Test your backup and restore processes.</li>
<li>Choose a source control tool that fits your organization&#8217;s requirements.</li>
<li>Perform all tool specific administrative tasks.</li>
<li>Keep your code repositories as clean as possible.</li>
<li>Secure access to your code.</li>
</ul>
<p><strong>Describe software build best practices?</strong></p>
<ul>
<li>Fully automated build process</li>
<li>Build repeatability</li>
<li>Build reproducibility</li>
<li>Build process adherence</li>
</ul>
<p><strong>Tools Comparison and Differences</strong></p>
<ul>
<li>Difference Between CVS and SVN</li>
<li>Difference Between perforce and SVN</li>
<li>Difference Between perforce and Clearcasee</li>
<li>Difference Between VSS and TFSC</li>
<li>Difference Between perforce and MKS</li>
<li>Difference Between Bea Weblogic and IBM Websphere</li>
</ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/interview-questions-answer-for-build-release-engineer/">Interview Questions &#038; Answer for Build &#038; Release Engineers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/interview-questions-answer-for-build-release-engineer/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Most asked Perl Interview Questions and Answers</title>
		<link>https://www.scmgalaxy.com/tutorials/perl-interview-questions-and-answers/</link>
					<comments>https://www.scmgalaxy.com/tutorials/perl-interview-questions-and-answers/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 22 May 2012 00:00:00 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Answer]]></category>
		<category><![CDATA[Frequently Asked]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[Interview Questions & Answer]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[Most Asked]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Perl Interview]]></category>
		<category><![CDATA[Perl Interview Q&A]]></category>
		<category><![CDATA[Perl Interview Questions & Answer]]></category>
		<category><![CDATA[Perl Job Interview]]></category>
		<category><![CDATA[Perl Professional Interview]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Selected]]></category>
		<category><![CDATA[Top]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2012/05/22/perl-interview-questions-and-answers/</guid>

					<description><![CDATA[<p><strong>What is Perl one-liner? </strong></p>
<p>There are two ways a Perl script can be run:</p>
<p>a)from a command line, called one-liner, that means you type and execute immediately on the command line. You'll need the -e option to start like "perl -e "print "Hello";". One-liner doesn't mean one Perl statement. One-liner may contain many statements in one line.</p>
<p>b)from a script file, called Perl program.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perl-interview-questions-and-answers/">Most asked Perl Interview Questions and Answers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3817 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/05/perl-interview-questions-an.png" alt="perl-interview-questions-answers" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/05/perl-interview-questions-an.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/05/perl-interview-questions-an-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>What is Perl one-liner? </strong></p>
<p>There are two ways a Perl script can be run:</p>
<p>a)from a command line, called one-liner, that means you type and execute immediately on the command line. You&#8217;ll need the -e option to start like &#8220;perl -e &#8220;print &#8220;Hello&#8221;;&#8221;. One-liner doesn&#8217;t mean one Perl statement. One-liner may contain many statements in one line.</p>
<p>b)from a script file, called Perl program.</p>
<p><strong>Assuming both a local($var) and a my($var) exist, what&#8217;s the difference between ${var} and ${&#8220;var&#8221;}? </strong></p>
<p>${var} is the lexical variable $var, and ${&#8220;var&#8221;} is the dynamic variable $var.</p>
<p>Note that because the second is a symbol table lookup, it is disallowed under `use strict &#8220;refs&#8221;&#8216;. The words global, local, package, symbol table, and dynamic all refer to the kind of variables that local() affects, whereas the other sort, those governed by my(), are variously knows as private, lexical, or scoped variable.</p>
<p>Name all the prefix dereferencer in perl?</p>
<p><strong>The symbol that starts all scalar variables is called a prefix dereferencer. The different types of dereferencer are.</strong></p>
<p>(i) $-Scalar variables</p>
<p>(ii) %-Hash variables</p>
<p>(iii) @-arrays</p>
<p>(iv) &amp;-subroutines</p>
<p>(v) Type globs-*myvar stands for @myvar, %myvar.</p>
<p><strong>What exactly is grooving and shortening of the array?</strong></p>
<p>You can change the number of elements in an array simply by changing the value of the last index of/in the array $#array. In fact, if you simply refer to a non existent element in an array perl extends the array as needed, creating new elements. It also includes new elements in its array.</p>
<p><strong>What are the three ways to empty an array?</strong></p>
<p>The three different ways to empty an array are as follows</p>
<ol>
<li>You can empty an array by setting its length to a negative number.</li>
<li>Another way of empting an array is to assign the null list ().</li>
<li>Try to clear an array by setting it to undef, but be aware when you set to undef.</li>
</ol>
<p><strong>How do you work with array slices</strong></p>
<p>An array slice is a section of an array that acts like a list, and you indicate what elements to put into the slice by using multiple array indexes in square brackets. By specifying the range operator you can also specify a slice.</p>
<p><strong>What is meant by splicing arrays explain in context of list and scalar.</strong></p>
<p>Splicing an array means adding elements from a list to that array, possibly replacing elements now in the array. In list context, the splice function returns the elements removed from the array. In scalar context, the splice function returns the last element removed.</p>
<p><strong>What are the different types of perl operators?</strong></p>
<p>Please refer following URL..<a href="http://www.tutorialspoint.com/perl/perl_operators.htm" target="_blank" rel="noopener noreferrer">Perl Operators</a></p>
<p><strong>What are the two different types of data perl handles?</strong><br />
Perl handles two types of data they are<br />
(i) Scalar Variables and<br />
(ii) Lists<br />
Scalar variables hold a single data item whereas lists hold multiple data items.</p>
<p><strong>What are scalar variables?</strong><br />
Scalar variables are what many programming languages refer to as simple variables. They hold a single data item, a number, a string, or a perl reference. Scalars are called scalars to differentiate them from constructs that can hold more than one item, like arrays.</p>
<p><strong>Explain about lists?</strong><br />
A list is a construct that associates data elements together and you can specify a list by enclosing those elements in parenthesis and separating them with commas. They could themselves be arrays, hashes or even other lists. Lists do not have a specific list data type.</p>
<p><strong>Name all the prefix dereferencer in perl?</strong><br />
The symbol that starts all scalar variables is called a prefix dereferencer. The different types of dereferencer are.<br />
(i) $-Scalar variables<br />
(ii) %-Hash variables<br />
(iii) @-arrays<br />
(iv) &amp;-subroutines<br />
(v) Type globs-*myvar stands for @myvar, %myvar.</p>
<p><strong>Explain about an ivalue?</strong><br />
An ivalue is an item that can serve as the target of an assignment. The term I value originally meant a “left value”, which is to say a value that appears on the left. An ivalue usually represents a data space in memory and you can store data using the ivalues name. Any variable can serve as an ivalue.</p>
<p><strong>How does a “grep” function perform?</strong><br />
Grep returns the number of lines the expression is true. Grep returns a sublist of a list for which a specific criterion is true. This function often involves pattern matching. It modifies the elements in the original list.</p>
<p><strong>Explain about Typeglobs?</strong><br />
Type globs are another integral type in perl. A typeglob`s prefix derefrencer is *, which is also the wild card character because you can use typeglobs to create an alias for all types associated with a particular name. All kinds of manipulations are possible with typeglobs.</p>
<p><strong>Is there any way to add two arrays together?</strong></p>
<p>Of course you can add two arrays together by using push function. The push function adds a value or values to the end of an array. The push function pushes the values of list onto the end of the array. Length of an array can be increased by the length of list.</p>
<p><strong>How to use the command shift?</strong><br />
Shift array function shifts off the first value of the array and returns it, thereby shortening the array by one element and moving everything from one place to the left. If you don’t specify an array to shift, shift uses @ ARGV, the array of command line arguments passed to the script or the array named @-.</p>
<p><strong>Which has the highest precedence, List or Terms? Explain?</strong><br />
Terms have the highest precedence in perl. Terms include variables, quotes, expressions in parenthesis etc. List operators have the same level of precedence as terms. Specifically, these operators have very strong left word precedence.</p>
<p><strong>What is a short circuit operator?</strong><br />
The C-Style operator, ll, performs a logical (or) operation and you can use it to tie logical clauses together, returning an overall value of true if either clause is true. This operator is called a short-circuit operator because if the left operand is true the right operand is not checked or evaluated.</p>
<p><strong>What are the different forms of goto in perl? Explain?</strong><br />
The three forms of goto are as follows. They are<br />
(i) Goto label<br />
(ii) Goto name<br />
(iii) Goto expr<br />
The first form, goto LABEL, transfers execution to the statement labeled LABEL. The second form, goto EXPR, expects EXPR to evaluate to a label. The last form goto &amp;name is used with subroutines. This goto statement is used only when there is a necessity as it can create havoc in a program.</p>
<p><strong>What are the different types of eval statements?</strong><br />
There are two different types of eval statements they are eval EXPR and eval BLOCK. Eval EXPR executes an expression and eval BLOCK executes BLOCK. Eval Block executes an entire block, BLOCK. First one is used when you want your code passed in the expression and the second one is used to parse the code in the block.</p>
<p><strong>Explain about returning values from subroutines (functions)?</strong><br />
The return value of the subroutine is the value of the last expression evaluated or you can explicitly use a return statement to exit the subroutine specifying the return value. That return value is evaluated in the appropriate content depending on the content of the subroutine call.</p>
<p><strong>What is sed?</strong><br />
sed is stream editor, a Unix tool for working with streams of text data. See the awful truth about sed.</p>
<p><strong>How do you substitute strings with sed?</strong><br />
Use ’s/old/new’ command, so sed ’s/hello/goodbye/’ would substitute the occurrence of the word hello to goodbye.</p>
<p><strong>How do you inject text with sed? </strong><br />
&amp; in the substitution string defines the pattern found in the search string. As an example, here’s us trying to find a word ‘hello’ and replacing it with ‘hello and how are you’:<br />
echo ‘hello there’ | sed ’s/^hello/&amp; and how are you/’</p>
<p><strong>Can I find several patterns and refer to them in the replacement string?</strong><br />
Yes, use (pattern) and then refer to your patterns as \1, \2, \3 and so on.</p>
<p><strong>If the string is ‘old old old’ and I run ’s/old/new’, I get ‘new old old’ as the result. I need ‘new new new‘. </strong><br />
You forgot the global modifier, which would replace every occurrence of the pattern with the substitution. ’s/old/new/g‘ will work.</p>
<p><strong>But I want ‘old old new’ from the previous example. </strong>&#8211; Just use the numeric modifier saying you want the third occurrence to be replaced. ’s/old/new/3‘ will work.</p>
<p><strong>I wrote a rather complex sed script. How do I save and run it? </strong><br />
Assuming that your file is named myscript1.sed, you can invoke sed -f myscript1.sed.</p>
<p><strong>How do I delete trailing whitespaces from each line? </strong><br />
sed ’s/[ \t]*$//’ Here we’re replacing any occurrence of a space or a tab with nothing. Check sed one-liners for more examples.</p>
<p><strong>How do you print just a few first lines of the file? &#8211; sed 1q will give you just the first line, sed 10q the first 10 lines.</strong></p>
<p><strong>How do you replace a pattern only if it’s found, so that it’s executed faster? &#8211; Nest the replacement statement: sed ‘/old/ s/old/new/g’ file.txt</strong></p>
<p><strong>How do you know the reference of a variable whether it is a reference,scaller, hash or array?</strong><br />
There is a &#8216;ref&#8217; function that lets you know</p>
<p><strong>What is the difference between &#8216;use&#8217; and &#8216;require&#8217; function?</strong></p>
<p>Use: 1. the method is used only for modules (only to include .pm type file) 2. the included object are verified at the time of compilation. 3. No Need to give file extentsion. Require: 1. The method is used for both libraries ( package ) and modules 2. The include objects are varified at the run time. 3. Need to give file Extension.</p>
<p><strong>What is the use of &#8216;chomp&#8217; ? what is the difference between &#8216;chomp&#8217; and &#8216;chop&#8217;?</strong></p>
<p>Ans. &#8216;chop&#8217; functiononly removes the last character completely &#8216;from the scaler, where as &#8216;chomp&#8217; function only removes the last character if it is a newline. by default, chomp only removes what is currently defined as the $INPUT_RECORD_SEPARATOR. whenever you call &#8216;chomp &#8216;, it checks the value of a special variable &#8216;$/&#8217;. whatever the value of &#8216;$/&#8217; is eliminated from the scaler. by default the value of &#8216;$/&#8217; is &#8216;n&#8217;</p>
<p><strong>Print this array @arr in reversed case-insensitive order</strong></p>
<p>Ans&gt; @solution = sort {lc $a comp lc$b } @arr.</p>
<p><strong>What is &#8216;-&gt;&#8217; in Perl?</strong></p>
<p>Ans. it is a symbolic link to link one file name to a new name. so lets say we do it like file1-&gt; file2, if we read file1, we end up reading file2.</p>
<p><strong>how do you check the return code of system call?</strong></p>
<p>System calls &#8220;traditionally&#8221; returns 9 when successful and 1 when it fails. system (cmd) or die &#8220;Error in command&#8221;;</p>
<p><strong>#create directory if not there</strong><br />
if (! -s &#8220;$temp/engl_2/wf&#8221;){ System &#8220;mkdir -p $temp/engl_2/wf&#8221;; } if (! -s &#8220;$temp/backup_basedir&#8221;){ system &#8220;mkdir -p $temp/backup_basedir&#8221;; } ${pack_2} = -M &#8220;${temp}/engl_2/wf/${wf_package_name}.data&#8221;; ${new_pack}= -M &#8220;{pack}/package.data&#8221;; What is the use of -M and -s in the above script?</p>
<p>Ans. -s means is filename a non-empty file -M how long since filename modified?</p>
<p><strong>How to substitute a particular string in a file containing million of record?</strong></p>
<p>Ans. perl -p -ibak -e &#8216;s/search_str/replace_str/g&#8217; filename</p>
<p><strong>I have a variable named $objref which is defined in main package. I want to make it as a Object of class XYZ. how could I do it?</strong></p>
<p>Ans. use XYZ my $objref =XYZ -&gt; new() OR, bless $objref, &#8216;XYZ&#8217;;</p>
<p><strong>what is meant by a &#8216;pack&#8217; in perl?</strong></p>
<p>Pack Converts a list into a binary representation. Takes an array or list of values and packs it into a binary structure, returning the string containing the structure It takes a LIST of values and converts it into a string. The string contaings a con-catenation of the converted values. Typically, each converted values looks like its machine-level repesentation. for example, on 32-bit machines a converted integer may be representated by a sequence of 4 bytes.</p>
<p><strong>how to implement stack in Perl?</strong></p>
<p>through push() and shift() function. push adds the element at the last of array and shift() removes from the beginning of an array.</p>
<p><strong>What is Grep used for in Perl?</strong></p>
<p>Grep is used with regular expression to check if a parituclar value exist in an array. it returns 0 it the value does not exists, 1 otherwise.</p>
<p><strong>How to code in Perl to implement the tail function in unix?</strong></p>
<p>And. You have to maintain a structure to store the line number and the size of the file at that time eg. 1-10bytes, 2-18bytes.. you have a counter to increase the number of lines to find out the number of lines in the file. once you are through the file, you will know the size of the file at any nth line, use &#8216;sysseek&#8217; to move the file pointer back to that position (last 10) and thens tart reading till the end.</p>
<p><strong>15. How do you navigate thorugh an XML documents?</strong></p>
<p>Ans. You can use the XML::DOM navigation methods to navigate thorugh an XML::DOM node tree and use the getnodevalue to recover the data. DOM Parser is used when it is neede to do node operation. Instead we may use SAX parser if you require simple processing of the xml structure.</p>
<p><strong>Why do you use Perl?</strong></p>
<p>* Perl is a powerful free interpreter.<br />
* Perl is portable, flexible and easy to learn.</p>
<p><strong> How do I set environment variables in Perl programs?</strong></p>
<p>You can just do something like this:<br />
$ENV{&#8216;PATH&#8217;} = &#8216;&#8230;&#8217;;<br />
As you may remember, &#8220;%ENV&#8221; is a special hash in Perl that contains the value of all your environment variables.<br />
Because %ENV is a hash, you can set environment variables just as you&#8217;d set the value of any Perl hash variable. Here&#8217;s how you can set your PATH variable to make sure the following four directories are in your path::</p>
<p>$ENV{&#8216;PATH&#8217;} = &#8216;/bin:/usr/bin:/usr/local/bin:/home/yourname/bin&#8217;;</p>
<p><strong>Which of these is a difference between C++ and Perl?</strong><br />
Perl can have objects whose data cannot be accessed outside its class, but C++ cannot.</p>
<p>Perl can use closures with unreachable private data as objects, and C++ doesn&#8217;t support closures. Furthermore, C++ does support pointer arithmetic via `int *ip = (int*)&amp;object&#8217;, allowing you do look all over the object. Perl doesn&#8217;t have pointer arithmetic. It also doesn&#8217;t allow `#define private public&#8217; to change access rights to foreign objects. On the other hand, once you start poking around in /dev/mem, no one is safe.</p>
<p><strong>How to open and read data files with Perl</strong></p>
<p>Data files are opened in Perl using the open() function. When you open a data file, all you have to do is specify (a) a file handle and (b) the name of the file you want to read from.<br />
As an example, suppose you need to read some data from a file named &#8220;checkbook.txt&#8221;. Here&#8217;s a simple open statement that opens the checkbook file for read access: open (CHECKBOOK, &#8220;checkbook.txt&#8221;); In this example, the name &#8220;CHECKBOOK&#8221; is the file handle that you&#8217;ll use later when reading from the checkbook.txt data file. Any time you want to read data from the checkbook file, just use the file handle named &#8220;CHECKBOOK&#8221;.<br />
Now that we&#8217;ve opened the checkbook file, we&#8217;d like to be able to read what&#8217;s in it. Here&#8217;s how to read one line of data from the checkbook file:<br />
$record = &lt; CHECKBOOK &gt; ;<br />
After this statement is executed, the variable $record contains the contents of the first line of the checkbook file. The &#8220;&lt;&gt;&#8221; symbol is called the line reading operator.<br />
To print every record of information from the checkbook file</p>
<p>open (CHECKBOOK, &#8220;checkbook.txt&#8221;) || die &#8220;couldn&#8217;t open the file!&#8221;;<br />
while ($record = &lt; CHECKBOOK &gt;) {<br />
print $record;<br />
}<br />
close(CHECKBOOK);</p>
<p><strong>How do I do fill_in_the_blank for each file in a directory?</strong><br />
Answer:Here&#8217;s code that just prints a listing of every file in the current directory:<br />
#!/usr/bin/perl -w<br />
opendir(DIR, &#8220;.&#8221;);<br />
@files = readdir(DIR);<br />
closedir(DIR);<br />
foreach $file (@files) {<br />
print &#8220;$file\n&#8221;;<br />
}</p>
<p><strong> How do I generate a list of all .html files in a directory?</strong></p>
<p>Answer:<br />
Here&#8217;s a snippet of code that just prints a listing of every file in the current directory that ends with the extension .html:<br />
#!/usr/bin/perl -w<br />
opendir(DIR, &#8220;.&#8221;);<br />
@files = grep(/\.html$/,readdir(DIR));<br />
closedir(DIR);<br />
foreach $file (@files) {<br />
print &#8220;$file\n&#8221;;<br />
}</p>
<p><strong>What happens when you return a reference to a private variable?</strong></p>
<p>Perl keeps track of your variables, whether dynamic or otherwise, and doesn&#8217;t free things before you&#8217;re done using them.</p>
<p><strong>How to turn on Perl warnings? Why is that important?</strong></p>
<p>Perl is very forgiving of strange and sometimes wrong code, which can mean hours spent searching for bugs and weird results. Turning on warnings helps uncover common mistakes and strange places and save a lot of debugging time in the long run. There are various ways ofturning on Perl warnings:</p>
<p>* For Perl one-liner, use -w option on the command line.<br />
* On Unix or Windows, use the -w option in the shebang line (The first # line in the script). Note: Windows Perl interpreter may not require it.<br />
* For other systems, choose compiler warnings, or check compiler documentation.</p>
<p><strong>What are scalar data and scalar variables?</strong></p>
<p>Perl has a flexible concept of data types. Scalar means a single thing, like a number or string. So the Java concept of int, float, double and string equals to Perl\&#8217;s scalar in concept and the numbers and strings are exchangeable. Scalar variable is a Perl variable that is used to store scalar data. It uses a dollar sign $ and followed by one or more alphanumeric characters or underscores. It is case sensitive.</p>
<p><strong>Why should I use the -w argument with my Perl programs?</strong></p>
<p>Many Perl developers use the -w option of the interpreter, especially during the development stages of an application. This warning option turns on many warning messages that can help you understand and debug your applications.<br />
To use this option on Unix systems, just include it on the first line of the program, like this:<br />
#!/usr/bin/perl -w<br />
If you develop Perl apps on a DOS/Windows computer, and you&#8217;re creating a program named myApp.pl, you can turn on the warning messages when you run your program like this:<br />
perl -w myApp.pl</p>
<p><strong>I want users send data by formmail but when they send nothing or call it from web site they will see error. codes in PHP like this: if (isset($HTTP_POST_VARS)){ &#8230;&#8230;&#8230;. } else{ echo (&#8220;error lalalalal&#8221;) } How it will look in perl?</strong></p>
<p>In php it will be like<br />
if (isset($HTTP_POST_VARS)){<br />
&#8230;.<br />
}<br />
In perl, tried this.<br />
if ($ENV{&#8216;REQUEST_METHOD&#8217;} eq &#8216;POST&#8217;){<br />
&#8230;..<br />
}</p>
<p><strong>What is the output of the following Perl program?</strong><br />
1 $p1 = &#8220;prog1.java&#8221;;<br />
2 $p1 =~ s/(.*)\.java/$1.cpp/;<br />
3 print &#8220;$p1\n&#8221;;</p>
<p>Answer:What is the output of the following Perl program?<br />
1 $p1 = &#8220;prog1.java&#8221;;<br />
2 $p1 =~ s/(.*)\.java/$1.cpp/;<br />
3 print &#8220;$p1\n&#8221;;</p>
<p>prog1.cpp</p>
<p><strong>Why are not Perls patterns regular expressions?</strong></p>
<p>Because Perl patterns have backreferences.<br />
A regular expression by definition must be able to determine the next state in the finite automaton without requiring any extra memory to keep around previous state. A pattern /([ab]+)c\1/ requires the state machine to remember old states, and thus disqualifies such patterns as being regular expressions in the classic sense of the term.</p>
<p><strong>What does Perl do if you try to exploit the execve(2) race involving setuid scripts?</strong></p>
<p>Sends mail to root and exits.<br />
It has been said that all programs advance to the point of being able to automatically read mail. While not quite at that point (well, without having a module loaded), Perl does at least automatically send it.</p>
<p><strong>How do I do &lt; fill-in-the-blank &gt; for each element in a hash?</strong></p>
<p>Here&#8217;s a simple technique to process each element in a hash:</p>
<p>#!/usr/bin/perl -w</p>
<p>%days = (<br />
&#8216;Sun&#8217; =&gt;&#8217;Sunday&#8217;,<br />
&#8216;Mon&#8217; =&gt; &#8216;Monday&#8217;,<br />
&#8216;Tue&#8217; =&gt; &#8216;Tuesday&#8217;,<br />
&#8216;Wed&#8217; =&gt; &#8216;Wednesday&#8217;,<br />
&#8216;Thu&#8217; =&gt; &#8216;Thursday&#8217;,<br />
&#8216;Fri&#8217; =&gt; &#8216;Friday&#8217;,<br />
&#8216;Sat&#8217; =&gt; &#8216;Saturday&#8217; );</p>
<p>foreach $key (sort keys %days) {<br />
print &#8220;The long name for $key is $days{$key}.\n&#8221;;<br />
}</p>
<p><strong>How do I sort a hash by the hash key?</strong></p>
<p>Suppose we have a class of five students.<br />
Their names are kim, al, rocky, chrisy, and jane.</p>
<p>Here&#8217;s a test program that prints the contents<br />
of the grades hash, sorted by student name:</p>
<p>#!/usr/bin/perl -w</p>
<p>%grades = (<br />
kim =&gt; 96,<br />
al =&gt; 63,<br />
rocky =&gt; 87,<br />
chrisy =&gt; 96,<br />
jane =&gt; 79,<br />
);</p>
<p>print &#8220;\n\tGRADES SORTED BY STUDENT NAME:\n&#8221;;<br />
foreach $key (sort (keys(%grades))) {<br />
print &#8220;\t\t$key \t\t$grades{$key}\n&#8221;;<br />
}</p>
<p>The output of this program looks like this:</p>
<p>GRADES SORTED BY STUDENT NAME:<br />
al 63<br />
chrisy 96<br />
jane 79<br />
kim 96<br />
rocky 87</p>
<p>}</p>
<p><strong>How do you print out the next line from a filehandle with all its bytes reversed?</strong></p>
<p>print scalar reverse scalar &lt;FH&gt;<br />
Surprisingly enough, you have to put both the reverse and the &lt;FH&gt; into scalar context separately for this to work.</p>
<p><strong>How do I send e-mail from a Perl/CGI program on a Unix system?</strong></p>
<p>Sending e-mail from a Perl/CGI program on a Unix computer system is usually pretty simple. Most Perl programs directly invoke the Unix sendmail program. We&#8217;ll go through a quick example here.<br />
Assuming that you&#8217;ve already have e-mail information you need, such as the send-to address and subject, you can use these next steps to generate and send the e-mail message:<br />
# the rest of your program is up here &#8230;<br />
open(MAIL, &#8220;|/usr/lib/sendmail -t&#8221;);<br />
print MAIL &#8220;To: $sendToAddress\n&#8221;;<br />
print MAIL &#8220;From: $myEmailAddress\n&#8221;;<br />
print MAIL &#8220;Subject: $subject\n&#8221;;<br />
print MAIL &#8220;This is the message body.\n&#8221;;<br />
print MAIL &#8220;Put your message here in the body.\n&#8221;;<br />
close (MAIL);</p>
<p><strong>How to read from a pipeline with Perl</strong><br />
Example 1:</p>
<p>To run the date command from a Perl program, and read the output<br />
of the command, all you need are a few lines of code like this:</p>
<p>open(DATE, &#8220;date|&#8221;);<br />
$theDate = &lt;DATE&gt;;<br />
close(DATE);</p>
<p>The open() function runs the external date command, then opens<br />
a file handle DATE to the output of the date command.</p>
<p>Next, the output of the date command is read into<br />
the variable $theDate through the file handle DATE.</p>
<p>Example 2:</p>
<p>The following code runs the &#8220;ps -f&#8221; command, and reads the output:</p>
<p>open(PS_F, &#8220;ps -f|&#8221;);<br />
while (&lt;PS_F&gt;) {<br />
($uid,$pid,$ppid,$restOfLine) = split;<br />
# do whatever I want with the variables here &#8230;<br />
}<br />
close(PS_F);</p>
<p><strong>Why is it hard to call this function: sub y { &#8220;because&#8221; }</strong></p>
<p>Because y is a kind of quoting operator.<br />
The y/// operator is the sed-savvy synonym for tr///. That means y(3) would be like tr(), which would be looking for a second string, as in tr/a-z/A-Z/, tr(a-z)(A-Z), or tr[a-z][A-Z].</p>
<p><strong>What does $result = f() .. g() really return?</strong></p>
<p>False so long as f() returns false, after which it returns true until g() returns true, and then starts the cycle again.<br />
This is scalar not list context, so we have the bistable flip-flop range operator famous in parsing of mail messages, as in `$in_body = /^$/ .. eof()&#8217;. Except for the first time f() returns true, g() is entirely ignored, and f() will be ignored while g() later when g() is evaluated. Double dot is the inclusive range operator, f() and g() will both be evaluated on the same record. If you don&#8217;t want that to happen, the exclusive range operator, triple dots, can be used instead. For extra credit, describe this:<br />
$bingo = ( a() .. b() ) &#8230; ( c() .. d() );</p>
<p><strong>Why does Perl not have overloaded functions?</strong></p>
<p>Because you can inspect the argument count, return context, and object types all by yourself.<br />
In Perl, the number of arguments is trivially available to a function via the scalar sense of @_, the return context via wantarray(), and the types of the arguments via ref() if they&#8217;re references and simple pattern matching like /^\d+$/ otherwise. In languages like C++ where you can&#8217;t do this, you simply must resort to overloading of functions.</p>
<p><strong>What does read() return at end of file?</strong></p>
<p>0<br />
A defined (but false) 0 value is the proper indication of the end of file for read() and sysread().</p>
<p><strong>What does new $cur-&gt;{LINK} do? (Assume the current package has no new() function of its own.)</strong></p>
<p>$cur-&gt;new()-&gt;{LINK}<br />
The indirect object syntax only has a single token lookahead. That means if new() is a method, it only grabs the very next token, not the entire following expression.<br />
This is why `new $obj[23] arg&#8217; does&#8217;t work, as well as why `print $fh[23] &#8220;stuff\n&#8221;&#8216; does&#8217;t work. Mixing notations between the OO and IO notations is perilous. If you always use arrow syntax for method calls, and nothing else, you&#8217;ll not be surprised.</p>
<p><strong>How do I sort a hash by the hash value?</strong></p>
<p>Here&#8217;s a program that prints the contents<br />
of the grades hash, sorted numerically by the hash value:</p>
<p>#!/usr/bin/perl -w</p>
<p># Help sort a hash by the hash &#8216;value&#8217;, not the &#8216;key&#8217;.<br />
to highest).<br />
sub hashValueAscendingNum {<br />
$grades{$a} &lt;=&gt; $grades{$b};<br />
}</p>
<p># Help sort a hash by the hash &#8216;value&#8217;, not the &#8216;key&#8217;.<br />
# Values are returned in descending numeric order<br />
# (highest to lowest).<br />
sub hashValueDescendingNum {<br />
$grades{$b} &lt;=&gt; $grades{$a};<br />
}</p>
<p>%grades = (<br />
student1 =&gt; 90,<br />
student2 =&gt; 75,<br />
student3 =&gt; 96,<br />
student4 =&gt; 55,<br />
student5 =&gt; 76,<br />
);</p>
<p>print &#8220;\n\tGRADES IN ASCENDING NUMERIC ORDER:\n&#8221;;<br />
foreach $key (sort hashValueAscendingNum (keys(%grades))) {<br />
print &#8220;\t\t$grades{$key} \t\t $key\n&#8221;;<br />
}</p>
<p>print &#8220;\n\tGRADES IN DESCENDING NUMERIC ORDER:\n&#8221;;<br />
foreach $key (sort hashValueDescendingNum (keys(%grades))) {<br />
print &#8220;\t\t$grades{$key} \t\t $key\n&#8221;;<br />
}</p>
<p><strong>How to read file into hash array ?</strong></p>
<p>open(IN, &#8220;&lt;name_file&#8221;)<br />
or die &#8220;Couldn&#8217;t open file for processing: $!&#8221;;<br />
while (&lt;IN&gt;) {<br />
chomp;<br />
$hash_table{$_} = 0;<br />
}<br />
close IN;</p>
<p>print &#8220;$_ = $hash_table{$_}\n&#8221; foreach keys %hash_table;</p>
<p><strong>How do you find the length of an array?</strong></p>
<p>$@array</p>
<p><strong>What value is returned by a lone return; statement?</strong></p>
<p>The undefined value in scalar context, and the empty list value () in list context.<br />
This way functions that wish to return failure can just use a simple return without worrying about the context in which they were called.</p>
<p><strong>What is the difference between /^Foo/s and /^Foo/?</strong></p>
<p>The second would match Foo other than at the start of the record if $* were set.<br />
The deprecated $* flag does double duty, filling the roles of both /s and /m. By using /s, you suppress any settings of that spooky variable, and force your carets and dollars to match only at the ends of the string and not at ends of line as well &#8212; just as they would if $* weren&#8217;t set at all.</p>
<p><strong>Does Perl have reference type?</strong></p>
<p>Yes. Perl can make a scalar or hash type reference by using backslash operator.<br />
For example<br />
$str = &#8220;here we go&#8221;; # a scalar variable<br />
$strref = \$str; # a reference to a scalar</p>
<p>@array = (1..10); # an array<br />
$arrayref = \@array; # a reference to an array<br />
Note that the reference itself is a scalar.</p>
<p><strong>How to dereference a reference?</strong></p>
<p>There are a number of ways to dereference a reference.<br />
Using two dollar signs to dereference a scalar.<br />
$original = $$strref;<br />
Using @ sign to dereference an array.<br />
@list = @$arrayref;<br />
Similar for hashes.</p>
<p><strong>What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?</strong></p>
<p>5<br />
length() is a built-in prototyped as sub length($), and a scalar prototype silently changes aggregates into radically different forms. The scalar sense of a hash is false (0) if it&#8217;s empty, otherwise it&#8217;s a string representing the fullness of the buckets, like &#8220;18/32&#8221; or &#8220;39/64&#8221;. The length of that string is likely to be 5. Likewise, `length(@a)&#8217; would be 2 if there were 37 elements in @a.</p>
<p><strong>If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{&#8220;Foo::&#8221;.EXPR}?</strong></p>
<p>The second is disallowed under `use strict &#8220;refs&#8221;&#8216;.<br />
Dereferencing a string with *{&#8220;STR&#8221;} is disallowed under the refs stricture, although *{STR} would not be. This is similar in spirit to the way ${&#8220;STR&#8221;} is always the symbol table variable, while ${STR} may be the lexical variable. If it&#8217;s not a bareword, you&#8217;re playing with the symbol table in a particular dynamic fashion.</p>
<p><strong>How do I do &lt; fill-in-the-blank &gt; for each element in an array?</strong></p>
<p>#!/usr/bin/perl -w<br />
@homeRunHitters = (&#8216;McGwire&#8217;, &#8216;Sosa&#8217;, &#8216;Maris&#8217;, &#8216;Ruth&#8217;);<br />
foreach (@homeRunHitters) {<br />
print &#8220;$_ hit a lot of home runs in one year\n&#8221;;<br />
}</p>
<p><strong>How do I replace every &lt;TAB&gt; character in a file with a comma?</strong></p>
<p>perl -pi.bak -e &#8216;s/\t/,/g&#8217; myfile.txt</p>
<p><strong>What is the easiest way to download the contents of a URL with Perl?</strong><br />
Answer:<br />
Once you have the libwww-perl library, LWP.pm installed, the code is this:<br />
#!/usr/bin/perl<br />
use LWP::Simple;<br />
$url = get &#8216;http://www.websitename.com/&#8217;;</p>
<p><strong>How to concatenate strings with Perl?</strong><br />
Method #1 &#8211; using Perl&#8217;s dot operator:<br />
$name = &#8216;checkbook&#8217;;<br />
$filename = &#8220;/tmp/&#8221; . $name . &#8220;.tmp&#8221;;</p>
<p>Method #2 &#8211; using Perl&#8217;s join function<br />
$name = &#8220;checkbook&#8221;;<br />
$filename = join &#8220;&#8221;, &#8220;/tmp/&#8221;, $name, &#8220;.tmp&#8221;;</p>
<p>Method #3 &#8211; usual way of concatenating strings<br />
$filename = &#8220;/tmp/${name}.tmp&#8221;;</p>
<p><strong>How do I read command-line arguments with Perl?</strong></p>
<p>With Perl, command-line arguments are stored in the array named @ARGV.<br />
$ARGV[0] contains the first argument, $ARGV[1] contains the second argument, etc.<br />
$#ARGV is the subscript of the last element of the @ARGV array, so the number of arguments on the command line is $#ARGV + 1.<br />
Here&#8217;s a simple program:<br />
#!/usr/bin/perl<br />
$numArgs = $#ARGV + 1;<br />
print &#8220;thanks, you gave me $numArgs command-line arguments.\n&#8221;;<br />
foreach $argnum (0 .. $#ARGV) {<br />
print &#8220;$ARGV[$argnum]\n&#8221;;<br />
}</p>
<p><strong>When would local $_ in a function ruin your day?</strong></p>
<p>When your caller was in the middle for a while(m//g) loop<br />
The /g state on a global variable is not protected by running local on it. That&#8217;ll teach you to stop using locals. Too bad $_ can&#8217;t be the target of a my() &#8212; yet.</p>
<p><strong>What happens to objects lost in &#8220;unreachable&#8221; memory, such as the object returned by Ob-&gt;new() in `{ my $ap; $ap = [ Ob-&gt;new(), \$ap ]; }&#8217; ?</strong></p>
<p>Their destructors are called when that interpreter thread shuts down.<br />
When the interpreter exits, it first does an exhaustive search looking for anything that it allocated. This allows Perl to be used in embedded and multithreaded applications safely, and furthermore guarantees correctness of object code.</p>
<p><strong>Assume that $ref refers to a scalar, an array, a hash or to some nested data structure. Explain the following statements:</strong><br />
Answer:<br />
$$ref; # returns a scalar<br />
$$ref[0]; # returns the first element of that array<br />
$ref- &gt; [0]; # returns the first element of that array<br />
@$ref; # returns the contents of that array, or number of elements, in scalar context<br />
$&amp;$ref; # returns the last index in that array<br />
$ref- &gt; [0][5]; # returns the sixth element in the first row<br />
@{$ref- &gt; {key}} # returns the contents of the array that is the value of the key &#8220;key&#8221;</p>
<p><strong>How do you match one letter in the current locale?</strong></p>
<p>Answer:<br />
/[^\W_\d]/<br />
We don&#8217;t have full POSIX regexps, so you can&#8217;t get at the isalpha() &lt;ctype.h&gt; macro save indirectly. You ask for one byte which is neither a non-alphanumunder, nor an under, nor a numeric. That leaves just the alphas, which is what you want.</p>
<p><strong>How do I print the entire contents of an array with Perl?</strong><br />
Answer:<br />
To answer this question, we first need a sample array. Let&#8217;s assume that you have an array that contains the name of baseball teams, like this:<br />
@teams = (&#8216;cubs&#8217;, &#8216;reds&#8217;, &#8216;yankees&#8217;, &#8216;dodgers&#8217;);<br />
If you just want to print the array with the array members separated by blank spaces, you can just print the array like this:<br />
@teams = (&#8216;cubs&#8217;, &#8216;reds&#8217;, &#8216;yankees&#8217;, &#8216;dodgers&#8217;);<br />
print &#8220;@teams\n&#8221;;<br />
But that&#8217;s not usually the case. More often, you want each element printed on a separate line. To achieve this, you can use this code:<br />
@teams = (&#8216;cubs&#8217;, &#8216;reds&#8217;, &#8216;yankees&#8217;, &#8216;dodgers&#8217;);<br />
foreach (@teams) {<br />
print &#8220;$_\n&#8221;;<br />
}</p>
<p><strong>How many ways can we express string in Perl?</strong><br />
Many. For example &#8216;this is a string&#8217; can be expressed in:<br />
&#8220;this is a string&#8221;<br />
qq/this is a string like double-quoted string/<br />
qq^this is a string like double-quoted string^<br />
q/this is a string/<br />
q&amp;this is a string&amp;<br />
q(this is a string)</p>
<p><strong>How do you give functions private variables that retain their values between calls?</strong></p>
<p>Create a scope surrounding that sub that contains lexicals.<br />
Only lexical variables are truly private, and they will persist even when their block exits if something still cares about them. Thus:<br />
{ my $i = 0; sub next_i { $i++ } sub last_i { &#8211;$i } }<br />
creates two functions that share a private variable. The $i variable will not be deallocated when its block goes away because next_i and last_i need to be able to access it.</p>
<p><strong>What is the Use of Symbolic Reference in PERL?</strong></p>
<p><strong>How to find type of variable?</strong></p>
<p><strong>What is Grep used for in Perl?</strong></p>
<p>grep ( EXPR, LIST) extract any elements from LIST for which EXPR is TRUE.<br />
Return Value</p>
<p>In scalar context &#8211; Number of times the expression returned true</p>
<p>In list context &#8211; List of elements that matched the expression</p>
<p>Example</p>
<p>Try out following example:</p>
<p>#!/usr/bin/perl</p>
<p>@list = (1,&#8221;Test&#8221;, 0, &#8220;foo&#8221;, 20 );</p>
<p>@has_digit = grep ( /\d/, @list );</p>
<p>print &#8220;@has_digit\n&#8221;;</p>
<p>It produces following result</p>
<p>1 0 20</p>
<p><strong>What is eval in perl?</strong></p>
<p>Evaluates EXPR at execution time as if EXPR were a separate Perl script. This allows you to use a separate, perhaps user-supplied, piece of Perl script within your program. An eval EXPR statement is evaluated separately each time the function is called.</p>
<p>The second form evaluates BLOCK when the rest of the script is parsed (before execution).</p>
<p><strong>How to substitute a particular string in a file containing millions of records?</strong></p>
<p>$_ = s/ string1 / string2 /g</p>
<p>How we can navigate the XML documents?</p>
<p><strong>What is the difference between die and exit in perl?</strong></p>
<p>Die is exmplained below;</p>
<p>exit Evaluates EXPR, exits the Perl interpreter, and returns the value as the exit value.Always runs all END{} blocks defined in the script (and imported packages) before exiting. If EXPR is omitted, then the interpreter exits with a value of 0. Should not be used to exit from a subroutine; either use eval and die or use return.</p>
<p>Following are the usage&#8230;</p>
<p>$ans = &lt;STDIN&gt;;<br />
exit 0 if $ans =~ /^[Xx]/</p>
<p><strong>What is hash in perl?</strong></p>
<p>A hash represents a set of key/value pairs. Actaully hash are type of arrays with the exception that hash index could be a number or string. They are prefixed by % sign as follows:</p>
<p>my %fruit_color = (&#8220;apple&#8221;, &#8220;red&#8221;, &#8220;banana&#8221;, &#8220;yellow&#8221;);</p>
<p><strong>what is meant &#8216;die&#8217; in a perl program?</strong></p>
<p>Raise an exception or bail out.</p>
<p>Following are the usage&#8230;</p>
<p>die &#8220;Can&#8217;t cd to spool: $!\n&#8221; unless chdir &#8216;/usr/spool/news&#8217;;<br />
or<br />
chdir &#8216;/usr/spool/news&#8217; or die &#8220;Can&#8217;t cd to spool: $!\n&#8221;<br />
or<br />
open( FILEH, &#8220;&gt;/tmp/test&#8221; ) || die( &#8220;Can&#8217;t open file test $!\n&#8221; );</p>
<p><strong>what&#8217;s is the use of &#8216;require&#8217; and what does this mean?</strong></p>
<p>Load in external functions from a library at runtime</p>
<p><strong>what does this mean &#8216;$^O&#8217;? tell briefly plse..</strong></p>
<p>Contains the name of the operating system that the current Perl binary was compiled for.</p>
<p><strong>what does this mean : &#8216;$_&#8217; ? </strong></p>
<p>$_ is a default special varible in perl which store the inputs for further pattern searching.</p>
<p><strong>what are regular expressions?</strong></p>
<p>A regular expression, also referred to as regex or regexp, provides a concise and flexible means for matching strings of text, such as particular characters, words, or patterns of characters. A regular expression is written in a formal language that can be interpreted by a regular expression processor, a program that either serves as a parser generator or examines text and identifies parts that match the provided specification.</p>
<p><strong>Difference between for and foreach?</strong></p>
<p>Using for you can initialize variable, condition check and increment the variables like &#8216;C&#8217; or like some other languages.<br />
foreach is a function having in perl using you can iterates over the list and you cannot initialize or condition check or increment like &#8216;for&#8217; in a single line.<br />
We can use both for or foreach for any scenario but Perl author suggest that you can use for where you are counting a number of iteration like conventional for loops. foreach for list based operation where you are access the list from array.</p>
<p><strong>Difference between exec and system in perl?</strong></p>
<p>http://www.scmgalaxy.com/forum/perl-script/t-521.html#522</p>
<p><strong>What is use strict. Explain with example.</strong><br />
strict &#8211; Perl pragma to restrict unsafe constructs.</p>
<p>Example:<br />
use strict;<br />
use strict &#8220;vars&#8221;;<br />
use strict &#8220;refs&#8221;;<br />
use strict &#8220;subs&#8221;;<br />
use strict;<br />
no strict &#8220;vars&#8221;;</p>
<p>use strict “subs”;<br />
The use function allows you to use modules located in the standard liberary. When the strict pragma takes subs as an argument, it will catch any barewords found in the program while it is being internally compiled. If a bareword is found, the program will be aborted with an error message.</p>
<p>use strict “vars”<br />
This generates a compile-time error if you access a variable that was neither explicitly declared (using any of my, our, state, or use vars ) nor fully qualified.</p>
<p>use strict “refs”<br />
This generates a runtime error if you use symbolic references.</p>
<p>More –<br />
<a href="http://perldoc.perl.org/strict.html">http://perldoc.perl.org/strict.html</a><br />
<a href="http://szabgab.com/barewords-in-perl.html">http://szabgab.com/barewords-in-perl.html</a></p>
<p><strong>What is CPAN?</strong><br />
CPAN is the Comprehensive Perl Archive Network, a large collection of Perl software and documentation. You can begin exploring from either <a href="http://www.cpan.org/">http://www.cpan.org/</a> or any of the mirrors listed at <a href="http://www.cpan.org/SITES.html">http://www.cpan.org/SITES.html</a>.</p>
<p>CPAN is also the name of a Perl module, CPAN.pm, which is used to download and install Perl software from the CPAN archive.you may find the documentation for it by using perldoc CPAN via the command line<br />
More: &#8211;<br />
<a href="http://www.cpan.org/misc/cpan-faq.html#What_is_CPAN">http://www.cpan.org/misc/cpan-faq.html#What_is_CPAN</a></p>
<p><strong>How to install modules using CPAN or PPM (Perl Package Manager)</strong><br />
Install cpanm to make installing other modules easier<br />
&gt; cpan App::cpanminus (Mac OS X, Win32, X Windows/Linux)</p>
<p>Now install any module you can find in <a href="http://www.cpan.org/modules/index.html">http://www.cpan.org/modules/index.html</a><br />
cpanm Module::Name<br />
such as to insall local::lib<br />
&gt; cpanm local::lib</p>
<p>ActiveState maintains repositories of precompiled CPAN packages that can be installed with either the PPM command-line client, or the PPM GUI application. To install the DBD-mysql database driver all you have to do is run the ppm install command:<br />
&gt; ppm install DBD-mysql</p>
<p>Alternatively you can run ppm without any parameters to invoke the GUI, search for DBD-mysql, select the DBD-mysql package, and perform the installation:<br />
&gt; ppm</p>
<p><strong>How do you open a file for writing?</strong></p>
<pre>open(FH, "&gt; $path") or die $!;</pre>
<p><strong>Difference between printf and sprintf in perl ? || print vs sprintf || Difference between print vs sprintf</strong></p>
<p>The printf and sprintf is built-in function. One difference is printf prints it&#8217;s output and sprintf returns it&#8217;;s value.<br />
Prints the value of LIST interpreted via the format specified by FORMAT to the current output filehandle, or to the one specified by FILEHANDLE.</p>
<p>Syntax<br />
printf FILEHANDLE FORMAT, LIST<br />
printf FORMAT, LIST</p>
<p>Return Value<br />
0 on failure<br />
1 on success</p>
<p>Effectively equivalent to print FILEHANDLE sprintf(FORMAT, LIST)</p>
<p>Try out following example:<br />
#!/usr/bin/perl -w<br />
printf &#8220;%d\n&#8221;, 3.1415126;<br />
printf &#8220;The cost is \$%6.2f\n&#8221;,499;<br />
printf &#8220;Perl&#8217;s version is v%vd\n&#8221;,%^V;<br />
printf &#8220;%04d\n&#8221;, 20;</p>
<p>It will produce following results: Try more options yourself.<br />
3<br />
The cost is $499.00<br />
Perl&#8217;s version is v<br />
0020</p>
<p>On the other hand, The sprintf function uses FORMAT to return a formatted string based on the values in LIST. Essentially identical to printf, but the formatted string is returned instead of being printed.</p>
<p>Syntax<br />
sprintf FORMAT, LIST</p>
<p>Return Value<br />
SCALAR, a formatted text string.</p>
<p>Example<br />
Try out following example:<br />
#!/usr/bin/perl -w<br />
$text = sprintf(&#8220;%0d \n&#8221;, 9);<br />
print &#8220;Formated string $text\n&#8221;;</p>
<p>It will produce following result:<br />
Formated string 9</p>
<p><strong>What arguments do you frequently use for the Perl interpreter and what do they mean?</strong><br />
-w to show warning<br />
-d to debug<br />
-c to compile only not run<br />
-e Which executes</p>
<p>You can check to see if your script has compiled successfully by using the –c switch. This used to check for syntax errors.<br />
perl –c scriptname.pl</p>
<p>To Run on command line:executes the program given as an argument<br />
perl –e ‘print “hello world\n”;’ unix/linux</p>
<p>With Warning Pragma<br />
Perl –w &lt;scriptname&gt;</p>
<p>To start perl debugger on the file name specified as an argument<br />
Perl –d &lt;scriptname&gt;</p>
<p><strong>What do the symbols $ @ and % mean when prefixing a variable?</strong><br />
$  &#8211; To Define Scalar Variable<br />
@ &#8211; To Define an Array<br />
% &#8211; To define a hash</p>
<p><strong>What elements of the Perl language could you use to structure your code to allow for maximum re-use and maximum readability?</strong><br />
It could be Subroutine, Module, Class, Package or objects. Questions should be more clear.</p>
<p><strong>Why do you program in Perl?</strong><br />
Practice Report and Extraction Language<br />
Interpreted Language optimized for scanning arbitrary test files, extracting information from them, and printing based on that information.<br />
Very Powerful String handling features<br />
Available for all platforms</p>
<p>Speed of Development<br />
You can  enter the  program in a text file and just run it. It is an interpretive language; no compiler is neede<br />
It is Powerful<br />
The Regular expression of Perl are extremely powerful<br />
Uses sophisticated pattern matching techniques to scan large amounts of data quickly.</p>
<p>Portability<br />
Perl is a standard language and is available on all platforms.<br />
Free version are available on the internet</p>
<p>Editing Perl programs<br />
No sophisticated editing tool is needed<br />
Any simple text editor like Notepad or vi will do</p>
<p>Flexibility<br />
Perl Does not limit the size of your data<br />
If Memory is available, perl can handle the whole file as a single string.<br />
Allow one to write simple programs to perform complex task</p>
<p><strong>What’s your favorite module and why?</strong><br />
use DBI;<br />
use Getopt::Long;<br />
use Time::Local;<br />
use List::Compare;<br />
use Log::Log4perl;<br />
use CGI;<br />
use HTML::Template;<br />
use Data::Dumper;<br />
use LWP;<br />
use File::Find;</p>
<p><strong>What is a hash?</strong></p>
<p>A hash can be initialized with a list, where elements of the list are key and value pairs:</p>
<p>my %food_color = ( &#8220;Apple&#8221; =&gt; &#8220;red&#8221;, &#8220;Banana&#8221; =&gt; &#8220;yellow&#8221;, &#8220;Lemon&#8221; =&gt; &#8220;yellow&#8221;);</p>
<p>%age = ( &#8220;Nat&#8221;, 24, &#8220;Jules&#8221;, 25, &#8220;Josh&#8221;, 17 );<br />
is equivalent to<br />
$age{&#8220;Nat&#8221;} = 24; $age{&#8220;Jules&#8221;} = 25; $age{&#8220;Josh&#8221;} = 17;</p>
<p>$hash{“other”}</p>
<p>Only use the % when referring to the hash as a whole such as %boss<br />
Hashes is that their elements are stored in an internal order convenient for efficient retrieval. it will come out in an unpredictable disorder.<br />
When Referring to the value associated with a particular key, that’s a single scalar value, so is $ is called for.<br />
When referring to one element of an array, you also use a $.<br />
You can store only scalar value in a hash. References, however, are scalars. This solves the problem of storing multiple values for one key by making $hash{$key} a reference to an array containing values of $key.</p>
<p><strong>What purpose does each of the following serve: -w?</strong><br />
Perl –w &lt;scriptname&gt;<br />
Or<br />
#! /usr/bin/perl –w<br />
Or<br />
use warnings; perl version 5.6 and later</p>
<p>The –w switch prints warnings about ambiguous identifiers, such as variables that have been used only once, improper conversion of stings and numbers etc</p>
<p><strong>What is the difference between &#8216;use&#8217; and &#8216;require&#8217; function?</strong><br />
Use:<br />
1. the method is used only for modules (only to include .pm type file)<br />
2. the included object are verified at the time of compilation.<br />
3. No Need to give file extentsion.<br />
Require:<br />
1. The method is used for both libraries ( package ) and modules<br />
2. The include objects are varified at the run time.<br />
3. Need to give file Extension.</p>
<p><strong>Explain the difference between my and local.</strong><br />
Both of them are used to declare local variables.<br />
The variables declared with &#8220;my&#8221; can live only within the block it was defined and cannot get its visibility inherited functions called within that block, but one defined with &#8220;local&#8221; can live within the block and have its visibility in the functions called within that block.</p>
<p>In the example below, $::a refers to $a in the &#8216;global&#8217; namespace.</p>
<p>&#8216;local&#8217; temporarily changes the value of the variable, but only within the scope it exists in.</p>
<p>$a = 3.14159;<br />
{<br />
local $a = 3;<br />
print &#8220;In block, \$a = $a\n&#8221;;<br />
print &#8220;In block, \$::a = $::a\n&#8221;;<br />
}</p>
<p>print &#8220;Outside block, \$a = $a\n&#8221;;<br />
print &#8220;Outside block, \$::a = $::a\n&#8221;;</p>
<p># This outputs In block,</p>
<p># This outputs</p>
<p>In block, $a = 3<br />
In block, $::a = 3<br />
Outside block, $a = 3.14159<br />
Outside block, $::a = 3.14159</p>
<p>&#8216;my&#8217; has no effect on the global $a, even inside the block.</p>
<p>$a = 3.14159;<br />
{<br />
my $a = 3;<br />
print &#8220;In block, \$a = $a\n&#8221;;<br />
print &#8220;In block, \$::a = $::a\n&#8221;;<br />
}<br />
print &#8220;Outside block, \$a = $a\n&#8221;;<br />
print &#8220;Outside block, \$::a = $::a\n&#8221;;</p>
<p># This outputs<br />
In block, $a = 3<br />
In block, $::a = 3.14159<br />
Outside block, $a = 3.14159<br />
Outside block, $::a = 3.14159</p>
<p>What is the difference between for &amp; foreach?<br />
What is the difference between exec &amp; system?<br />
What is the difference between map &amp; grep?<br />
What is the difference between sysread &amp; read?<br />
What is the difference between chop &amp; chomp?<br />
What is the difference between qq,qw &amp; qx?<br />
What is the difference between rand &amp; srand?<br />
What is the difference between exists and defined?<br />
What is the difference between use and require?<br />
What is the difference between eval &amp; study?</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perl-interview-questions-and-answers/">Most asked Perl Interview Questions and Answers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/perl-interview-questions-and-answers/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Perl Scripting Interview &#8211; Selected Questions</title>
		<link>https://www.scmgalaxy.com/tutorials/perl-scripting/</link>
					<comments>https://www.scmgalaxy.com/tutorials/perl-scripting/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 24 Aug 2010 09:47:07 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Interview Questions of Perl Scripting]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Perl Advance Interview Questions]]></category>
		<category><![CDATA[Perl Job Interview Questions]]></category>
		<category><![CDATA[Perl regular expression interview question]]></category>
		<category><![CDATA[Perl Scripting]]></category>
		<category><![CDATA[Perl Scripting Interview]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Selected Perl Interview Questions]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/08/24/perl-scripting/</guid>

					<description><![CDATA[<p>Can anyone help on these questions which i couldnt answer in my interview,because iam not sure on perl scripting iam [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perl-scripting/">Perl Scripting Interview &#8211; Selected Questions</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4400" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/08/perl-scripting-interview-se.png" alt="perl-scripting-interview-selected-questions" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/08/perl-scripting-interview-se.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/08/perl-scripting-interview-se-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>Can anyone help on these questions which i couldnt answer in my interview,because iam not sure on perl scripting iam learning the things in perl now.</p>
<p>1.What standard Perl modules have you made use of, and why did you use them instead of the equivalent built-in functions?</p>
<p>2.Write a statement that checks to make sure there are at least two command line arguments and exits with an error if not.</p>
<p>3.How do you find the number of elements in an array?</p>
<p>4.Write a regular expression that would match only the last director of a full path filename (and you don&#8217;t know the path ahead of time).  Example: for &#8220;/fee/fi/fo/fum.txt&#8221; you would match &#8220;fo&#8221; with your regular expression</p>
<p>5.Write a Perl script to get the machine host name and print it. No system command should be used; this script should work on Windows and Linux OS without any change.<br />
6.Write a Perl script to check a directory exists or not and print proper message. The directory location will be passed as parameter while executing the script.</p>
<p>Please help me out for the above questions.</p>
<p style="margin-bottom: 0in;">
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perl-scripting/">Perl Scripting Interview &#8211; Selected Questions</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/perl-scripting/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Selected AnthillPro Interview Questions</title>
		<link>https://www.scmgalaxy.com/tutorials/anthillpro-interview-questions/</link>
					<comments>https://www.scmgalaxy.com/tutorials/anthillpro-interview-questions/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 17 Jun 2010 10:31:24 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[AnthillPro]]></category>
		<category><![CDATA[AnthillPro Interview]]></category>
		<category><![CDATA[AnthillPro Interview Guide]]></category>
		<category><![CDATA[AnthillPro Interview Q&A]]></category>
		<category><![CDATA[AnthillPro Interview Questions]]></category>
		<category><![CDATA[AnthillPro Job Interview]]></category>
		<category><![CDATA[AnthillPro Job Interview Kit]]></category>
		<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Interview Questions AnthillPro]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[Most Asked]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Selected]]></category>
		<category><![CDATA[Selected AnthillPro Interview Questions]]></category>
		<category><![CDATA[Sets]]></category>
		<category><![CDATA[Top]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/06/17/anthillpro-interview-questions/</guid>

					<description><![CDATA[<p>Selected AnthillPro Interview Questions Building Procedures in AnthillPro Deploying Procedures with AnthillPro Using AnthillPro for Audit Process of Integrating with [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/anthillpro-interview-questions/">Selected AnthillPro Interview Questions</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4293" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/anthillpro-interview-questi.png" alt="anthillpro-interview-questions" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/anthillpro-interview-questi.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/anthillpro-interview-questi-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Selected AnthillPro Interview Questions</strong></p>
<ul>
<li><strong>Building Procedures in AnthillPro</strong></li>
<li><strong>Deploying Procedures with AnthillPro</strong></li>
<li><strong>Using AnthillPro for Audit</strong></li>
<li><strong>Process of Integrating with Defect &amp; Feature Tracking</strong></li>
<li><strong>Process of Integrating with Static Code Analysis</strong></li>
</ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/anthillpro-interview-questions/">Selected AnthillPro Interview Questions</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/anthillpro-interview-questions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Top Selected Bamboo Interview Questions</title>
		<link>https://www.scmgalaxy.com/tutorials/bamboo-interview-questions/</link>
					<comments>https://www.scmgalaxy.com/tutorials/bamboo-interview-questions/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 17 Jun 2010 10:29:23 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Atlassian Bamboo]]></category>
		<category><![CDATA[Bamboo]]></category>
		<category><![CDATA[Bamboo Interview]]></category>
		<category><![CDATA[Bamboo Interview Guide]]></category>
		<category><![CDATA[Bamboo Interview Q&A]]></category>
		<category><![CDATA[Bamboo Interview Questions]]></category>
		<category><![CDATA[Bamboo Job Interview]]></category>
		<category><![CDATA[Bamboo Job Interview Kit]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Interview Questions Bamboo]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[Most Asked]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Selected]]></category>
		<category><![CDATA[Selected Bamboo Interview Questions]]></category>
		<category><![CDATA[Sets]]></category>
		<category><![CDATA[Top]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/06/17/bamboo-interview-questions/</guid>

					<description><![CDATA[<p>Top Selected Bamboo Interview Questions Bamboo Questions: Tell me more about continuous integration ? How did you configured? Plugins used [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/bamboo-interview-questions/">Top Selected Bamboo Interview Questions</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4290" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/bamboo-interview-questions.png" alt="bamboo-interview-questions" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/bamboo-interview-questions.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/bamboo-interview-questions-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>Top Selected Bamboo Interview Questions</p>
<p><strong>Bamboo Questions:</strong></p>
<ol>
<li>Tell me more about continuous integration ? How did you configured?</li>
<li>Plugins used in Bamboo?</li>
<li>Tell me more about Bamboo Schedule Options?</li>
<li>How did you configured Bamboo with Subversion?</li>
</ol>
<p>&nbsp;</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/bamboo-interview-questions/">Top Selected Bamboo Interview Questions</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/bamboo-interview-questions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache Interview Questions &#8211; Apache Job Interview Kit</title>
		<link>https://www.scmgalaxy.com/tutorials/apche-interview-questions/</link>
					<comments>https://www.scmgalaxy.com/tutorials/apche-interview-questions/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 17 Jun 2010 10:09:48 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Answer]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache Interview]]></category>
		<category><![CDATA[Apache Interview Guide]]></category>
		<category><![CDATA[Apache Interview Q&A]]></category>
		<category><![CDATA[Apache Interview Questions & Answers]]></category>
		<category><![CDATA[Apache Job Interview]]></category>
		<category><![CDATA[Apache Job Interview Kit]]></category>
		<category><![CDATA[Apache Server]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Interview Questions & Answer for Apache]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[Most Asked]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Selected]]></category>
		<category><![CDATA[Sets]]></category>
		<category><![CDATA[Top]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/06/17/apche-interview-questions/</guid>

					<description><![CDATA[<p>Apache Interview Questions &#8211; Apache Job Interview Kit On a fresh install, why does Apache have three config files &#8211; [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apche-interview-questions/">Apache Interview Questions &#8211; Apache Job Interview Kit</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4287 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/apche-interview-questions.png" alt="apche-interview-questions-answers" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/apche-interview-questions.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/apche-interview-questions-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>Apache Interview Questions &#8211; Apache Job Interview Kit</p>
<p><strong>On a fresh install, why does Apache have three config files &#8211; srm.conf, access.conf and httpd.conf?</strong> &#8211; The first two are remnants from the NCSA times, and generally you should be ok if you delete the first two, and stick with httpd.conf.</p>
<p><strong>What’s the command to stop Apache? </strong>&#8211; kill the specific process that httpd is running under, or killall httpd. If you have apachectl installed, use apachectl stop.</p>
<p><strong>What does apachectl graceful do?</strong> &#8211; It sends a SIGUSR1 for a restart, and starts the apache server if it’s not running.<br />
<strong>How do you check for the httpd.conf consistency and any errors in it?</strong> &#8211; apachectl configtest</p>
<p><strong>When I do ps -aux, why do I have one copy of httpd running as root and the rest as nouser?</strong> &#8211; You need to be a root to attach yourself to any Unix port below 1024, and we need 80.</p>
<p>But I thought that running apache as a root is a security risk? &#8211; That one root process opens port 80, but never listens to it, so no user will actually enter the site with root rights. If you kill the root process, you will see the other kids disappear as well.</p>
<p><strong>Why do I get the message &#8220;… no listening sockets available, shutting down&#8221;?</strong> &#8211; In Apache 2 you need to have a listen directive. Just put Listen 80 in httpd.conf.</p>
<p><strong>How do you set up a virtual host in Apache? </strong><br />
&lt;VirtualHost www.techinterviews.com&gt;<br />
ServerAdmin admin@techinterviews.com<br />
DocumentRoot /home/apache/share/htdocs/hostedsites<br />
ServerName www.techinterviews.com<br />
ErrorLog /home/apache/logs/error/hostedsites/error_log<br />
TransferLog /home/apache/logs/access/hostedsites/access_log<br />
&lt;/VirtualHost&gt;</p>
<p><strong>What is ServerType directive?</strong> &#8211; It defines whether Apache should spawn itself as a child process (standalone) or keep everything in a single process (inetd). Keeping it inetd conserves resources. This is deprecated, however.</p>
<p><strong>What is mod_vhost_alias?</strong> &#8211; It allows hosting multiple sites on the same server via simpler configurations.</p>
<p><strong>What does htpasswd do?</strong> &#8211; It creates a new user in a specified group, and asks to specify a password for that user.<br />
If you specify both deny from all and allow from all, what will be the default action of Apache? &#8211; In case of ambiguity deny always takes precedence over allow.</p>
<p>&nbsp;</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apche-interview-questions/">Apache Interview Questions &#8211; Apache Job Interview Kit</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/apche-interview-questions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache and HTTP Interview Questions and Answers &#8211; Interview Guide</title>
		<link>https://www.scmgalaxy.com/tutorials/apache-and-http-interview-questions/</link>
					<comments>https://www.scmgalaxy.com/tutorials/apache-and-http-interview-questions/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 01 Jun 2010 10:05:58 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache and HTTP Interview Guide]]></category>
		<category><![CDATA[Apache and HTTP Interview Q&A]]></category>
		<category><![CDATA[Apache and HTTP Interview Questions and Answers]]></category>
		<category><![CDATA[Apache and HTTP Job Interview]]></category>
		<category><![CDATA[Apache HTTP Job Interview Kit]]></category>
		<category><![CDATA[Apache Interview]]></category>
		<category><![CDATA[Apache Interview Questions and Answers]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[HTTP Interview]]></category>
		<category><![CDATA[HTTP Interview Questions and Answers]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Interview Questions of Apache and HTTP]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[List of Apache and HTTP Interview Questions and Answers]]></category>
		<category><![CDATA[Most Asked]]></category>
		<category><![CDATA[Questions and Answers]]></category>
		<category><![CDATA[Selected]]></category>
		<category><![CDATA[Sets]]></category>
		<category><![CDATA[Top]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/06/01/apache-and-http-interview-questions/</guid>

					<description><![CDATA[<p>Apache and HTTP Interview Questions and Answers &#8211; Interview Guide List of Apache and HTTP Interview Questions: &#8211; &#60;!&#8211; /* [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-and-http-interview-questions/">Apache and HTTP Interview Questions and Answers &#8211; Interview Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4297 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/apache-and-http-interview-q.png" alt="apache-and-http-interview-question-answers" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/apache-and-http-interview-q.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/apache-and-http-interview-q-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Apache and HTTP Interview Questions and Answers &#8211; Interview Guide</strong></p>
<p><strong>List of Apache and HTTP Interview Questions: &#8211; </strong></p>
<p><!-- [if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves /> <w:TrackFormatting /> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF /> <w:LidThemeOther>EN-US</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> <w:SplitPgBreakAndParaMark /> <w:DontVertAlignCellWithSp /> <w:DontBreakConstrainedForcedTables /> <w:DontVertAlignInTxbx /> <w:Word11KerningPairs /> <w:CachedColBalance /> </w:Compatibility> <m:mathPr> <m:mathFont m:val="Cambria Math" /> <m:brkBin m:val="before" /> <m:brkBinSub m:val="&#45;-" /> <m:smallFrac m:val="off" /> <m:dispDef /> <m:lMargin m:val="0" /> <m:rMargin m:val="0" /> <m:defJc m:val="centerGroup" /> <m:wrapIndent m:val="1440" /> <m:intLim m:val="subSup" /> <m:naryLim m:val="undOvr" /> </m:mathPr></w:WordDocument> </xml><![endif]--><!-- [if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true" DefSemiHidden="true" DefQFormat="false" DefPriority="99" LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Normal" /> <w:LsdException Locked="false" Priority="9" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="heading 1" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" /> <w:LsdException Locked="false" Priority="39" Name="toc 1" /> <w:LsdException Locked="false" Priority="39" Name="toc 2" /> <w:LsdException Locked="false" Priority="39" Name="toc 3" /> <w:LsdException Locked="false" Priority="39" Name="toc 4" /> <w:LsdException Locked="false" Priority="39" Name="toc 5" /> <w:LsdException Locked="false" Priority="39" Name="toc 6" /> <w:LsdException Locked="false" Priority="39" Name="toc 7" /> <w:LsdException Locked="false" Priority="39" Name="toc 8" /> <w:LsdException Locked="false" Priority="39" Name="toc 9" /> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" /> <w:LsdException Locked="false" Priority="10" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Title" /> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font" /> <w:LsdException Locked="false" Priority="11" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtitle" /> <w:LsdException Locked="false" Priority="22" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Strong" /> <w:LsdException Locked="false" Priority="20" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Emphasis" /> <w:LsdException Locked="false" Priority="59" SemiHidden="false" UnhideWhenUsed="false" Name="Table Grid" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" /> <w:LsdException Locked="false" Priority="1" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="No Spacing" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 1" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 1" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 1" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 1" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision" /> <w:LsdException Locked="false" Priority="34" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" /> <w:LsdException Locked="false" Priority="29" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Quote" /> <w:LsdException Locked="false" Priority="30" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 1" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 1" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 1" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 1" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 1" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 2" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 2" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 2" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 2" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 2" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 2" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 2" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 2" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 3" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 3" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 3" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 3" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 3" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 3" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 3" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 3" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 3" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 4" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 4" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 4" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 4" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 4" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 4" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 4" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 4" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 4" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 5" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 5" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 5" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 5" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 5" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 5" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 5" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 5" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 5" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 6" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 6" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 6" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 6" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 6" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 6" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 6" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 6" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 6" /> <w:LsdException Locked="false" Priority="19" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" /> <w:LsdException Locked="false" Priority="21" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" /> <w:LsdException Locked="false" Priority="31" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" /> <w:LsdException Locked="false" Priority="32" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" /> <w:LsdException Locked="false" Priority="33" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Book Title" /> <w:LsdException Locked="false" Priority="37" Name="Bibliography" /> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading" /> </w:LatentStyles> </xml><![endif]--> &lt;!&#8211; /* Font Definitions */ @font-face {font-family:&#8221;Cambria Math&#8221;; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:&#8221;&#8221;; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:&#8221;Calibri&#8221;,&#8221;sans-serif&#8221;; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:&#8221;Times New Roman&#8221;; mso-bidi-theme-font:minor-bidi;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:&#8221;Times New Roman&#8221;; mso-bidi-theme-font:minor-bidi;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:1388797391; mso-list-template-ids:-480605428;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} &#8211;&gt; <!-- [if gte mso 10]>



<style>  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} </style>

 <![endif]--></p>
<ol type="1">
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">On a fresh install, why does Apache have three config files &#8211; srm.conf, access.conf and httpd.conf?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; The first two are remnants from the NCSA times, and generally you should be ok if you delete the first two, and stick with httpd.conf.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">What’s the command to stop Apache?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; kill the specific process that httpd is running under, or <em>killall httpd. </em>If you have apachectl installed, use apachectl stop.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">What does <em>apachectl graceful</em> do?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; It sends a SIGUSR1 for a restart, and starts the apache server if it’s not running.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">How do you check for the httpd.conf consistency and any errors in it?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; apachectl configtest</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">When I do ps -aux, why do I have one copy of httpd running as root and the rest as nouser?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; You need to be a root to attach yourself to any Unix port below 1024, and we need 80.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">But I thought that running apache as a root is a security risk?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; That one root process opens port 80, but never listens to it, so no user will actually enter the site with root rights. If you kill the root process, you will see the other kids disappear as well.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">Why do I get the message &#8220;… no listening sockets available, shutting down&#8221;?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; In Apache 2 you need to have a listen directive. Just put <em>Listen 80</em> in httpd.conf.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">How do you set up a virtual host in Apache?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';">&lt;VirtualHost www.techinterviews.com&gt;</span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';"> ServerAdmin admin@techinterviews.com</span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';"> DocumentRoot /home/apache/share/htdocs/hostedsites</span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';"> ServerName <span style="text-decoration: underline;"><span style="color: blue;">www.techinterviews.com</span></span></span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';"> ErrorLog /home/apache/logs/error/hostedsites/error_log</span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';"> TransferLog /home/apache/logs/access/hostedsites/access_log</span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';">&lt;/VirtualHost&gt;</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">What is ServerType directive?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; It defines whether Apache should spawn itself as a child process (standalone) or keep everything in a single process (inetd). Keeping it inetd conserves resources. This is deprecated, however.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">What is mod_vhost_alias?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; It allows hosting multiple sites on the same server via simpler configurations.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">What does htpasswd do?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; It creates a new user in a specified group, and asks to specify a password for that user.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">If you specify both <em>deny from all</em> and <em>allow from all</em>, what will be the default action of Apache?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; In case of ambiguity deny always takes precedence over allow.</span></li>
</ol>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-and-http-interview-questions/">Apache and HTTP Interview Questions and Answers &#8211; Interview Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/apache-and-http-interview-questions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
