其他相关测试
$(function() {
$('#quiz').quiz({
//resultsScreen: '#results-screen',
//counter: false,
//homeButton: '#custom-home',
counterFormat: '第 %current 题,共 %total 题',
resultsFormat: '回答正确 %score 题,总共 %total 题!',
nextButtonText: '下一题',
finishButtonText: '完成',
restartButtonText: '重新测验',
questions: [
{
'q': '关于 C# 下列哪项是正确的?',
'options': [
'它可以在各种计算机平台上编译。',
'它是 .Net 框架的一部分。',
'它是面向对象的高级编程语言。',
'以上都是'
],
'correctIndex': 3,
'correctResponse': '回答正确。',
'incorrectResponse': '回答错误,C#是微软推出的一种基于.NET框架的、面向对象的高级编程语言,可以跨平台。'
},
{
'q': 'C# .net 中 Long 数据类型存储是多少字节?',
'options': [
'1',
'2',
'4',
'8'
],
'correctIndex': 3,
'correctResponse': '回答正确。',
'incorrectResponse': 'Long 数据类型为 8 字节。'
},
{
'q': '下列哪一项是 C# 正确声明变量 a 和 b 的值?',
'options': [
'int a = b = 42;',
'int a = 32; int b = 40;',
'int a = 42; b = 40;',
'int a = 32, b = 40.6;'
],
'correctIndex': 1,
'correctResponse': '回答正确。',
'incorrectResponse': '正确为:int a = 32; int b = 40;'
},
{
'q': '数据类型 sbyte、short、long、int 的大小顺序是?',
'options': [
'short < int < sbyte < long',
'short < sbyte < int < long',
'sbyte < short < int < long',
'long < short < int < sbyte'
],
'correctIndex': 2,
'correctResponse': '回答正确。',
'incorrectResponse': '回答错误。'
},
{
'q': '哪种数据类型适合存储 35 这样整型数字?',
'options': [
'long',
'int',
'short',
'sbyte'
],
'correctIndex': 3,
'correctResponse': '回答正确。',
'incorrectResponse': '回答错误。'
},
{
'q': 'int a=12, float b=3.5,int c,以下赋值运算正确的是?',
'options': [
'c = int(a + b);',
'c = a + convert.ToInt32(b);',
'c = a + int(float(b));',
'c = a + b;'
],
'correctIndex': 1,
'correctResponse': '回答正确。',
'incorrectResponse': '回答错误。'
},
{
'q': '整数的默认类型为?',
'options': [
'Long Int',
'Unsigned Long',
'Int',
'Unsigned Int'
],
'correctIndex': 2,
'correctResponse': '回答正确。',
'incorrectResponse': '回答错误。'
},
{
'q': '浮点数据类型 float 的大小是?',
'options': [
'8 字节',
'4 字节',
'6 字节',
'10 字节'
],
'correctIndex': 1,
'correctResponse': '回答正确。',
'incorrectResponse': '回答错误。'
},
{
'q': '布尔类型的默认值为?',
'options': [
'0',
'1',
'False',
'True'
],
'correctIndex': 2,
'correctResponse': '回答正确。',
'incorrectResponse': '回答错误。'
},
{
'q': 'Char 数据类型的大小是多少?',
'options': [
'20 位(bit)',
'16 位(bit)',
'12 位(bit)',
'8 位(bit)'
],
'correctIndex': 1,
'correctResponse': '回答正确。',
'incorrectResponse': '回答错误。'
},
]
});
})