TypeScript 测验


其他相关测试

$(function() { $('#quiz').quiz({ //resultsScreen: '#results-screen', //counter: false, //homeButton: '#custom-home', counterFormat: '第 %current 题,共 %total 题', resultsFormat: '回答正确 %score 题,总共 %total 题!', nextButtonText: '下一题', finishButtonText: '完成', restartButtonText: '重新测验', questions: [ { 'q': 'TypeScript 是什么?', 'options': [ 'TypeScript 是 JavaScript 的另外一个称呼', 'TypeScript 是 js 框架', 'TypeScript 是 JavaScript 的一个超集', '以上都是' ], 'correctIndex': 2, 'correctResponse': '回答正确。', 'incorrectResponse': '回答错误,TypeScript 是 JavaScript 的一个超集,支持 ECMAScript 6 标准(ES6 教程)。' }, { 'q': 'TypeScript 语言第一个版本是哪一年发行的?', 'options': [ '2012年10月1日', '2008年10月1日', '2006年10月1日', '2004年10月1日' ], 'correctIndex': 0, 'correctResponse': '回答正确。', 'incorrectResponse': '回答错误,TypeScript于2012年10月首次发布0.8版本。' }, { 'q': 'TypeScript 语言的文件名后缀是?', 'options': [ '.t', '.ts', '.tt', '.js' ], 'correctIndex': 1, 'correctResponse': '回答正确。', 'incorrectResponse': 'TypeScript 语言的文件名后缀是 .ts。' }, { 'q': 'TypeScript 是哪个公司开发的?', 'options': [ '苹果', 'Sun', '微软', '甲骨文' ], 'correctIndex': 2, 'correctResponse': '回答正确。', 'incorrectResponse': '回答错误,TypeScript是一种开源的编程语言,该语言项目由微软进行维护和管理。' }, { 'q': 'TypeScript 可转译成 JavaScript?', 'options': [ '正确', '错误' ], 'correctIndex': 0, 'correctResponse': '回答正确。', 'incorrectResponse': '回答错误。' }, { 'q': 'TypeScript 支持 ECMAScript 6 标准?', 'options': [ '正确', '错误' ], 'correctIndex': 0, 'correctResponse': '回答正确。', 'incorrectResponse': '回答错误,TypeScript 添加了ECMAScript 2015标准中定义的类、模块和箭头函数等语法的支持。' }, { 'q': 'TypeScript 输出 "Hello, world!" 正确的是?', 'options': [ 'cout << "Hello, world!" << endl;', 'console.print << "Hello, world!"', 'print "Hello, world!"', 'console.log("Hello, world!")' ], 'correctIndex': 3, 'correctResponse': '回答正确。', 'incorrectResponse': '回答错误。' }, { 'q': 'TypeScript 支持面向对象?', 'options': [ '正确', '错误' ], 'correctIndex': 0, 'correctResponse': '回答正确。', 'incorrectResponse': '回答错误。' }, ] }); })