<?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 Questions &amp; Answers Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/category/interview-questions-answers/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/category/interview-questions-answers/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:53:56 +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>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>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>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>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>
		<item>
		<title>General SCM Interview Questions &#8211; SCM Job Interview Kit</title>
		<link>https://www.scmgalaxy.com/tutorials/general-scm-interview-questions/</link>
					<comments>https://www.scmgalaxy.com/tutorials/general-scm-interview-questions/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 16 Apr 2010 08:58:16 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[General SCM Interview Questions]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Interview Questions & Answer of SCM]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[Most Asked]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[SCM]]></category>
		<category><![CDATA[SCM Interview]]></category>
		<category><![CDATA[SCM Interview Guide]]></category>
		<category><![CDATA[SCM Interview Q&A]]></category>
		<category><![CDATA[SCM Interview Questions]]></category>
		<category><![CDATA[SCM Job Interview]]></category>
		<category><![CDATA[SCM Job Interview Kit]]></category>
		<category><![CDATA[Selected]]></category>
		<category><![CDATA[Sets]]></category>
		<category><![CDATA[Top]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/04/16/general-scm-interview-questions/</guid>

					<description><![CDATA[<p>&#160; General SCM Interview Questions &#8211; SCM Job Interview Kit What do you think about configuration management? What do you [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/general-scm-interview-questions/">General SCM Interview Questions &#8211; SCM 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-4301 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/scm-interview-questions.png" alt="scm-interview-questions" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/scm-interview-questions.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/scm-interview-questions-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>&nbsp;</p>
<p><strong>General SCM Interview Questions &#8211; SCM Job Interview Kit</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>
<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>
<li>What do you think about 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>
<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>Explain Troubleshooting in Build Server and Process</li>
<li>Explain Troubleshooting in Configuration Server and Process</li>
<li>Explain Troubleshooting inMost popular java Comipler issues in build server</li>
<li>Explain Troubleshooting inMost popular C++ compiler issues in build server</li>
<li>software packaging tools if they will be packaging or writing the installations for the releases.</li>
<li>Backup your code daily with respect to SVN.</li>
<li>Overview of Batch Scripts and top 25 commands</li>
<li>Discuss about Web Servers and Application servers</li>
<li>What do you think about distributed and multi-site environment</li>
<li>Can you name some software development methodologies and describe them?</li>
<li>Agile attempts to minimize risk by developing software in short iterations.</li>
<li>Extreme Programming employs simplicity, frequent communication, constant customer feedback and decision empowerment.</li>
<li>Iterative development is a cyclical methodology that incorporates refactorying into the process.</li>
<li>Waterfall software development is a phased methodology. When one phase is complete, it moves onto the next phase.</li>
<li>What is an API?</li>
<li>What is a web service?</li>
<li>What the difference between a global and a local variable?</li>
<li>What are Bug /Issue Tatcking tools available and descibe them</li>
<li>How does Subversion handle binary files?</li>
<li>What is ADO?</li>
<li>What is polymorphism?</li>
<li>Plz Let me the Difference Between Bea Weblogic IBM Websphere</li>
<li></li>
</ul>
<p><b>Perforce:</b></p>
<ul>
<li>What are basic skills required for Perforce administration including Command Line info.</li>
<li>How we can develop Build summary reports for Mgmt team and what are the key inputs for report.</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>Identify the Cdeployment tools for major/minor/patch releases in different environment.</li>
<li>Explain Red Hat Linux and some of daily used features.</li>
<li>Explain Perforce &amp; Multisite</li>
<li>Concept of labeling, branching and merging</li>
<li>labeling, branching and merging in perforce</li>
</ul>
<p><b>Talk about Release Process</b></p>
<p><b>Can you describe some source code control best practice?</b><br />
# Use a reliable and dedicated server to house your code.<br />
# Backup your code daily.<br />
# Test your backup and restore processes.<br />
# Choose a source control tool that fits your organization&#8217;s requirements.<br />
# Perform all tool specific administrative tasks.<br />
# Keep your code repositories as clean as possible.<br />
# Secure access to your code.</p>
<p><b>Can you describe software build best practices?</b><br />
# Fully automated build process<br />
# Build repeatability<br />
# Build reproducibility<br />
# Build process adherence</p>
<p><b>CM tools Comparison</b></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>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/general-scm-interview-questions/">General SCM Interview Questions &#8211; SCM 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/general-scm-interview-questions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Interview Questions Sets : Shell Script Descriptive</title>
		<link>https://www.scmgalaxy.com/tutorials/interview-questions-sets-shell-script-descriptive/</link>
					<comments>https://www.scmgalaxy.com/tutorials/interview-questions-sets-shell-script-descriptive/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 16 Apr 2010 08:49:31 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Answers]]></category>
		<category><![CDATA[Descriptive Shell Script Interview Question and Answers]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Interview Questions & Answer for Shell Script]]></category>
		<category><![CDATA[Interview Questions Sets]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[Most Asked]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Selected]]></category>
		<category><![CDATA[Sets]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Shell script]]></category>
		<category><![CDATA[Shell Script Descriptive]]></category>
		<category><![CDATA[Shell Script Descriptive Interview Question and Answers]]></category>
		<category><![CDATA[Shell Script Interview Guide]]></category>
		<category><![CDATA[Shell Script Interview Q&A]]></category>
		<category><![CDATA[Shell Script Interview Questions & Answers]]></category>
		<category><![CDATA[Shell Script Job Interview]]></category>
		<category><![CDATA[Shell Script Job Interview Kit]]></category>
		<category><![CDATA[Shell Scripting Interview]]></category>
		<category><![CDATA[Top]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/04/16/interview-questions-sets-shell-script-descriptive/</guid>

					<description><![CDATA[<p>Interview Questions Sets : Shell Script Descriptive Questions Sets What is shell scripting? Shell scripting is used to program command [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/interview-questions-sets-shell-script-descriptive/">Interview Questions Sets : Shell Script Descriptive</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4304 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/interview-questions-sets-sh-1.png" alt="shell-script-descriptive-interview-questions-sets" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/interview-questions-sets-sh-1.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/interview-questions-sets-sh-1-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></h3>
<h3 style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;">Interview Questions Sets : Shell Script Descriptive Questions Sets<br />
</span></span></h3>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;"><strong>What is shell scripting?</strong><br />
Shell scripting is used to program <span style="text-decoration: underline;">command line of an operating system</span>. Shell Scripting is also used to program the shell which is the base for any operating system. Shell scripts often refer to programming UNIX. Shell scripting is mostly used to program operating systems of windows, UNIX, Apple, etc. Also this script is used by companies to develop their own operating system with their own features.</span></span></p>
<p><strong>Advantages of Shell scripting?</strong><span style="font-family: verdana,geneva;"><br />
There are many advantages of shell scripting some of them are, one can develop their own operating system with relevant features best suited to their organization than to rely on costly operating systems. Software applications can be designed according to their platform.</span></p>
<p><strong>What are the disadvantages of shell scripting?</strong><span style="font-family: verdana,geneva;"><br />
There are many disadvantages of shell scripting they are<br />
</span></p>
<ul>
<li><span style="font-size: small;"><span style="font-family: verdana,geneva;">Design flaws can destroy the entire process and could prove a costly error.</span></span></li>
<li><span style="font-size: small;"><span style="font-family: verdana,geneva;"> Typing errors during the creation can delete the entire data as well as partition data.</span></span></li>
<li><span style="font-size: small;"><span style="font-family: verdana,geneva;"> Initially process is slow but can be improved.</span></span></li>
<li><span style="font-size: small;"><span style="font-family: verdana,geneva;"> *Portbility between different operating system is a prime concern as it is very difficult to port scripts etc.</span></span></li>
</ul>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;"><br />
</span><span style="font-family: verdana,geneva;"><strong>Explain about the slow execution speed of shells?</strong><br />
Major disadvantage of using shell scripting is slow execution of the scripts. This is because for every command a new process needs to be started. This slow down can be resolved by using pipeline and filter commands. A complex script takes much longer time than a normal script.</span></span></p>
<p><strong>Give some situations where typing error can destroy a program?</strong><span style="font-family: verdana,geneva;"><br />
There are many situations where typing errors can prove to be a real costly effort. For example a single extra space can convert the functionality of the program from deleting the sub directories to files deletion. cp, cn, cd all resemble the same but their actual functioning is different. Misdirected &gt; can delete your data.<br />
Coding Related Shell Scripting Interview Questions &#8230;</span></p>
<p><strong>Explain about return code?</strong><span style="font-family: verdana,geneva;"><br />
Return code is a common feature in shell programming. These return codes indicate whether a particular program or application has succeeded or failed during its process. &amp;&amp; can be used in return code to indicate which application needs to be executed first.</span></p>
<p><strong>What are the different variables present in Linux shell?</strong><span style="font-family: verdana,geneva;"><br />
Variables can be defined by the programmer or developer they specify the location of a particular variable in the memory. There are two types of shells they are System variables and user defined variables. System variables are defined by the system and user defined variables are to be defined by the user (small letters).</span></p>
<p><strong>Explain about GUI scripting?</strong><span style="font-family: verdana,geneva;"><br />
Graphical user interface provided the much needed thrust for controlling a computer and its applications. This form of language simplified repetitive actions. Support for different applications mostly depends upon the operating system. These interact with menus, buttons, etc.<br />
</span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;"><span style="text-decoration: underline;"><strong>Shell Scripting Command Interview Questions &#8230;</strong></span></span></span></p>
<p><strong>Explain about echo command?</strong><span style="font-family: verdana,geneva;"><br />
Echo command is used to display the value of a variable. There are many different options give different outputs such as usage \c suppress a trailing line, \r returns a carriage line, -e enables interpretation, \r returns the carriage.</span></p>
<p><strong>Explain about Stdin, Stdout and Stderr?</strong><span style="font-family: verdana,geneva;"><br />
These are known as standard input, output and error. These are categorized as 0, 1 and 2. Each of these functions has a particular role and should accordingly functions for efficient output. Any mismatch among these three could result in a major failure of the shell.</span></p>
<p><strong>Explain about sourcing commands?</strong><span style="font-family: verdana,geneva;"><br />
Sourcing commands help you to execute the scripts within the scripts. For example sh command makes your program to run as a separate shell. .command makes your program to run within the shell. This is an important command for beginners and for special purposes.</span></p>
<p><strong>Explain about debugging?</strong><span style="font-family: verdana,geneva;"><br />
Shell can make your debugging process easier because it has lots of commands to perform the function. For example sh –ncommand helps you to perform debugging. It helps you to read the shell but not to execute it during the course. Similarly sh –x command helps you by displaying the arguments and functions as they are executed.</span></p>
<p><strong>Explain about Login shell?</strong><span style="font-family: verdana,geneva;"><br />
Login shell is very useful as it creates an environment which is very useful to create the default parameters. It consists of two files they are profile files and shell rc files. These files initialize the login and non login files. Environment variables are created by Login shell.</span></p>
<p><strong>Explain about non-login shell files?</strong><span style="font-family: verdana,geneva;"><br />
The non login shell files are initialized at the start and they are made to run to set up variables. Parameters and path can be set etc are some important functions. These files can be changed and also your own environment can be set. These functions are present in the root. It runs the profile each time you start the process.</span></p>
<p><strong>Explain about shebang?</strong><span style="font-family: verdana,geneva;"><br />
Shebang is nothing but a # sign followed by an exclamation. This is visible at the top of the script and it is immediately followed by an exclamation. To avoid repetitive work each time developers use shebang. After assigning the shebang work we pass info to the interpreter.</span></p>
<p><strong>Explain about the Exit command?</strong><span style="font-family: verdana,geneva;"><br />
Every program whether on UNIX or Linux should end at a certain point of time and successful completion of a program is denoted by the output 0. If the program gives an output other than 0 it defines that there has been some problem with the execution or termination of the problem. Whenever you are calling other function, exit command gets displayed.</span></p>
<p><strong>Explore about Environment variables?</strong><span style="font-family: verdana,geneva;"><br />
Environment variables are set at the login time and every shell that starts from this shell gets a copy of the variable. When we export the variable it changes from an shell variable to an environment variable and these variables are initiated at the start of the shell.</span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;"><strong>How can you tell what shell you are running on a UNIX system?</strong><br />
Answer :<br />
You can do the Echo $RANDOM. It will return a undefined variable if you are from the <strong>C-Shell,</strong> just a return prompt if you are from the <strong>Bourne shell</strong>, and a 5 digit random numbers if you are from the Korn shell. </span></span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;">You could also do a ps -l and look for the shell with the highest PID.<br />
</span><span style="font-family: verdana,geneva;"><br />
<strong>What are conditions on which deadlock can occur while swapping the processes?</strong></span><span style="font-family: verdana,geneva;"><br />
All processes in the main memory are asleep. All ‘ready-to-run’ processes are swapped out.<br />
There is no space in the swap device for the new incoming process that are swapped out of the main memory. There is no space in the main memory for the new incoming process.<br />
</span><span style="font-family: verdana,geneva;"><br />
<strong>How do you change File Access Permissions?</strong></span><span style="font-family: verdana,geneva;"><br />
<strong>Answer :</strong></span><span style="font-family: verdana,geneva;"><br />
Every file has following attributes:<br />
owner’s user ID ( 16 bit integer )<br />
owner’s group ID ( 16 bit integer )<br />
File access mode word<br />
</span></span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;">‘r w x -r w x- r w x’<br />
(user permission-group permission-others permission)<br />
</span></span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;">r-read, w-write, x-execute<br />
</span></span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;">To change the access mode, we use chmod(filename,mode).<br />
<strong>Example:</strong><br />
To change mode of myfile to ‘rw-rw-r–’ (ie. read, write permission for user &#8211; read,write permission for group &#8211; only read permission for others) we give the args as:<br />
chmod(myfile,0664) .<br />
</span></span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;">Each operation is represented by discrete values<br />
‘r’ is 4<br />
‘w’ is 2<br />
‘x’ is 1<br />
</span></span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;">Therefore, for ‘rw’ the value is 6(4+2).<br />
</span></span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;"><strong>Example 2:</strong><br />
To change mode of myfile to ‘rwxr–r–’ we give the args as:<br />
chmod(myfile,0744). </span></span></p>
<p><strong>List the system calls used for process management.</strong><span style="font-family: verdana,geneva;"><br />
<strong>Answer :</strong></span><span style="font-family: verdana,geneva;"><br />
System calls Description<br />
fork() To create a new process<br />
exec() To execute a new program in a process<br />
wait() To wait until a created process completes its execution<br />
exit() To exit from a process execution<br />
getpid() To get a process identifier of the current process<br />
getppid() To get parent process identifier<br />
nice() To bias the existing priority of a process<br />
brk() To increase/decrease the data segment size of a process </span></p>
<p><strong>What is the difference between Swapping and Paging?</strong><span style="font-family: verdana,geneva;"><br />
Answer:</span></p>
<p>Swapping:<span style="font-family: verdana,geneva;"><br />
Whole process is moved from the swap device to the main memory for execution. Process size must be less than or equal to the available main memory. It is easier to implementation and overhead to the system. Swapping systems does not handle the memory more flexibly as compared to the paging systems.</span></p>
<p>Paging:<span style="font-family: verdana,geneva;"><br />
Only the required memory pages are moved to main memory from the swap device for execution. Process size does not matter. Gives the concept of the virtual memory.</span></p>
<p>It provides greater flexibility in mapping the virtual address space into the physical memory of the machine. Allows more number of processes to fit in the main memory simultaneously. Allows the greater process size than the available physical memory. Demand paging systems handle the memory more flexibly.</p>
<p><strong>What is the difference between cmp and diff commands?</strong><span style="font-family: verdana,geneva;"><br />
Answer :</span></p>
<p>cmp &#8211; Compares two files byte by byte and displays the first mismatch<span style="font-family: verdana,geneva;"><br />
diff &#8211; tells the changes to be made to make the files identical</span></p>
<p><strong>What is meant by the nice value?</strong><span style="font-family: verdana,geneva;"><br />
Answer :</span></p>
<p>Nice value is the value that controls {increments or decrements} the priority of the process. This value that is returned by the nice () system call. The equation for using nice value is:<span style="font-family: verdana,geneva;"><br />
Priority = (“recent CPU usage”/constant) + (base- priority) + (nice value)<br />
Only the administrator can supply the nice value. The nice () system call works for the running process only. Nice value of one process cannot affect the nice value of the other process. </span></p>
<p><strong>What is a daemon?</strong><span style="font-family: verdana,geneva;"><br />
Answer :<br />
A daemon is a process that detaches itself from the terminal and runs, disconnected, in the background, waiting for requests and responding to them. It can also be defined as the background process that does not belong to a terminal session. Many system functions are commonly performed by daemons, including the sendmail daemon, which handles mail, and the NNTP daemon, which handles USENET news. Many other daemons may exist. Some of the most common daemons are:<br />
init: Takes over the basic running of the system when the kernel has finished the boot process.<br />
inetd: Responsible for starting network services that do not have their own stand-alone daemons. For example, inetd usually takes care of incoming rlogin, telnet, and ftp connections.<br />
cron: Responsible for running repetitive tasks on a regular schedule.<br />
<strong><br />
What are the process states in UNIX?</strong></span><span style="font-family: verdana,geneva;"><br />
Answer :<br />
As a process executes it changes state according to its circumstances. Unix processes have the following states:<br />
Running : The process is either running or it is ready to run .<br />
Waiting : The process is waiting for an event or for a resource.<br />
Stopped : The process has been stopped, usually by receiving a signal.<br />
Zombie : The process is dead but have not been removed from the process table.</span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;"><strong>How are devices represented in UNIX?</strong><br />
All devices are represented by files called special files that are located in/dev directory. Thus, device files and other files are named and accessed in the same way. A &#8216;regular file&#8217; is just an ordinary data file in the disk. A &#8216;block special file&#8217; represents a device with characteristics similar to a disk (data transfer in terms of blocks). A &#8216;character special file&#8217; represents a device with characteristics similar to a keyboard (data transfer is by stream of bits in sequential order).</span></span></p>
<p><strong>What is &#8216;inode&#8217;?</strong><span style="font-family: verdana,geneva;"><br />
All UNIX files have its description stored in a structure called &#8216;inode&#8217;. The inode contains info about the file-size, its location, time of last access, time of last modification, permission and so on. Directories are also represented as files and have an associated inode. In addition to descriptions about the file, the inode contains pointers to the data blocks of the file. If the file is large, inode has indirect pointer to a block of pointers to additional data blocks (this further aggregates for larger files). A block is typically 8k.<br />
Inode consists of the following fields:<br />
• File owner identifier<br />
• File type<br />
• File access permissions<br />
• File access times<br />
• Number of links<br />
• File size<br />
• Location of the file data</span></p>
<p><strong>Brief about the directory representation in UNIX</strong><span style="font-family: verdana,geneva;"><br />
A Unix directory is a file containing a correspondence between filenames and inodes. A directory is a special file that the kernel maintains. Only kernel modifies directories, but processes can read directories. The contents of a directory are a list of filename and inode number pairs. When new directories are created, kernel makes two entries named &#8216;.&#8217; (refers to the directory itself) and &#8216;..&#8217; (refers to parent directory).<br />
System call for creating directory is mkdir (pathname, mode).</span></p>
<p><strong>What are the Unix system calls for I/O?</strong><span style="font-family: verdana,geneva;"><br />
• open(pathname,flag,mode) &#8211; open file<br />
• creat(pathname,mode) &#8211; create file<br />
• close(filedes) &#8211; close an open file<br />
• read(filedes,buffer,bytes) &#8211; read data from an open file<br />
• write(filedes,buffer,bytes) &#8211; write data to an open file<br />
• lseek(filedes,offset,from) &#8211; position an open file<br />
• dup(filedes) &#8211; duplicate an existing file descriptor<br />
• dup2(oldfd,newfd) &#8211; duplicate to a desired file descriptor<br />
• fcntl(filedes,cmd,arg) &#8211; change properties of an open file<br />
• ioctl(filedes,request,arg) &#8211; change the behaviour of an open file<br />
The difference between fcntl anf ioctl is that the former is intended for any open file, while the latter is for device-specific operations.</span></p>
<p><strong>How do you change File Access Permissions?</strong><span style="font-family: verdana,geneva;"><br />
Every file has following attributes:<br />
• owner&#8217;s user ID ( 16 bit integer )<br />
• owner&#8217;s group ID ( 16 bit integer )<br />
• File access mode word<br />
&#8216;r w x -r w x- r w x&#8217;<br />
(user permission-group permission-others permission)<br />
r-read, w-write, x-execute<br />
To change the access mode, we use chmod(filename,mode).<br />
Example 1:<br />
To change mode of myfile to &#8216;rw-rw-r&#8211;&#8216; (ie. read, write permission for user &#8211; read,write permission for group &#8211; only read permission for others) we give the args as:<br />
chmod(myfile,0664) .<br />
Each operation is represented by discrete values<br />
&#8216;r&#8217; is 4<br />
&#8216;w&#8217; is 2<br />
&#8216;x&#8217; is 1<br />
Therefore, for &#8216;rw&#8217; the value is 6(4+2).<br />
Example 2:<br />
To change mode of myfile to &#8216;rwxr&#8211;r&#8211;&#8216; we give the args as:<br />
chmod(myfile,0744).</span></p>
<p>What are links and symbolic links in UNIX file system?<span style="font-family: verdana,geneva;"><br />
A link is a second name (not a file) for a file. Links can be used to assign more than one name to a file, but cannot be used to assign a directory more than one name or link filenames on different computers.<br />
Symbolic link &#8216;is&#8217; a file that only contains the name of another file.Operation on the symbolic link is directed to the file pointed by the it.Both the limitations of links are eliminated in symbolic links.<br />
Commands for linking files are:<br />
Link ln filename1 filename2<br />
Symbolic link ln -s filename1 filename2</span></p>
<p><strong>What is a FIFO?</strong><span style="font-family: verdana,geneva;"><br />
FIFO are otherwise called as &#8216;named pipes&#8217;. FIFO (first-in-first-out) is a special file which is said to be data transient. Once data is read from named pipe, it cannot be read again. Also, data can be read only in the order written. It is used in interprocess communication where a process writes to one end of the pipe (producer) and the other reads from the other end (consumer).</span></p>
<p><strong>How do you create special files like named pipes and device files?</strong><span style="font-family: verdana,geneva;"><br />
The system call mknod creates special files in the following sequence.<br />
kernel assigns new inode,<br />
sets the file type to indicate that the file is a pipe, directory or special file,<br />
If it is a device file, it makes the other entries like major, minor device numbers.<br />
For example:<br />
If the device is a disk, major device number refers to the disk controller and minor device number is the disk.</span></p>
<p><strong>Discuss the mount and unmount system calls</strong><span style="font-family: verdana,geneva;"><br />
The privileged mount system call is used to attach a file system to a directory of another file system; the unmount system call detaches a file system. When you mount another file system on to your directory, you are essentially splicing one directory tree onto a branch in another directory tree. The first argument to mount call is the mount point, that is , a directory in the current file naming system. The second argument is the file system to mount to that point. When you insert a cdrom to your unix system&#8217;s drive, the file system in the cdrom automatically mounts to /dev/cdrom in your system.</span></p>
<p><strong>How does the inode map to data block of a file?</strong><span style="font-family: verdana,geneva;"><br />
Inode has 13 block addresses. The first 10 are direct block addresses of the first 10 data blocks in the file. The 11th address points to a one-level index block. The 12th address points to a two-level (double in-direction) index block. The 13th address points to a three-level(triple in-direction)index block. This provides a very large maximum file size with efficient access to large files, but also small files are accessed directly in one disk read.</span></p>
<p><strong>What is a shell?</strong><span style="font-family: verdana,geneva;"><br />
A shell is an interactive user interface to an operating system services that allows an user to enter commands as character strings or through a graphical user interface. The shell converts them to system calls to the OS or forks off a process to execute the command. System call results and other information from the OS are presented to the user through an interactive interface. Commonly used shells are sh,csh,ks etc.</span></p>
<p><strong>Brief about the initial process sequence while the system boots up.</strong><span style="font-family: verdana,geneva;"><br />
While booting, special process called the &#8216;swapper&#8217; or &#8216;scheduler&#8217; is created with Process-ID 0. The swapper manages memory allocation for processes and influences CPU allocation. The swapper inturn creates 3 children:<br />
• the process dispatcher,<br />
• vhand and<br />
• dbflush<br />
with IDs 1,2 and 3 respectively.<br />
This is done by executing the file /etc/init. Process dispatcher gives birth to the shell. Unix keeps track of all the processes in an internal data structure called the Process Table (listing command is ps -el).</span></p>
<p><strong>What are various IDs associated with a process?</strong><span style="font-family: verdana,geneva;"><br />
Unix identifies each process with a unique integer called ProcessID. The process that executes the request for creation of a process is called the &#8216;parent process&#8217; whose PID is &#8216;Parent Process ID&#8217;. Every process is associated with a particular user called the &#8216;owner&#8217; who has privileges over the process. The identification for the user is &#8216;UserID&#8217;. Owner is the user who executes the process. Process also has &#8216;Effective User ID&#8217; which determines the access privileges for accessing resources like files.<br />
getpid() -process id<br />
getppid() -parent process id<br />
getuid() -user id<br />
geteuid() -effective user id</span></p>
<p><strong>Explain fork() system call.</strong><span style="font-family: verdana,geneva;"><br />
The `fork()&#8217; used to create a new process from an existing process. The new process is called the child process, and the existing process is called the parent. We can tell which is which by checking the return value from `fork()&#8217;. The parent gets the child&#8217;s pid returned to him, but the child gets 0 returned to him.</span></p>
<p><strong>Predict the output of the following program code</strong><span style="font-family: verdana,geneva;"><br />
main()<br />
{<br />
fork();<br />
printf(&#8220;Hello World!&#8221;);<br />
}<br />
Answer:<br />
Hello World!Hello World!<br />
Explanation:<br />
The fork creates a child that is a duplicate of the parent process. The child begins from the fork().All the statements after the call to fork() will be executed twice.(once by the parent process and other by child). The statement before fork() is executed only by the parent process.</span></p>
<p><strong>Predict the output of the following program code</strong><span style="font-family: verdana,geneva;"><br />
main()<br />
{<br />
fork(); fork(); fork();<br />
printf(&#8220;Hello World!&#8221;);<br />
}<br />
Answer:<br />
&#8220;Hello World&#8221; will be printed 8 times.<br />
Explanation:<br />
2^n times where n is the number of calls to fork()</span></p>
<p><strong>List the system calls used for process management:<br />
</strong>System calls Description<span style="font-family: verdana,geneva;"><br />
fork() To create a new process<br />
exec() To execute a new program in a process<br />
wait() To wait until a created process completes its execution<br />
exit() To exit from a process execution<br />
getpid() To get a process identifier of the current process<br />
getppid() To get parent process identifier<br />
nice() To bias the existing priority of a process<br />
brk() To increase/decrease the data segment size of a process</span></p>
<p><strong>How can you get/set an environment variable from a program?<br />
</strong>Getting the value of an environment variable is done by using `getenv()&#8217;.<span style="font-family: verdana,geneva;"><br />
Setting the value of an environment variable is done by using `putenv()&#8217;.</span></p>
<p><strong>How can a parent and child process communicate?<br />
</strong>A parent and child can communicate through any of the normal inter-process communication schemes (pipes, sockets, message queues, shared memory), but also have some special ways to communicate that take advantage of their relationship as a parent and child. One of the most obvious is that the parent can get the exit status of the child.</p>
<p><strong>What is a zombie?<br />
</strong>When a program forks and the child finishes before the parent, the kernel still keeps some of its information about the child in case the parent might need it &#8211; for example, the parent may need to check the child&#8217;s exit status. To be able to get this information, the parent calls `wait()&#8217;; In the interval between the child terminating and the parent calling `wait()&#8217;, the child is said to be a `zombie&#8217; (If you do `ps&#8217;, the child will have a `Z&#8217; in its status field to indicate this.)</p>
<p><strong>What are the process states in Unix?<br />
</strong>As a process executes it changes state according to its circumstances. Unix processes have the following states:<span style="font-family: verdana,geneva;"><br />
Running : The process is either running or it is ready to run .<br />
Waiting : The process is waiting for an event or for a resource.<br />
Stopped : The process has been stopped, usually by receiving a signal.<br />
Zombie : The process is dead but have not been removed from the process table.</span></p>
<p><strong>What Happens when you execute a program?<br />
</strong>When you execute a program on your UNIX system, the system creates a special environment for that program. This environment contains everything needed for the system to run the program as if no other program were running on the system. Each process has process context, which is everything that is unique about the state of the program you are currently running. Every time you execute a program the UNIX system does a fork, which performs a series of operations to create a process context and then execute your program in that context. The steps include the following:<span style="font-family: verdana,geneva;"><br />
• Allocate a slot in the process table, a list of currently running programs kept by UNIX.<br />
• Assign a unique process identifier (PID) to the process.<br />
• iCopy the context of the parent, the process that requested the spawning of the new process.<br />
• Return the new PID to the parent process. This enables the parent process to examine or control the process directly.<br />
After the fork is complete, UNIX runs your program.</span></p>
<p><strong>What Happens when you execute a command?<br />
</strong>When you enter &#8216;ls&#8217; command to look at the contents of your current working directory, UNIX does a series of things to create an environment for ls and the run it:</p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;">The shell has UNIX perform a fork. This creates a new process that the shell will use to run the ls program.<br />
The shell has UNIX perform an exec of the ls program. This replaces the shell program and data with the program and data for ls and then starts running that new program. </span></span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;">The ls program is loaded into the new process context, replacing the text and data of the shell. The ls program performs its task, listing the contents of the current directory.</span></span></p>
<p><strong>What is a Daemon?<br />
</strong>A daemon is a process that detaches itself from the terminal and runs, disconnected, in the background, waiting for requests and responding to them. It can also be defined as the background process that does not belong to a terminal session. Many system functions are commonly performed by daemons, including the sendmail daemon, which handles mail, and the NNTP daemon, which handles USENET news. Many other daemons may exist. Some of the most common daemons are:<span style="font-family: verdana,geneva;"><br />
• init: Takes over the basic running of the system when the kernel has finished the boot process.<br />
• inetd: Responsible for starting network services that do not have their own stand-alone daemons. For example, inetd usually takes care of incoming rlogin, telnet, and ftp connections.<br />
• cron: Responsible for running repetitive tasks on a regular schedule.</span></p>
<p><strong>What is &#8216;ps&#8217; command for?</strong><span style="font-family: verdana,geneva;"><br />
The ps command prints the process status for some or all of the running processes. The information given are the process identification number (PID),the amount of time that the process has taken to execute so far etc.</span></p>
<p><strong>How would you kill a process?<br />
</strong>The kill command takes the PID as one argument; this identifies which process to terminate. The PID of a process can be got using &#8216;ps&#8217; command.</p>
<p><strong>What is an advantage of executing a process in background?<br />
</strong>The most common reason to put a process in the background is to allow you to do something else interactively without waiting for the process to complete. At the end of the command you add the special background symbol, &amp;. This symbol tells your shell to execute the given command in the background.<span style="font-family: verdana,geneva;"><br />
Example: cp *.* ../backup&amp; (cp is for copy)</span></p>
<p><strong>How do you execute one program from within another?<br />
</strong>The system calls used for low-level process creation are execlp() and execvp(). The execlp call overlays the existing program with the new one , runs that and exits. The original program gets back control only when an error occurs.<span style="font-family: verdana,geneva;"><br />
execlp(path,file_name,arguments..); //last argument must be NULL<br />
A variant of execlp called execvp is used when the number of arguments is not known in advance.<br />
execvp(path,argument_array); //argument array should be terminated by NULL</span></p>
<p><strong>What is IPC? What are the various schemes available?<br />
</strong>The term IPC (Inter-Process Communication) describes various ways by which different process running on some operating system communicate between each other. Various schemes available are as follows:<span style="font-family: verdana,geneva;"><br />
Pipes:<br />
One-way communication scheme through which different process can communicate. The problem is that the two processes should have a common ancestor (parent-child relationship). However this problem was fixed with the introduction of named-pipes (FIFO).</span></p>
<p>Message Queues :<span style="font-family: verdana,geneva;"><br />
Message queues can be used between related and unrelated processes running on a machine.</span></p>
<p>Shared Memory:<span style="font-family: verdana,geneva;"><br />
This is the fastest of all IPC schemes. The memory to be shared is mapped into the address space of the processes (that are sharing). The speed achieved is attributed to the fact that there is no kernel involvement. But this scheme needs synchronization.</span></p>
<p><strong>State and explain about features of UNIX?<br />
</strong>UNIX operating system originally was developed in 1969. This is an open source operating system developed by AT&amp;T. It is widely used in work stations and servers. It is designed to be multi tasking, multi user and portable. UNIX has many several components packed together.</p>
<p><strong>Explain about sh?</strong><span style="font-family: verdana,geneva;"><br />
Sh is the command line interpreter and it is the primary user interface. This forms the programmable command line interpreter. After windows appeared it still retained the programmable characteristics.</span></p>
<p><strong>Explain about system and user utilities?<br />
</strong>There are two utilities they are system and user utilities. System utilities contain administrative tools such as mkfs, fsck, etc. Where as user utilities contain features such as passwd, kill, etc. It basically contains environment values.</p>
<p><strong>Explain about document formatting?<br />
</strong>UNIX systems were primarily used for typesetting systems and document formatting. Modern UNIX systems used packages such as Tex and Ghostscript. It uses some of the programs such as nroff, tbl, troff, refer, eqn and pic. Document formatting is very used because it forms the base of UNIX.</p>
<p><strong>Explain about communication features in UNIX?<br />
</strong>Early UNIX systems used inter user communication programs mail and write commands. They never contained a fully embedded inter user communication features. Systems with BSD included TCP/IP protocols.</p>
<p><strong>Explain about chmod options filename?<br />
</strong>This command allows you to change, write, read and execute permissions on your file. Changes can be done to the file system but at times you need to change permissions for the file systems. At times files should be executable for viewing the files.</p>
<p><strong>Explain about gzip filename?<br />
</strong>Gzip filename is used to compress the files so that those files take up less space. The size of the file actually gets reduced to half their size but they might also depend upon about the file size and nature of the file systems. Files using gzip file name end with .gz.</p>
<p><strong>Explain about refer?<br />
</strong>Refer was written in Bell Laboratories and it is implemented as a troff preprocessor. This program is used managing bibliographic references and it is used to cite them in troff documents. It is offered in most of the UNIX packages. It refers with text and reference file.</p>
<p><strong>Explain about lpr filename?<br />
</strong>This command is used to print a file. If you want to change the default print you can change the printer by using the P option. For double sided print you can use lpr-Pvalkyr-d. This is very useful command in UNIX present in many packages.</p>
<p><strong>Explain about lprm job number?<br />
</strong>This command is used to remove documents from the printer queue. The job number or the queue number can be found by using lpq. Printer name should be specified but this is not necessary if you want to use your default printer.</p>
<p><strong>Brief about the command ff?</strong><span style="font-family: verdana,geneva;"><br />
This command finds files present anywhere on the system. This command is used to find document location where you forgot the directory in which you kept the file but you do remember about the name. This command is not restricted in finding files it displays files and documents relevant to the name.</span></p>
<p><strong>Brief about finger username?<br />
</strong>This command is used to give information about the user; it gives out a profile about the user. This command is very useful for administrators as it gives the log information, email, current log information, etc. finger also displays information such as phone number and name when they use a file called .plan.</p>
<p><strong>Explain about the command elm?<br />
</strong>This command lets you to send email message from your system. This command is not the only one which sends email there are lots of other messenger systems which can facilitate the process of sending a mail. This command behaves differently on different machines.</p>
<p><strong>Brief about the command kill PID?<br />
</strong>This command ends the process to which it was assigned (ID). This command cannot be used in multi systems in the network. ID can be obtained by the command ps. This command ignores completely the state at which the process is it kills the process.</p>
<p><strong>Explain about the command lynx?<br />
</strong>This command helps you to browse web from an ordinary terminal. Text can be seen but not the pictures. URL can be assigned as an argument to the G command. Help section can be obtained by pressing H and Q makes the program to quit.</p>
<p><span style="font-family: verdana,geneva;"><strong> Brief about the command nn?<br />
</strong>This command allows you to read the news. First you can read about the local news and then the remote news. &#8220;nnl” command makes or allows you to read local news and nnr command is used to read remote news. Manual and help information is available with many popular packages.</span></p>
<p><strong>Brief about ftp hostname?<br />
</strong>This command lets you download information, documents, etc from a remote ftp. First it is important to configure an FTP for the process to begin. Some of the important commands relevant to the usage of FTP are as follows get, put, mget, mput, etc. If you are planning to transfer files other than ASCII defined it is imperative to use binary mode.</p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;"><strong>Explain about the case statement.</strong><br />
The case statement compares word to the patterns from top to bottom, and performs the commands associated with the first, and only the first, pattern that matches. The patterns are written using the shells pattern matching rules, slightly generalized.</span></span></p>
<p><strong>Explain the basic forms of each loop?</strong><span style="font-family: verdana,geneva;"><br />
There are three loops; for, while and until. For loop is by far the most commonly used form of loop. Basically like other programs it executes a given set of commands and instructions. While and until forms of loop use the exit status from a command based system. They control the execution of the commands in the body of the loop.</span></p>
<p><strong>Describe about awk and sed?</strong><span style="font-family: verdana,geneva;"><br />
The awk program processes this to report the changes in an easier to understand format. Sed output is always behind its input by one line; there is always a line of input that has been processed but not printed, and this would introduce an unwanted delay.<br />
<strong>Explain about signal argument?<br />
</strong>The sequence of commands is a single argument, so it must almost always be quoted. The signal numbers are small integers that identify the signal. For example, 2 is the signal generated by pressing the DEL key, and 1 is generated by hanging up the phone. Unless a program has taken explicit action to deal with signals, the signal will terminate it.</span></p>
<p><strong>Explain about exec?</strong><span style="font-family: verdana,geneva;"><br />
The exec is just for efficiency, the command would run just as well without it. Exec is a shell built-in that replaces the process running this shell by the named program, thereby saving one process- the shell that would normally wait for the program to complete. Exec could be used at the end of the enhanced cal program when it invokes /usr/bin/cal.</span></p>
<p><strong>Explain about trap command<br />
</strong>The trap command sequence must explicitly invoke exit, or the shell program will continue to execute after the interrupt. The command sequence will be read twice: once when the trap is set and once when it is invoked. Trap is used sometimes interactively, most often to prevent a program from being killed by the hangup signal.</p>
<p><span style="font-family: verdana,geneva;"><strong> Explain about sort command?<br />
</strong>The sort command has an option –o to overwrite a file:<br />
$ sort file1 -0 file2<br />
Is equivalent to<br />
$ sort file1 &gt; file2<br />
If file 1 and file 2 are the same file, redirection with &gt; will truncate the input file before it is sorted. The –o option works correctly because the input is sorted and saved in a temporary file before the output file is created. Many other commands could also use a –o option.</span></p>
<p><span style="font-family: verdana,geneva;"><strong> Explain about the command overwrite?<br />
</strong>Overwrite is committed to changing the original file. If the program providing input to overwrite gets an error, its output will be empty and overwrite will dutifully and reliably destroy the argument file. Overwrite could ask for conformation before replacing the file, but making overwrite interactive would negate its efficiency. Overwrite could check that its input is empty.</span></p>
<p><span style="font-family: verdana,geneva;"><strong> Explain about kill command?<br />
</strong>The kill command only terminates processes specified by process-id when a specific background process needs to be killed, you must usually run ps to find the process-id and then re type it as an argument to kill. Killing process is dangerous and care must be taken to kill the right processes.</span></p>
<p><span style="font-family: verdana,geneva;"><strong> Explain about the shell variable IFS?</strong><br />
The shell variable IFS (internal field separator) is a string of characters that separate words in argument lists such as back quotes and for statements. Normally IFS contains a blank, a tab, and a new line, but we can change it to anything useful, such as just a newline.</span></p>
<p><strong>Explain about the rules used in overwrite to preserve the arguments to the users command?<br />
</strong>Some of the rules are<span style="font-family: verdana,geneva;"><br />
• $* and $@ expand into the arguments and are rescanned; blanks in arguments will result in multiple arguments.<br />
• “$*” is a single word composed of all the arguments to the shell file joined together with spaces.<br />
• “$@” is identical to the arguments received by the shell file: blanks in arguments are ignored and the result is a list of words identical to the original arguments.</span></p>
<p><strong>Explain about @@@ lines?</strong><span style="font-family: verdana,geneva;"><br />
@@@ Lines are counted (but not printed), and as long as the count is not greater than the desired version, the editing commands are passed through. Two ed commands are added after those from the history file: $d deletes the single @@@ line that sed left on the current version.</span></p>
<p><strong>Explain about vis?</strong><span style="font-family: verdana,geneva;"><br />
Vis that copied its standard input to its standard output, except that it makes all non printing characters visible by printing them as \nnn, where nnn is the octal value of the character. Vis is invaluable for detecting strange or unwanted characters that may have crept into files.</span></p>
<p><span style="font-family: verdana,geneva;"><strong> Is the function call to exit at the end of vis necessary?</strong><br />
The call to exit at the end of vis is not necessary to make the program work properly, but it ensures that any caller of the program will see a normal exit status from the program when it completes. An alternate way to return status is to leave main with return 0; the return value from main is the program`s exit status.<br />
</span><span style="font-family: verdana,geneva;"><br />
<strong>Explain about fgets?</strong></span><span style="font-family: verdana,geneva;"><br />
Fgets (buf, size, fp) fetches the next line of input from fp, up to and including a newline, into buf, and adds a terminating \0; at most size-1 characters are copied. A Null value is returned at the end of the file.</span></p>
<p><span style="font-family: verdana,geneva;"><strong> Explain about efopen page?<br />
</strong>The routine efopen encapsulates a vey common operation: try to open a file; if it`s not possible, print an error message and exit. To encourage error messages that identify the offending program, efopen refers to an external string program containing the name of the program, which is set in main.</span></p>
<p><span style="font-family: verdana,geneva;"><strong> Explain about yacc parser generator?<br />
</strong>Yacc is a parser generator that is a program for converting a grammatical specification of a language like the one above into a parser that will parse statements in the language.</span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;"><strong>What is $*?</strong><br />
Will display all the commandline arguments that are passed to the script</span></span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;"><strong>Different types of shells?</strong><br />
Bourne Shell (bash)<br />
Korn Shell (ksh)<br />
C Shell (csh)</span></span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: verdana,geneva;">What  is difference between a wild-card and regular expression?</span></span></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/interview-questions-sets-shell-script-descriptive/">Interview Questions Sets : Shell Script Descriptive</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-sets-shell-script-descriptive/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Maven Interview Questions and Answers &#8211; Maven Job Interview Kit</title>
		<link>https://www.scmgalaxy.com/tutorials/maven-interview-questions-and-answers/</link>
					<comments>https://www.scmgalaxy.com/tutorials/maven-interview-questions-and-answers/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 16 Apr 2010 08:41:22 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Answer]]></category>
		<category><![CDATA[Apache Maven Interview Questions & Answer]]></category>
		<category><![CDATA[Build automation tool]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Interview Questions & Answer for Maven]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Maven Interview]]></category>
		<category><![CDATA[Maven Interview Guide]]></category>
		<category><![CDATA[Maven Interview Q&A]]></category>
		<category><![CDATA[Maven Interview Questions & Answer]]></category>
		<category><![CDATA[Maven Job Interview]]></category>
		<category><![CDATA[Maven Job Interview Kit]]></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/04/16/maven-interview-questions-and-answers/</guid>

					<description><![CDATA[<p>Maven Interview Questions and Answers Contributed by Rajesh Kumar with the help of Google Search and www.scmGalaxy.com Is there a [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/maven-interview-questions-and-answers/">Maven Interview Questions and Answers &#8211; Maven 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 wp-image-4283 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/maven-interview-questions-a.png" alt="maven-interview-questions-answers" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/maven-interview-questions-a.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/maven-interview-questions-a-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><b><u>Maven Interview Questions and Answers</u></b></p>
<p><b>Contributed by Rajesh Kumar with the help of Google Search and </b><a href="http://www.scmgalaxy.com/"><b>www.scmGalaxy.com</b></a><b> </b><br />
<b>Is there a way to use the current date in the POM?</b><br />
Take a look at the buildnumber plugin. It can be used to generate a build date each time I do a build, as follows:<br />
<i>&lt;plugin&gt;<br />
&lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;<br />
&lt;artifactId&gt;maven-buildnumber-plugin&lt;/artifactId&gt;<br />
&lt;version&gt;0.9.4&lt;/version&gt;<br />
&lt;configuration&gt;<br />
&lt;format&gt;{0,date,yyyy-MM-dd HH:mm:ss}&lt;/format&gt;<br />
&lt;items&gt;<br />
&lt;item&gt;timestamp&lt;/item&gt;<br />
&lt;/items&gt;<br />
&lt;doCheck&gt;false&lt;/doCheck&gt;<br />
&lt;doUpdate&gt;false&lt;/doUpdate&gt;<br />
&lt;/configuration&gt;<br />
&lt;executions&gt;<br />
&lt;execution&gt;<br />
&lt;phase&gt;validate&lt;/phase&gt;<br />
&lt;goals&gt;<br />
&lt;goal&gt;create&lt;/goal&gt;<br />
&lt;/goals&gt;<br />
&lt;/execution&gt;<br />
&lt;/executions&gt;<br />
&lt;/plugin&gt;</i></p>
<p><b>pom.xml or settings.xml? What is the best practice configuration usage for these files?</b><br />
The best practice guideline between settings.xml and pom.xml is that configurations in settings.xml must be specific to the current user and that pom.xml configurations are specific to the project.<br />
For example, &lt;repositories&gt; in pom.xml would tell all users of the project to use the &lt;repositories&gt; specified in the pom.xml. However, some users may prefer to use a mirror instead, so they&#8217;ll put &lt;mirrors&gt; in their settings.xml so they can choose a faster repository server.<br />
so there you go:<br />
settings.xml -&gt; user scope<br />
pom.xml -&gt; project scope</p>
<p><b>How do I indicate array types in a MOJO configuration?</b></p>
<pre>&lt;tags&gt;
    &lt;tag&gt;value1&lt;/tag&gt;
    &lt;tag&gt;value2&lt;/tag&gt;
  &lt;/tags&gt;</pre>
<p><b>How should I point a path for maven 2 to use a certain version of JDK when I have different versions of JDK installed on my PC and my JAVA_HOME already set? </b><br />
If you don&#8217;t want to change your system JAVA_HOME, set it in maven script instead.<br />
<b>How do I setup the classpath of my antrun plugin to use the classpath from maven?</b><br />
The maven classpaths are available as ant references when running your ant script. The ant reference names and some examples can be found here: <a href="http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html">maven-antrun-plugin</a><br />
<b>Is it possible to use HashMap as configurable parameter in a plugin? How do I configure that in pom.xml?</b><br />
Yes. Its possible to use a HashMap field as a parameter in your plugin. To use it, your pom configuration should look like this:</p>
<pre>&lt;myMap&gt;
      &lt;yourkey&gt;yourvalue&lt;/yourkey&gt;
      .....
   &lt;/myMap&gt;</pre>
<p><b>How do I filter which classes should be put inside the packaged jar?</b><br />
All compiled classes are always put into the packaged jar. However, you can configure the compiler plugin to exclude compiling some of the java sources using the compiler parameter excludes as follows:</p>
<pre>&lt;project&gt;
   ...
   &lt;build&gt;
     ...
     &lt;plugins&gt;
       &lt;plugin&gt;
         &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
         &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
         &lt;configuration&gt;
           &lt;excludes&gt;
             &lt;exclude&gt;**/NotNeeded*.java&lt;/exclude&gt;
           &lt;/excludes&gt;
         &lt;/configuration&gt;
       &lt;/plugin&gt;
     &lt;/plugins&gt;
     ...
   &lt;/build&gt;
  &lt;/project&gt;</pre>
<p><b>How can I change the default location of the generated jar when I command &#8220;mvn package&#8221;?</b><br />
By default, the location of the generated jar is in ${project.build.directory} or in your target directory.<br />
We can change this by configuring the outputDirectory of maven-jar-plugin.</p>
<pre>&lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;outputDirectory&gt;${project.build.directory}/&lt;!-- directory --&gt;&lt;/outputDirectory&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;</pre>
<p><b>How does maven 2 implement reproducibility?</b></p>
<ul type="square">
<li>Add the exact versions of plugins into your pluginDepenencies (make use of the release plugin)</li>
<li>Make use of ibiblio for your libraries. This should always be the case for jars. (The group is working on stabilising metadata and techniques for locking it down even if it changes. An internal repository mirror that doesn&#8217;t fetch updates (only new) is recommended for true reproducibility.)</li>
</ul>
<p><b>Why there are no dependency properties in Maven 2?</b><br />
They were removed because they aren&#8217;t reliable in a transitive environment. It implies that the dependency knows something about the<br />
environment of the dependee, which is back to front. In most cases, granted, the value for war bundle will be the same for a particular<br />
dependency &#8211; but that relies on the dependency specifying it.<br />
In the end, we give control to the actual POM doing the building, trying to use sensible defaults that minimise what needs to be<br />
specified, and allowing the use of artifact filters in the configuration of plugins.</p>
<p><b>What does aggregator mean in mojo?</b><br />
When a Mojo has a @aggregator expression, it means that It can only build the parent project of your multi-module-project, the one who has the packaging of pom. It can also give you values for the expression ${reactorProjects} where reactorProjects are the MavenProject references to the parent pom modules.<br />
<b>Where is the plugin-registry.xml?</b><br />
From the settings.xml, you may enable it by setting &lt;usePluginRegistry/&gt; to true<br />
and the file will be in ~/.m2/plugin-registry.xml<br />
<b>How do I create a command line parameter (i.e., -Dname=value ) in my mojo?</b><br />
In your mojo, put &#8220;expression=${&lt;exp&gt;}&#8221; in your parameter field</p>
<pre>/**
   * @parameter expression="${expression.name}"
   */
  private String exp;</pre>
<p>You may now able to pass parameter values to the command line.<br />
&#8220;mvn -Dexpression.name=value install&#8221;<br />
<b>How do I convert my &lt;reports&gt; from Maven 1 to Maven 2?</b><br />
In m1, we declare reports in the pom like this:</p>
<pre>&lt;project&gt;
    ...
    &lt;reports&gt;
      &lt;report&gt;maven-checkstyle-plugin&lt;/report&gt;
      &lt;report&gt;maven-pmd-plugin&lt;/report&gt;
    &lt;/reports&gt;
  &lt;/project&gt;</pre>
<p>In m2, the &lt;reports&gt; tag is replaced with &lt;reporting&gt;</p>
<pre>&lt;project&gt;
    ...
    &lt;reporting&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-checkstyle-plugin&lt;/artifactId&gt;
          &lt;configuration&gt;
             &lt;!-- put your config here --&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-pmd-plugin&lt;/artifactId&gt;
          &lt;configuration&gt;
             &lt;!-- put your config here --&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;reporting&gt;
  &lt;/project&gt;</pre>
<p><b>What does the &#8220;You cannot have two plugin executions with the same (or missing) elements&#8221; message mean?</b><br />
It means that you have executed a plugin multiple times with the same &lt;id&gt;. Provide each &lt;execution&gt; with a unique &lt;id&gt; then it would be ok.<br />
<b>How do I add my generated sources to the compile path of Maven, when using modello?</b><br />
Modello generate the sources in the generate-sources phase and automatically adds the source directory for compilation in maven. So you don&#8217;t have to copy the generated sources. You have to declare the modello-plugin in the build of your plugin for source generation (in that way the sources are generated each time).<br />
<b>What is Maven&#8217;s order of inheritance?</b></p>
<ol start="1" type="1">
<li>parent pom</li>
<li>project pom</li>
<li>settings</li>
<li>CLI parameters</li>
</ol>
<p>where the last overrides the previous.<br />
<b>How do I execute the assembly plugin with different configurations?</b><br />
Add this to your pom,</p>
<pre>&lt;build&gt;
    ...
    &lt;plugins&gt;
      &lt;plugin&gt;
        &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
        &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
        &lt;executions&gt;
          &lt;execution&gt;
      &lt;id&gt;1&lt;/id&gt;
            &lt;phase&gt;install&lt;/phase&gt;
        &lt;goals&gt;
             &lt;goal&gt;assembly&lt;/goal&gt;
       &lt;/goals&gt;
          &lt;configuration&gt;
               &lt;descriptor&gt;src/main/descriptors/bin.xml&lt;/descriptor&gt;
               &lt;finalName&gt;${project.build.finalName}-bin&lt;/finalName&gt;
       &lt;/configuration&gt;
          &lt;/execution&gt;</pre>
<p>&lt;execution&gt;<br />
&lt;id&gt;2&lt;/id&gt;<br />
&lt;phase&gt;install&lt;/phase&gt;<br />
&lt;goals&gt;<br />
&lt;goal&gt;assembly&lt;/goal&gt;<br />
&lt;/goals&gt;<br />
&lt;configuration&gt;<br />
&lt;descriptor&gt;src/main/descriptors/src.xml&lt;/descriptor&gt;<br />
&lt;finalName&gt;${project.build.finalName}-src&lt;/finalName&gt;<br />
&lt;/configuration&gt;<br />
&lt;/execution&gt;<br />
&lt;/executions&gt;<br />
&lt;/plugin&gt;<br />
&lt;/plugins&gt;<br />
&#8230;</p>
<p>&lt;/build&gt;</p>
<p>and run mvn install, this will execute the assembly plugin twice with different config.<br />
<b>How do I configure the equivalent of maven.war.src of war plugin in Maven 2.0?</b></p>
<pre>&lt;build&gt;
    ...
    &lt;plugins&gt;
      &lt;plugin&gt;
        &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
        &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
        &lt;configuration&gt;
           &lt;warSourceDirectory&gt;&lt;!-- put the path of the directory --&gt;&lt;/warSourceDirectory&gt;
        &lt;/configuration&gt;
      &lt;/plugin&gt;
    &lt;/plugins&gt;
    ...
  &lt;/build&gt;</pre>
<p><b>How do I add main class in a generated jar&#8217;s manifest?</b><br />
Configure the maven-jar-plugin and add your main class.</p>
<pre>&lt;plugin&gt;
    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
    &lt;configuration&gt;
      &lt;archive&gt;
        &lt;manifest&gt;
     &lt;mainClass&gt;com.mycompany.app.App&lt;/mainClass&gt;
        &lt;/manifest&gt;
      &lt;/archive&gt;
    &lt;/configuration&gt;
  &lt;/plugin&gt;</pre>
<p><b>What does the FATAL ERROR with the message &#8220;Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log&#8221; when using the maven-checkstyle-plugin mean?</b><br />
Checkstyle uses commons-logging, which has classloader problems when initialized within a Maven plugin&#8217;s container. This results in the above message &#8211; if you run with &#8216;-e&#8217;, you&#8217;ll see something like the following:<br />
—<br />
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log<br />
—<br />
buried deep in the stacktrace.<br />
The only workaround we currently have for this problem is to include another commons-logging Log implementation in the plugin itself. So, you can solve the problem by adding the following to your plugin declaration in your POM:</p>
<pre>&lt;project&gt;
    ...
    &lt;build&gt;
      ...
      &lt;plugins&gt;
        ...
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-checkstyle-plugin&lt;/artifactId&gt;
          &lt;dependencies&gt;
            &lt;dependency&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
              &lt;version&gt;1.2.12&lt;/version&gt;
            &lt;/dependency&gt;
          &lt;/dependencies&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
    ...
    &lt;reporting&gt;
      ...
      &lt;plugins&gt;
        &lt;!-- your checkstyle report is registered here, according to Maven documentation --&gt;
      &lt;/plugins&gt;
    &lt;/reporting&gt;
  &lt;/project&gt;</pre>
<p>While this may seem a counter-intuitive way of configuring a report, it&#8217;s important to remember that Maven plugins can have a mix of reports and normal mojos. When a POM has to configure extra dependencies for a plugin, it should do so in the normal plugins section.<br />
We will probably try to fix this problem before the next release of the checkstyle plugin.<br />
<b>UPDATE:</b> This problem has been fixed in the SVN trunk version of the checkstyle plugin, which should be released very soon. <br clear="all" /> <i>Plugins and Lifecycle, Sites &amp; Reporting, Errors</i><br />
<b>How do I determine the stale resources in a Mojo to avoid reprocessing them?</b><br />
This can be done using the following piece of code:</p>
<pre>// Imports needed
  import org.codehaus.plexus.compiler.util.scan.InclusionScanException;
  import org.codehaus.plexus.compiler.util.scan.StaleSourceScanner;
  import org.codehaus.plexus.compiler.util.scan.mapping.SuffixMapping;</pre>
<p>// At some point of your code<br />
StaleSourceScanner scanner = new StaleSourceScanner( 0, Collections.singleton( &#8220;**/*.xml&#8221; ), Collections.EMPTY_SET );<br />
scanner.addSourceMapping( new SuffixMapping( &#8220;.xml&#8221;, &#8220;.html&#8221; ) );<br />
Set&lt;File&gt; staleFiles = (Set&lt;File&gt;) scanner.getIncludedSources( this.sourceDirectory, this.targetDirectory );</p>
<p>The second parameter to the StaleSourceScanner is the set of includes, while the third parameter is the set of excludes. You must add a source mapping to the scanner (second line). In this case we&#8217;re telling the scanner what is the extension of the result file (.html) for each source file extension (.xml). Finally we get the stale files as a Set&lt;File&gt; calling the getIncludedSources method, passing as parameters the source and target directories (of type File). The Maven API doesn&#8217;t support generics, but you may cast it that way if you&#8217;re using them.<br />
In order to use this API you must include the following dependency in your pom:</p>
<pre>&lt;dependencies&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.codehaus.plexus&lt;/groupId&gt;
      &lt;artifactId&gt;plexus-compiler-api&lt;/artifactId&gt;
      &lt;version&gt;1.5.1&lt;/version&gt;
    &lt;/dependency&gt;
  &lt;/dependencies&gt;</pre>
<p><b>Is there a property file for plug-in configuration in Maven 2.0?</b><br />
No. Maven 2.x no longer supports plug-in configuration via properties files. Instead, in Maven 2.0 you can configure plug-ins directly from command line using the -D arguement, or from the plug-in&#8217;s POM using the &lt;configuration&gt; element.<br />
<b>How do I determine which POM contains missing transitive dependency?</b><br />
run &#8220;mvn -X&#8221;<br />
<b>How do I integrate static (x) html into my Maven site?</b><br />
You can integrate your static pages in this several steps,</p>
<ul type="disc">
<li>Put your static pages in the resources directory, ${basedir}/src/site/resources.</li>
<li>Create your site.xml and put it in ${basedir}/src/site. An example below:</li>
</ul>
<pre>&lt;project name="Maven War Plugin"&gt;
    &lt;bannerLeft&gt;
      &lt;name&gt;Maven War Plugin&lt;/name&gt;
      &lt;src&gt;http://maven.apache.org/images/apache-maven-project.png&lt;/src&gt;
      &lt;href&gt;http://maven.apache.org/&lt;/href&gt;
    &lt;/bannerLeft&gt;
    &lt;bannerRight&gt;
      &lt;src&gt;http://maven.apache.org/images/maven-small.gif&lt;/src&gt;
    &lt;/bannerRight&gt;
    &lt;body&gt;
      &lt;links&gt;
        &lt;item name="Maven 2" xhref="http://maven.apache.org/maven2/"/&gt;
      &lt;/links&gt;</pre>
<p>&lt;menu name=&#8221;Overview&#8221;&gt;<br />
&lt;item name=&#8221;Introduction&#8221; xhref=&#8221;introduction.html&#8221;/&gt;<br />
&lt;item name=&#8221;How to Use&#8221; xhref=&#8221;howto.html&#8221;/&gt;<br />
&lt;/menu&gt;<br />
${reports}<br />
&lt;/body&gt;<br />
&lt;/project&gt;</p>
<p>Link the static pages by modifying the &lt;menu&gt; section, create items and map it with the filename of the static pages.</p>
<pre>&lt;menu name="Overview"&gt;
    &lt;item name="Introduction" xhref="introduction.html"/&gt;
    &lt;item name="How to Use" xhref="howto.html"/&gt;
    &lt;item name="&lt;put-name-here&gt;" xhref="&lt;filename-of-the-static-page&gt;"/&gt;
  &lt;/menu&gt;</pre>
<p><b>How do I run an ant task twice, against two different phases?</b><br />
You can specify multiple execution elements under the executions tag, giving each a different id and binding them at different phases.</p>
<pre>&lt;plugin&gt;
         &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
         &lt;executions&gt;
           &lt;execution&gt;
              * &lt;id&gt;one&lt;/id&gt;*
             &lt;phase&gt;generate-sources&lt;/phase&gt;
             &lt;configuration&gt;
               &lt;tasks&gt;
                 &lt;echo message="generate-sources!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"/&gt;
               &lt;/tasks&gt;
             &lt;/configuration&gt;
             &lt;goals&gt;
               &lt;goal&gt;run&lt;/goal&gt;
             &lt;/goals&gt;
           &lt;/execution&gt;</pre>
<p>&lt;execution&gt;<br />
*&lt;id&gt;two&lt;/id&gt;*<br />
&lt;phase&gt;package&lt;/phase&gt;<br />
&lt;configuration&gt;<br />
&lt;tasks&gt;<br />
* &lt;echo message=&#8221;package!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&#8221;/&gt;*</p>
<p>&lt;/tasks&gt;<br />
&lt;/configuration&gt;<br />
&lt;goals&gt;<br />
&lt;goal&gt;run&lt;/goal&gt;<br />
&lt;/goals&gt;<br />
&lt;/execution&gt;<br />
&lt;/executions&gt;<br />
&lt;/plugin&gt;</p>
<p><b>Can a profile inherit the configuration of a &#8220;sibling&#8221; profile?</b><br />
No. Profiles merge when their ID&#8217;s match &#8211; so you can inherit them from a parent POM (but you can&#8217;t inherit profiles from the same POM).<br />
<i>Inheritence and Interpolation, Plugins and Lifecycle, POM</i><br />
<b>How do I invoke the &#8220;maven dist&#8221; function from Maven 1.0, in Maven 2.0?</b><br />
mvn assembly:assembly<br />
See the <a href="http://maven.apache.org/plugins/maven-assembly-plugin/">Assembly Plugin documentation</a> for more details.<br />
<i>General, Plugins and Lifecycle</i><br />
<b>How do I specify which output folders the Eclipse plugin puts into the .classpath file?</b></p>
<pre>&lt;build&gt;
  ...
    &lt;pluginManagement&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt;
          &lt;configuration&gt;
            &lt;outputDirectory&gt;target-eclipse&lt;/outputDirectory&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/pluginManagement&gt;
  ...
  &lt;/build&gt;</pre>
<p><b>What is a Mojo?</b><br />
A mojo is a Maven plain Old Java Object. Each mojo is an executable goal in Maven, and a plugin is a distribution of one or more related mojos.<br />
<b>How to produce execution debug output or error messages?</b><br />
You could call Maven with <i>-X</i> parameter or <i>-e</i> parameter. For more information, run:</p>
<pre>mvn --help</pre>
<p><b>Maven compiles my test classes but doesn&#8217;t run them?</b><br />
Tests are run by the surefire plugin. The surefire plugin can be configured to run certain test classes and you may have unintentionally done so by specifying a value to ${test}. Check your settings.xml and pom.xml for a property named &#8220;test&#8221; which would like this:</p>
<pre>  ...
    &lt;properties&gt;
      &lt;property&gt;
        &lt;name&gt;test&lt;/name&gt;
        &lt;value&gt;some-value&lt;/value&gt;
      &lt;/property&gt;
   &lt;/properties&gt;
    ...</pre>
<p>Or</p>
<pre>  ...
    &lt;properties&gt;
      &lt;test&gt;some-value&lt;/test&gt;
   &lt;/properties&gt;
    ...</pre>
<p><b>How do I include tools.jar in my dependencies?</b><br />
The following code includes tools.jar on Sun JDKs (it is already included in the runtime for Mac OS X and some free JDKs).</p>
<pre>...
    &lt;profiles&gt;
      &lt;profile&gt;
        &lt;id&gt;default-tools.jar&lt;/id&gt;
        &lt;activation&gt;
          &lt;property&gt;
            &lt;name&gt;java.vendor&lt;/name&gt;
            &lt;value&gt;Sun Microsystems Inc.&lt;/value&gt;
         &lt;/property&gt;
       &lt;/activation&gt;
        &lt;dependencies&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;com.sun&lt;/groupId&gt;
            &lt;artifactId&gt;tools&lt;/artifactId&gt;
            &lt;version&gt;1.4.2&lt;/version&gt;
            &lt;scope&gt;system&lt;/scope&gt;
            &lt;systemPath&gt;${java.home}/../lib/tools.jar&lt;/systemPath&gt;
         &lt;/dependency&gt;
       &lt;/dependencies&gt;
     &lt;/profile&gt;
   &lt;/profiles&gt;
    ...</pre>
<p><b>I have a jar that I want to put into my local repository. How can I copy it in?</b><br />
If you understand the layout of the maven repository, you can copy the jar directly into where it is meant to go. Maven will find this file next time it is run.<br />
If you are not confident about the layout of the maven repository, then you can adapt the following command to load in your jar file, all on one line.</p>
<pre>mvn install:install-file
    -Dfile=&lt;path-to-file&gt;
    -DgroupId=&lt;group-id&gt;
    -DartifactId=&lt;artifact-id&gt;
    -Dversion=&lt;version&gt;
    -Dpackaging=&lt;packaging&gt;
    -DgeneratePom=true</pre>
<p>Where: &lt;path-to-file&gt;  the path to the file to load<br />
&lt;group-id&gt;      the group that the file should be registered under<br />
&lt;artifact-id&gt;   the artifact name for the file<br />
&lt;version&gt;       the version of the file<br />
&lt;packaging&gt;     the packaging of the file e.g. jar</p>
<p>This should load in the file into the maven repository, renaming it as needed.<br />
<b>How do I set up Maven so it will compile with a target and source JVM of my choice?</b><br />
You must configure the source and target parameters in your pom. For example, to set the source and target JVM to 1.5, you should have in your pom :</p>
<pre>...
    &lt;build&gt;
    ...
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.0.2&lt;/version&gt;
          &lt;configuration&gt;
            &lt;source&gt;1.5&lt;/source&gt;
            &lt;target&gt;1.5&lt;/target&gt;
         &lt;/configuration&gt;
       &lt;/plugin&gt;
     &lt;/plugins&gt;
    ...
   &lt;/build&gt;
    ...</pre>
<h2>How can I use Ant tasks in Maven 2?</h2>
<p>There are currently 2 alternatives:</p>
<ul type="disc">
<li>For use in a plugin written in Java, Beanshell or other Java-like scripting language, you can construct the Ant tasks using the <a href="http://ant.apache.org/manual/antexternal.html">instructions given in the Ant documentation</a></li>
<li>If you have very small amounts of Ant script specific to your project, you can use the <a href="http://maven.apache.org/plugins/maven-antrun-plugin/index.html">AntRun plugin</a>.</li>
</ul>
<h2>Maven 2.0 Eclipse Plug-in</h2>
<p>Plugins are great in simplifying the life of programmers; it actually reduces the repetitive tasks involved in the programming. In this article our experts will show you the steps required to download and install the Maven Plugin with your eclipse IDE.<br />
<b>Why Maven with Eclipse </b><br />
Eclipse is an industry leader in IDE market, it is used very extensively in developing projects all around the world. Similarly, Maven is a high-level, intelligent project management, build and deployment tool provided by Apache’s software foundation group. Maven deals with application development lifecycle management.</p>
<p>Maven–Eclipse Integration makes the development, testing, packaging and deployment process easy and fast. Maven Integration for Eclipse provides a tight integration for Maven into the IDE and avails the following features:<br />
· It helps to launch Maven builds from within Eclipse<br />
· It avails the dependency management for Eclipse build path based on Maven&#8217;s pom.xml<br />
· It resolves Maven dependencies from the Eclipse workspace withoutinstalling to local Maven repository<br />
· It avails an automatic downloading of the required dependencies from the remote Maven repositories<br />
· It provides wizards for creating new Maven projects, pom.xml or to enable Maven support on plain Java project<br />
· It helps to search quickly for dependencies in Maven remote repositories<br />
· It quickly fixes in the Java editor for looking up required dependencies/jars by the class or package name.<br />
<b>What do you Need?</b><br />
1. Get the Eclipse Development Environment :<br />
In this tutorial we are using the eclipse-SDK-3.3-win32, which can be downloaded from<a href="http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a><br />
2. Get Maven-eclipse-plugin-plugin :<br />
It is available at <u>http://mevenide.codehaus.org/maven-eclipse-plugin-plugin/</u></p>
<p><b>Download and Install Eclipse<br />
</b>First download and install the eclipse plugin on your development machine then proceed with the installation process of the eclipse-maven plugin.</p>
<h2>A Maven 2.0 Repository: An Introduction</h2>
<p><b>Maven repository Types: </b></p>
<ul type="disc">
<li><b>Public remote external repository: </b>This public external repository exists at ibiblio.org and maven synchronizes with this repository.</li>
<li><b>Private remote internal repository: </b>We set up this repository and make changes in the maven&#8217;s pom.xml or settings.xml file to use this repository.</li>
<li><b>Local repository: </b>This repository is maintained by the developer and stays on the developer&#8217;s machine. It is synchronous to the maven repository defined in the settings.xml file that exists in the .m2 directory at its standard location i.e. <b>C:\Documents and Settings\Administrator. </b>If no private internal repository is setup and not listed in the pom.xml or in the setting.xml then the local repository exists on the developer&#8217;s machine is synchronized with the public maven repository at ibiblio.org.</li>
</ul>
<p><b>Advantages of having an internal private repository : </b></p>
<ul type="disc">
<li>Reduces conflicts among likelihood versions.</li>
<li>To build first time it requires less manual intervention.</li>
<li>Rather than having several separate independent libraries it provides a single central reference repository for all the dependent software libraries.</li>
<li>It quickly builds the project while using an internal repository as maven artifacts are retrieved from the intranet server rather than retrieving from the server on internet.</li>
</ul>
<table class="mceItemTable" border="0" width="48%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="100%"></td>
</tr>
</tbody>
</table>
<p><b>Use cases for maven repository: </b></p>
<ul type="disc">
<li>It creates two sub-repository inside the internal repository.</li>
</ul>
<ul>
<li>Downloads ibiblio-cache from ibiblio for artifacts and make it available publically. This synchronizes with external repository from ibiblio.</li>
<li>internal-maven-repository<b>:</b> used for internal artifacts of an organization. It contains unique artifacts for the organization and is not synchronized with any repository.</li>
<li>Alternatively, another sub-repository that is not at ibiblio can be created for artifacts. This does not synchronize with any external repository.</li>
<li>Browse the remote repository by using a web browser.</li>
<li>Search the artifacts in the repository.</li>
<li>Download code from version control and make changes in settings.xml to point to the internal repository and build without any manual intervention.</li>
<li>Install new version of the artifacts.</li>
<li>Import artifacts into the repository in bulk.</li>
<li>Export artifacts from the repository in bulk.</li>
<li>Setup the task to backup the repository automatically.</li>
</ul>
<p><b>Criteria for choosing a maven repository implementation: </b>In ideal condition a maven repository implementation should be:</p>
<ul type="disc">
<li>Free and open source</li>
<li>Provide admin tools</li>
<li>Easy to setup and use</li>
<li>Provide backup facility</li>
<li>Able to create, edit and delete sub repositories.</li>
<li>Anonymous read only access and also access control facility.</li>
<li>Deployable in any standard web server such as Tomcat or Apache.</li>
<li>Issue tracker, forums and other independent source of information.</li>
<li>Active community developers make the product enhanced and bugs fixed.</li>
<li>Bulk import/export facility to move groups of artifacts into the repository and out of the repository.</li>
<li>Provide a repository browser<b>:</b> should be a web browser instead of the desktop application.</li>
</ul>
<h2>Shifting from Apache Ant to Maven</h2>
<p>Maven is entirely a different creature from Ant. Ant is simply a toolbox whereas Maven is about the application of patterns in order to achieve an infrastructure which displays the characteristics of visibility, reusability, maintainability, and comprehensibility. It is wrong to consider Maven as a build tool and just a replacement for Ant.<br />
<b>Ant Vs Maven</b><br />
There is nothing that Maven does that Ant cannot do. Ant gives the ultimate power and flexibility in build and deployment to the developer. But Maven adds a layer of abstraction above Ant (and uses Jelly). Maven can be used to build any Java application. Today JEE build and deployment has become much standardized. Every enterprise has some variations, but in general it is all the same: deploying EARs, WARs, and EJB-JARs. Maven captures this intelligence and lets you achieve the build and deployment in about 5-6 lines of Maven script compared to dozens of lines in an Ant build script.<br />
Ant lets you do any variations you want, but requires a lot of scripting. Maven on the other hand mandates certain directories and file names, but it provides plugins to make life easier. The restriction imposed by Maven is that only one artifact is generated per project (A project in Maven terminology is a folder with a project.xml file in it). A Maven project can have sub projects. Each sub project can build its own artifact. The topmost project can aggregate the artifacts into a larger one. This is synonymous to jars and wars put together to form an EAR. Maven also provides inheritance in projects.<br />
<b>Maven : Stealing the show</b><br />
Maven simplifies build enormously by imposing certain fixed file names and acceptable restrictions like one artifact per project. Artifacts are treated as files on your computer by the build script. Maven hides the fact that everything is a file and forces you to think and script to create a deployable artifact such as an EAR. Artifact has a dependency on a particular version of a third party library residing in a shared remote (or local) enterprise repository, and then publish your library into the repository as well for others to use. Hence there are no more classpath issues. No more mismatch in libraries. It also gives the power to embed even the Ant scripts within Maven scripts if absolutely essential.</p>
<h2>Maven 2.0: Features</h2>
<p>Maven is a high-level, intelligent project management, build and deployment tool provided by Apache&#8217;s software foundation group. Maven deals with application development lifecycle management. Maven was originally developed to manage and to minimize the complexities of building the Jakarta Turbine project. But its powerful capabilities have made it a core entity of the Apache Software Foundation projects. Actually, for a long time there was a need to standardized project development lifecycle management system and Maven has emerged as a perfect option that meets the needs. Maven has become the de- facto build system in many open source initiatives and it is rapidly being adopted by many software development organizations.<br />
Maven was borne of the very practical desire to make several projects at Apache work in a consistence manner. So that developers could freely move between these projects, knowing clearly how they all worked by understanding how one of them worked.</p>
<p>If a developer spent time understanding how one project built it was intended that they would not have to go through this process again when they moved on to the next project. The same idea extends to testing, generating documentation, generating metrics and reports, testing and deploying. All projects share enough of the same characteristics, an understanding of which Maven tries to harness in its general approach to project management.<br />
On a very high level all projects need to be built, tested, packaged, documented and deployed. There occurs infinite variation in each of the above mentioned steps, but these variation still occur within the confines of a well defined path and it is this path that Maven attempts to present to everyone in a clear way. The easiest way to make a path clear is to provide people with a set of patterns that can be shared by anyone involved in a project.</p>
<p>The key benefit of this approach is that developers can follow one consistent build lifecycle management process without having to reinvent such processes again. Ultimately this makes developers more productive, agile, disciplined, and focused on the work at hand rather than spending time and effort doing grunt work understanding, developing, and configuring yet another non-standard build system.<br />
<b>Maven: Features </b></p>
<ol start="1" type="1">
<li><b>Portable: </b>Maven is portable in nature because it includes:
<ul type="circle">
<li>Building configuration using maven are portable to another machine, developer and architecture without any effort</li>
<li><b>Non trivial: </b>Maven is non trivial because all file references need to be relative, environment must be completely controlled and independent from any specific file system.</li>
</ul>
</li>
<li><b>Technology: </b>Maven is a simple core concept that is activated through IoC container (Plexus). Everything is done in maven through plugins and every plugin works in isolation (ClassLoader). Plugings are downloaded from a plugin-repository on demand.</li>
</ol>
<p><b>Maven&#8217;s Objectives:<br />
</b>The primary goal of maven is to allow the developers to comprehend the complete state of a project in the shortest time by using easy build process, uniform building system, quality project management information (such as change Log, cross-reference, mailing lists, dependencies, unit test reports, test coverage reports and many more), guidelines for best practices and transparent migration to new features. To achieve to this goal Maven attempts to deal with several areas like:</p>
<ul type="disc">
<li>It makes the build process easy</li>
<li>Provides a uniform building system</li>
<li>Provides quality related project information</li>
<li>Provides guidelines related to development to meet the best goal.</li>
<li>Allows transparent migration to new features.</li>
</ul>
<h2>Introduction to Maven 2.0</h2>
<p>Maven2 is an Open Source build tool that made the revolution in the area of building projects. Like the build systems as &#8220;<b>make&#8221;</b> and &#8220;<b>ant&#8221;</b> it is not a language to combine the build components but it is a build lifecycle framework. A development team does not require much time to automate the project&#8217;s build infrastructure since maven uses a standard directory layout and a default build lifecycle. Different development teams, under a common roof can set-up the way to work as standards in a very short time. This results in the automated build infrastructure in more stable state. On the other hand, since most of the setups are simple and reusable immediately in all the projects using maven therefore many important reports, checks, build and test animation are added to all the projects. Which was not possible without maven because of the heavy cost of every project setup.</p>
<p>Maven 2.0 was first released on 19 October 2005 and it is not backward compatible with the plugins and the projects of maven1. In December 2005, a lot of plugins were added to maven but not all plugins that exists for maven1 are ported yet. Maven 2 is expected to stabilize quickly with most of the Open Source technologies. People are introduced to use maven as the core build system for Java development in one project and a multi-project environment. After a little knowledge about the maven, developers are able to setup a new project with maven and also become aware of the default maven project structure. Developers are easily enabled to configure maven and its plugins for a project. Developers enable common settings for maven and its plugins over multiple projects, how to generate, distribute and deploy products and reports with maven so that they can use repositories to set up a company repository. Developers can also know about the most important plugins about how to install, configure and use them, just to look for other plugins to evaluate them so that they can be integrated in their work environment.</p>
<p>Maven is the standard way to build projects and it also provides various other characters like clearing the definition of the project, ways to share jars across projects. It also provides the easy way to publish project information (OOS).<br />
Originally maven was designed to simplify the building processes in the Jakarta Turbine project. Several projects were there containing their own slightly different Ant build files and JARs were checked into CVS. An apache group&#8217;s tool that can build the projects, publish project information, defines what the project consists of and that can share JARs across several projects. The result of all these requirement was the maven tool that builds and manages the java-based-project.</p>
<p><b>Why maven is a great build tool? how does it differ from other Build tools? </b><b> </b><br />
<b>Tell me more about Profiles and Nodes in Maven? </b><br />
<b>Tell me more about local repositories? </b><br />
<b>How did you configured local repositories in different environment (Development, Testing , Production etc)? </b><br />
<b>What is Transcend Dependencies in maven 2? </b><br />
<b>Did you write plugins in maven? if so what are they? </b><br />
<b>Why a matrix report is required during a new release?  How does this benefit QA Team? </b><br />
<b>What are pre-scripts and post-scripts in maven? Illustrate with an example? </b><br />
<b>What are the checklists for artifacts ? and what are the checklists for source code artifact? </b><br />
<b>Tell me the experience about Static Analysis Code? </b></p>
<p><b>Reference: </b><br />
<a href="http://www.javabeat.net/">http://www.javabeat.net</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/maven-interview-questions-and-answers/">Maven Interview Questions and Answers &#8211; Maven 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/maven-interview-questions-and-answers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
