其他相关测试
$(function() {
$('#quiz').quiz({
//resultsScreen: '#results-screen',
//counter: false,
//homeButton: '#custom-home',
counterFormat: '第 %current 题,共 %total 题',
resultsFormat: '回答正确 %score 题,总共 %total 题!',
nextButtonText: '下一题',
finishButtonText: '完成',
restartButtonText: '重新测验',
questions: [
{
'q': 'Git 是什么?',
'options': [
'Git 是 SVN',
'Git 是 Github 的简写',
'是编程语言',
'分布式版本控制系统'
],
'correctIndex': 3,
'correctResponse': '回答正确。',
'incorrectResponse': '回答错误,Git 是一个分布式版本控制系统。'
},
{
'q': '将仓库从 GitHub 下载到本地的 git 命令是什么?',
'options': [
'git push',
'git fork',
'git clone',
'git commit'
],
'correctIndex': 2,
'correctResponse': '回答正确。',
'incorrectResponse': '回答错误,正确答案为 git clone。'
},
{
'q': '如何将本地仓库上传到远程仓库?',
'options': [
'git push',
'git add',
'git upload',
'git status'
],
'correctIndex': 0,
'correctResponse': '回答正确。',
'incorrectResponse': 'git push 可以将本地仓库上传到远程仓库。'
},
{
'q': '提交修改先使用以下哪个命令?',
'options': [
'git add',
'git commit'
],
'correctIndex': 0,
'correctResponse': '回答正确。',
'incorrectResponse': 'commit 之前需要使用 git add 命令将该文件添加到暂存区。'
},
{
'q': '以下哪个命令是正确的提交所有更改的注释?',
'options': [
'git message -am "I\'m coding"',
'git add -a "I\'m coding"',
'git commit -a "I\'m coding"',
'git commit -am "I\'m coding"'
],
'correctIndex': 3,
'correctResponse': '回答正确。',
'incorrectResponse': '回答错误,正确答案为 git commit -am "I\'m coding"'
},
{
'q': '以下哪个命令是正确的提交注释?',
'options': [
'git message "I like muban99"',
'git add "I like muban99"',
'git commit "I like muban99"',
'git commit -m "I like muban99"'
],
'correctIndex': 3,
'correctResponse': '回答正确。',
'incorrectResponse': '回答错误,正确答案为 git commit -m "I like muban99"。'
},
{
'q': '以下哪个命令是将所有修改提交到暂存区?',
'options': [
'git commit add .',
'git commit .',
'git add .',
'git push -am "Message"'
],
'correctIndex': 2,
'correctResponse': '回答正确。',
'incorrectResponse': '回答错误,正确答案为 git add .'
},
{
'q': '以下哪个命令用于查看在你上次提交之后是否有对文件进行再次修改?',
'options': [
'git check',
'git status',
'git commit',
'git diff'
],
'correctIndex': 1,
'correctResponse': '回答正确。',
'incorrectResponse': '回答错误,正确答案为 git status。'
},
{
'q': '以下哪个命令用于提交到暂存区?',
'options': [
'git stage',
'git commit',
'git add',
'git reset'
],
'correctIndex': 2,
'correctResponse': '回答正确。',
'incorrectResponse': '回答错误,正确为 git add。'
},
]
});
})