刷刷题-logo
logo - 刷刷题
大学职业技能学习工具
下载APP
【判断题】
分波作业方式,就是飞行周期是连续的。一个飞行周期未完,另一个飞行周期又插进来,出动飞机的飞行周期首尾交错重叠。
A.
正确
B.
错误
参考答案:
参考解析:
.
刷刷题刷刷变学霸
举一反三
假定函数mymax x y 总是返回x和y中较大者:mymax :: Int -> Int -> Int mymax x y = ...下面哪个性质表达了mymax的正确性,也就是说,如果mymax的定义正确,则这个性质一定成立,反过来,如果这个性质总是真的,那么mymax的定义是正确的。
A.
prop_mymax x y = (mymax x y >= x && mymax x y >= y) && (mymax x y == x || mymax x y == y)
B.
prop_mymax x y = (mymax x y >= x && mymax x y >= y) || (mymax x y == x && mymax x y == y)
C.
prop_mymax x y = mymax x y == y
D.
prop_mymax x y = mymax x y == x || mymax x y == y
下面哪个定义正确地表达了分数相加可交换的性质?
A.
prop_ratplus a b c d = ratplus (a,b) (c,d) = ratplus (c,b) (a,d)
B.
prop_ratplus a b c d = rateq (ratplus (a,b) (c,d)) (ratplus (c,d) (a,b))
C.
prop_ratplus a b c d = ratplus (a,b) (c,d) == ratplus (c,d) (a,b)
D.
prop_ratplus a b c d = ratplus (a,b) (c,d) == ratplus (c,b) (a,d)
计算 [(x, y) | x <- [1, 2], y <- [1, 2]] 的结果是
A.
[(1,1),(2,1),(1,2),(2,2)]
B.
([1,2],[1,2])
C.
[(1,1),(2,2)]
D.
[(1,1),(1,2),(2,1),(2,2)]
计算 [x | x <- [1, 2, 3], y <- [1..x]] 的结果是
A.
[1,2,3]
B.
[1,1,2,1,2,3]
C.
[1,1,1,2,2,3]
D.
[1,2,2,3,3,3]
下面哪个定义表达了分数化简函数normalize的性质?
A.
prop_normalize a b = normalize (a,b) - (a,b) == 0
B.
prop_normalize a b = rateq (normalize (a,b)) (a,b)
C.
prop_normalize a b = normalize (a,b) = (a,b)
D.
prop_normalize a b = normalize (a,b) == (a,b)
下面哪些是将分数化为浮点数的正确定义?
A.
type Fraction = (Integer, Integer) rateq :: Fraction -> Float rateq (a,b) = (fromIntegral a)/ (fromIntegral b)
B.
type Fraction = (Integer, Integer) rateq :: Fraction -> Float rateq (a,b) = (fromInteger a)/ (fromInteger b)
C.
type Fraction = (Integer, Integer) rateq :: Fraction -> Float rateq (a,b) = a/b
D.
type Fraction = (Integer, Integer) rateq :: Fraction -> Float rateq (a,b) = fromIntegral (a/b)
计算 [x | x <- zip [1..3] [2..4]]的结果是
A.
[(2,1),(3,2),(4,3)]
B.
[1,2,3,4]
C.
[(1,2),(1,3),(1,4)]
D.
[(1,2),(2,3),(3,4)]
下面哪个定义是语法和类型正确的?
A.
f :: [Int] -> Int f [] = 0 f (x:xs) = f xs
B.
f :: [Int] -> Int f [] = 0 f x:xs = f xs
C.
f :: [Int] -> Int f [] = 0 f x:xs = x
D.
f :: [Int] -> Int f [] = 0 f x:xs = x + f xs
计算 [fst x | x <- zip [1..3] [2..4]] 的结果是
A.
[2,3,4]
B.
[(2,1),(3,2),(4,3)]
C.
[(1,2),(2,3),(3,4)]
D.
[1,2,3]
下面哪些表达式表示列表 [1,2,3] ?
A.
1:2:3
B.
1:[2,3]
C.
1: 2 : [3]
D.
1 : 2 : 3 : []
求1之n之间的偶数的方法是
A.
[x | x <- [1..n], mod x 2 ==0]
B.
[2*x | x <- [1.. div n 2]]
C.
[2*x | x <- [1..n]]
D.
[2*x | x <- [1..n/2]]
下面哪个是函数 divisors :: Int -> [Int]的正确定义,divisors n 返回n的所有因子构成的列表。例如,divisors 15 = [1,3,5,15]。
A.
divisors x = [d | d <- [1..x], d `mod` x = 0]
B.
divisors x = [d | d <- [1..x], mod x d == 0]
C.
divisors x = [d | d <- [1..x], x mod d == 0]
D.
divisors x = [d | d <- [1..x], mod x d = 0]
对于给定n = 5, 表达式 [(x,y,z) | x<- [1..n], y<- [x+1..n], z<- [y+1..n]]的计算结果是
A.
[(1,2,3),(2,3,4),(3,4,5)]
B.
[(1,2,3),(1,2,4),(1,3,4),(2,3,4)]
C.
[(1,2,3),(1,2,4),(1,2,5),(1,2,6),(1,3,4),(1,3,5),(1,3,6),(1,4,5),(1,4,6),(1,5,6),(2,3,4),(2,3,5),(2,3,6),(2,4,5),(2,4,6),(2,5,6),(3,4,5),(3,4,6),(3,5,6),(4,5,6)]
D.
[(1,2,3),(1,2,4),(1,2,5),(1,3,4),(1,3,5),(1,4,5),(2,3,4),(2,3,5),(2,4,5),(3,4,5)]
构造列表[(0,n),(1,n-1), ..., (n-1,1), (n,0)]的方法是
A.
[(x, y) | x<- [0..n],y == x-1]
B.
[(x,n-x) | x <- [0..n]]
C.
zip [0..n] [n..0]
D.
[(x, n-x) | x<- [0..n],y <- [n..0]]
如果medal是各国奖牌榜,如medal = [("China", 34, 24,16), ("United States", 29,35,27),("Japan", 22,10,14),("ROC", 16,22,20), ("Germany",9,9,16),("Australia",17,5,19),("France", 7,11,9),("Hong Kong", 1,2,2)]下面哪个表达...
A.
[g | (n,g,s,b) <- medal, name == "China"]
B.
head [g | (n,g,s,b) <- medal, n == "China"]
C.
[g | (n,g,s,b) <- medal, n = China]
D.
[g | (n,g,s,b) <- medal, n == "China"]
如果medal是各国奖牌榜,如medal = [("China", 34, 24,16), ("United States", 29,35,27),("Japan", 22,10,14),("ROC", 16,22,20), ("Germany",9,9,16),("Australia",17,5,19),("France", 7,11,9),("Hong Kong", 1,2,2)]下面哪个表达...
A.
[g + s + b| (n,g,s,b) <- medal, n == "China"]
B.
head [g + s + b| (n,g,s,b) <- medal, n == "China"]
C.
[g + s + b| (n,g,s,b) <- medal, name == "China"]
D.
head [(g,s,b)| (n,g,s,b) <- medal, n == "China"]
对于任意非负整数n, 构造列表[(1,2), (2,3), ..., (n,n-1)]的方法是
A.
zip [1..n-1] [2..n]
B.
[(x,x+1) | x <- [1..n-1]]
C.
[(x,x+1) | x <- [1..n-1]]
D.
[(x,y) | x <- [1..n-1], y == x+1]
对于给定非负整数,计算 的方法是
A.
sum [ x*y | (x,y) <- zip [1..n] [1..n]]
B.
sum [y | y<- [1..n], y = x^2]
C.
sum [ x*x | (x,x) <- zip [1..n] [1..n]]
D.
sum [x^2 | x <- [1..n]]
构造介于1至10的毕达哥拉斯三元组(见讲义习题3.6)的方法是
A.
[(x,y,z) | x <- [1..10], y <- [1..10], z = x^2 + y^2]
B.
[ (a,b,c) | (a,b,c) <- [(x,y,z) | x <- [1..10], y <- [1..10], z <- [1..n]], a^2 +b^2 == c^2]
C.
[(x,y,z) | x <- [1..10], y <- [1..10], z == x^2 + y^2]
D.
[(x,y,z) | x <- [1..10], y <- [1..10], z <- [1..n], x^2 + y^2 == z^2]
对于某顾客的购物清单,如customer1 = [("Apple", 2.5, 5.99), ("Bread", 2, 3.5)]其中第二个分量和第三个分量分别表示单价和单位,那么计算总价的表达式是
A.
sum [ x*y | (n, x, y) <- customer1]
B.
sum [(snd x) *(thd y | x <- customer1]
C.
sum [x * y | x <- customer1, y <- customer1]
D.
sum [ snd (n, x*y) | (n, x, y) <- customer1]
从某地区随机抽取34名体育考生,测得四个项目的成绩资料,利用SPSS计算出相关系数矩阵如下 ,试选择正确答案。
A.
百米和立定跳远的相关系数为负值,所以不相关。
B.
百米和八百米相关显著,属于低度相关。
C.
立定跳远和百米的相关具有非常显著性意义,且中度相关。
D.
铅球和立定跳远的相关具有非常显著性意义,且中度相关。
在田径运动中,100米跑与立定跳远的关系是( )。
A.
完全正相关
B.
正相关
C.
负相关
D.
完全负相关
如果f :: Int -> Int -> Int f x y = 3*x + 1那么函数可以扩展为重载的函数:
A.
f :: Eq a => a -> a -> a f x y = 3*x + 1
B.
f :: Show a => a -> a -> a f x y = 3*x + 1
C.
f :: Ord a => a -> a -> a f x y = 3*x + 1
D.
f :: Num a => a -> a -> a f x y = 3*x + 1
下面哪些表达式是类型正确的?
A.
[True] ++ [0,1]
B.
2.36 * 100
C.
[100] ++ [2.3, 3.5]
D.
1 + 2.3
如果f :: Float -> Float -> Bool f x y = x*y <= 0那么该函数可以扩展为重载的函数
A.
f :: Num a => a -> a -> Bool f x y = x*y <= 0
B.
f :: Num a => a -> a -> a f x y = x*y <= 0
C.
f :: Ord a => a -> a -> Bool f x y = x*y <= 0
D.
f :: Ord a => a -> a -> a f x y = x*y <= 0
下面哪些类型是Ord的实例?
A.
Integer
B.
String
C.
Char
D.
Int -> Int
数值1具有哪些类型?
A.
Int
B.
Integer
C.
Bool
D.
Float
运算(+)具有哪些类型?
A.
Double -> Double -> Double
B.
Float -> Float -> Float
C.
Int -> Int -> Integer
D.
Int -> Int -> Int
函数foldr 可以具有哪些类型?
A.
(Bool -> Bool -> Int) -> Bool -> [Int] -> Int
B.
(Integer -> Integer-> Integer) -> Int -> [Int] -> Int
C.
(Int -> Int -> Int) -> Int -> [Int] -> Integer
D.
(Char -> Int -> Int) -> Int -> String -> Int
新旧两种跳高训练方法对比,提出的假设为( )
A.
H0: 新= 旧H1:
B.
H0: 新> 旧H1:
C.
H0: 旧H1: 新=
D.
H0: 旧H1: 新>
f x = 3*x+1在Haskell中与f 等价的lambda表达式是
A.
\x -> 3x+1
B.
\x -> 3*x+1
C.
lambda x : (3*x+1)
D.
\x : 3*x+1
map可以具有哪些类型?
A.
(Int -> Bool) -> [Int] -> Bool
B.
(Char -> Bool) -> String -> [Bool]
C.
(Int -> Bool) -> [Integer] -> [Bool]
D.
(Int -> Bool) -> [Int] -> [Bool]
函数filter可以具有哪些类型?
A.
(Int -> Bool) -> [Integer] -> [Integer]
B.
(Int -> Bool) -> [Int] -> [Integer]
C.
(Char -> Bool) -> String -> String
D.
(Int -> Bool) -> [Int] -> [Int]
下面哪个表达式是类型正确的?
A.
map isUpper "Hello"
B.
map isUpper ["a","b","c"]
C.
map isUpper ['1','2','3']
D.
map isUpper [1,2,3]
将[3,2,1,2]从大到小排序的表达式是
A.
sortBy (\x y -> if x<y then GT else LT) [3,2,1,2]
B.
sortBy (\x y -> if x<=y then LT else GT) [3,2,1,2]
C.
sortBy (\x y -> compare y x) [3,2,1,2]
D.
sortBy (\x y -> compare x y) [3,2,1,2]
表达式 f = \x y -> 3*x+1的类型是
A.
Ord a => a -> b -> a
B.
a -> b -> a
C.
Eq a => a -> b -> a
D.
Num a=> a -> b -> a
表达式 or [x, y, z]相当于 x || y || z它与下面哪个表达式等值?
A.
foldr (||) True [x,y,z]
B.
foldr (&&) True [x,y,z]
C.
foldr (||) False [x,y,z]
D.
foldr (&&) False [x,y,z]
表达式 \x -> 3*x+1的可能类型是
A.
Float -> Float
B.
Double -> Double
C.
Int -> Int
D.
Int -> Integer
假设f :: Char -> Int g :: Int -> Bool下面哪些表达式是类型正确的?
A.
map f "hello
B.
map (f .f) "hello"
C.
map g . f "hello"
D.
map g (map f "hello")
将 [(2,1),(1,2),(2,3),(3,2)]从大到小(先按第一个分量从大到小,第一个分量相同的,按照第二个分量从大到小)排序的表达式是
A.
sortBy (\x y -> compare y x) [(2,1),(1,2),(2,3),(3,2)]
B.
sortBy (\x y -> if fst x > fst y then LT else GT) [(2,1),(1,2),(2,3),(3,2)]
C.
sortBy (\x y -> if fst x > fst y then LT else if fst x == fst y && snd x > snd y then LT else GT ) [(2,1),(1,2),(2,3),(3,2)]
D.
sortBy (\x y -> compare x y) [(2,1),(1,2),(2,3),(3,2)]
下面哪些自定义类型不符合语法要求
A.
data TT = one | two | three
B.
data TT = One | Two | Three
C.
data tt = One | Two | Three
D.
type TT = One | Two | Three
Nothing可以具有类型
A.
Maybe Bool
B.
Bool
C.
Maybe Int
D.
Int
Just 0 可以具有类型
A.
Int
B.
Maybe Bool
C.
Maybe Float
D.
Maybe Int
第25、50、75百分位数被称为( )
A.
三分位数
B.
三等级数
C.
四分位数
D.
五等级数
data Nat = Zero | Succ Nat deriving Eq对于自然数类型Nat,如果用Zero表示0, Succ Zero 表示1, Succ (Succ Zero) 表示2等等,下面哪个定义表达了自然数加法?
A.
plus :: Nat -> Nat -> Nat plus Zero n = n plus (Succ m) n = Succ (plus m n)
B.
plus :: Nat -> Nat -> Nat plus x y = x + y
C.
plus :: Nat -> Nat -> Nat plus Zero n = n plus (Succ m) n = Succ (m + n)
D.
plus :: Nat -> Nat -> Nat plus 0 n = n plus m n = 1 + plus (m-1) n
表达式 Val (Add 1 2) 具有哪个类型?
A.
data Expr = Add Int Int | Val In
B.
data Expr = Add Int Int | Val Expr
C.
data Expr = Add Int Int | Val Expr | Mul Expr Expr
D.
data Expr = Add Expr Expr | Val In
下面哪个是合于语法的f (x) = 3x+1的定义,其中x是实数。(可以选择不同的函数名)
A.
f :: Float -> Float f X = 3*X+1
B.
f Float -> Float f (x) = 3x+1
C.
myf :: Float -> Float myf x = 3*x + 1
D.
F :: Float -> Float F (x) = 3x+1
下面哪个是计算BMI的合乎语法的程序(函数)?
A.
bmi :: Float -> Float -> Float bmi height mass = mass / height^2
B.
bmi :: Float -> Float -> Float bmi h m = m / h^2
C.
bmi :: Float -> Float -> Float bmi x y = y / x^2
D.
bmi :: float -> float -> float bmi h m = m / h^2
如果定义函数计算调和级数之和;series :: Int -> Float用series n表示 ,那么如何用series 表示 ?
A.
series (1+1/2+..+ 1/n-1)
B.
series 1 + series 2 + ... + series (n-1)
C.
series (n-1)
D.
series n-1
对于汉诺塔问题,假设盘子从上到下编号1,2,3,...,现在要把“s"柱子上的n个盘子移到"e"柱子,"m"柱子为辅助。如果用(a,b,c)表示将编号a的盘子从b柱子移到c柱子,那么下面哪个列表表示3个盘子的解决方法?
A.
[(1,"s","e"),(2,"s","m"),(1,"e","m"),(1,"m","s"),(2,"m","e"),(1,"s","e")]
B.
[(1,"s","e"),(2,"s","m"),(1,"e","m"),(3,"s","e"),(1,"m","s"),(2,"m","e"),(1,"s","e")]
C.
[(1,"s","e"),(2,"s","m"),(3,"s","e"),(1,"e","m"),(1,"m","s"),(2,"m","e"),(1,"s","e")]
D.
[(1,"s","e"),(1,"e","m"),(3,"s","e"),(1,"m","s"),(2,"m","e"),(1,"s","e")]
相关题目:
【单选题】Which of the following is NOT the reason why she does not like to take photos with the camera?
A.
It was easy to break
B.
It was too heavy
C.
it is easy to get stolen
D.
it is too expensive
【单选题】What “eat earth” means?
A.
Having to spend less after spending a lot during the shopping festival.
B.
Living a luxurious life after earning a lot of money.
C.
Having failed to live a modest life.
D.
Living a luxurious life.
【单选题】Popular novels can be adapted and made into ____; ____ and _____.
A.
films; television programs; video games
B.
cartoons; dramas; games
C.
websites; televisions; audio programs
D.
films; cartoons; games
【单选题】下面说法中错误的是
A.
FileReader类是Reader类的间接子类
B.
InputStreamReader类是Reader类的子类
C.
BufferedReader类可以读取一行
D.
BufferedReader的readLine()函数,如果没有数据时会返回0
【单选题】What's the 'overflow' for a B-tree?B树的上溢是指:
A.
The property of a B-tree is violated due to removing a key 删除关键码后违反了B树的性质
B.
The property of a B-tree is violated due to inserting a key 插入新的关键码后违反了B树的性质
C.
The property of a B-tree is violated due to a split 分裂后违反了B树的性质
D.
A B-tree becomes too high B树的高度过高
【单选题】设随机变量服从区间(0,2)上的均匀分布,则$Y=X^{2}$在(0,4)上的密度函数为()
A.
$\frac{1}{3\sqrt{y}}$
B.
$\frac{1}{\sqrt{y}}$
C.
$\frac{1}{2\sqrt{y}}$
D.
$\frac{1}{4\sqrt{y}}$
【单选题】Which consequence follows as a B-tree becomes higher?B树高度的增加一定伴随着:
A.
Each node has a larger number of keys 每个节点所存放的关键码数量增加
B.
Each node has a smaller number of keys 每个节点所存放的关键码数量减少
C.
Splitting to the root 分裂到根
D.
Splitting to the leaves 分裂到叶
【多选题】Gardening is ______.
A.
a great daily exercise
B.
a great way to keep your lawn beautiful
C.
a great way to keep you healthy
D.
landscape painting
【单选题】Choose the most appropriate answer by completing the sentences below or answering the questions.1. Why is Billy a bit disappointed about the film?
A.
The quality of the film is comparable with the novel itself.
B.
The movie is unbelievable, for the plot is not true to the novel.
C.
The stories producers and directors tell are unbelievable.
D.
While adapting the original novels into films, producer exaggerated too much.
【单选题】The differences between the original novel and their adapted film depend on _______, _______ and _______.
A.
writers; actors; audience
B.
writers; actors; producers
C.
directors; actors; audience
D.
directors; producers; audience
【单选题】The underflow of a B-tree happens whenB树的下溢发生于:
A.
the height of the tree decreases B树高度减少
B.
the property of the B-tree is violated due to inserting a key 插入关键码后违反了B树的性质
C.
the property of the B-tree is violated due to deleting a key 删除关键码后违反了B树的性质
D.
inserting a key to a leaf node 在叶节点插入关键码
【单选题】The height of a B-tree decreases only whenB树高度的减少只会发生于
A.
merging two children of the root 根节点的两个孩子合并
B.
removing the root 根节点被删除
C.
rotating the root 根节点发生旋转
D.
there are multiple keys in the root 根节点有多个关键码
【单选题】Why do Amanda and Zheyu feel very down today?
A.
They are worried about homework.
B.
They are worried about exams.
C.
They are worried about interviews.
【多选题】以下哪种说法是正确的——
A.
人生观是对人生目的、意义的根本看法
B.
世界观是人生观重要组成部分
C.
价值观是人生哲学的核心,是人与人之间对于人生价值的不同看法
D.
哲学只是关于世界观的学问
【单选题】What does “be apt to do something” mean?
A.
be more likely to do something
B.
be angry to something
C.
be happy to do something
D.
be taught to do something
【多选题】A node in a red-balck tree could be红黑树节点的颜色有
A.
red 红
B.
black 黑
C.
yellow 黄
D.
blue 蓝
E.
green 绿
F.
purple 紫
【多选题】被称为中国新四大发明的有哪些?
A.
网络购物
B.
支付宝
C.
高铁
D.
抖音
E.
拼多多
F.
共享单车
【单选题】What does “turn out” imply?
A.
The reason for doing something.
B.
Something happens in that way or has the result the consequence of something.
C.
The potential risk of doing something.
D.
The original plan of doing something.
【单选题】What's unique about red-black trees compared to AVL trees? 红黑树相比于AVL树的特点是:
A.
The balance factor of each node falls within [-1, 1] 每个节点的平衡因子的绝对值不超过1
B.
It is a balanced binary search tree 是平衡二叉搜索树
C.
The search time is O(lgn) 支持O(lgn)时间的查找
D.
The topology changes no more than O(1) after each insertion/deletion每次插入/删除后拓扑结构的变化不超过O(1)
【单选题】You may choose one or more than one correct answer(s).1. Why is the student coming for the teacher?
A.
He quarreled with his classmates.
B.
He was stressed about the college entrance examination.
C.
He missed several classes due to illness
D.
He was often stressed when he faced an academic problem.
【多选题】好的选题从哪里来?
A.
知己知彼:你对一个领域的了解程度会直接影响你的选题
B.
现实需求:真正来自现实生活的需求最有生命力(洞察力)
C.
长期思考:有的问题需要多年的思考
D.
宽广胸怀:一个人的出发点直接决定了选题可能的高度
E.
好的选题非一日之功
【单选题】下列集合中,有最大值的集合是 ( ).
A.
$ \{x|x\in (0,1),x\in Q\} $
B.
自然数集
C.
有限个数构成的集合$ \{a_1,a_2,\cdots,a_n\} $
D.
$ \{x\in R|x^2-2x-3 < 0\}$
【单选题】设集合$A=[-1,1], B=(0,2) $,则$A\backslash B =$ ( ).
A.
$[-1,0]$
B.
$[-1,0)$
C.
$(-\infty ,0]$
D.
$( - \infty ,0] \cup [2, + \infty ) $
【单选题】若$a,b\in R$, 则$\max\{a,b\}$和$\min\{a,b\}$分别是 ( ).
A.
$\frac{{a + b + |a - b|}}{2},\frac{{a + b - |a - b|}}{2} $
B.
$\frac{{a - b + |a - b|}}{2},\frac{{a + b - |a - b|}}{2} $
C.
$\frac{{a + b - |a - b|}}{2},\frac{{a - b + |a - b|}}{2}$
D.
$\frac{{a + b + |a - b|}}{2},\frac{{a - b + |a - b|}}{2} $
【单选题】What is a 'double red' in a red-black tree? 在红黑树中,何为双红缺陷:
A.
the root is red 根节点为红色
B.
both the root and the external nodes are red 根节点和外部节点都为红色
C.
both a parent and its child are red 相邻的两个父子节点都为红色
D.
there are two red nodes in the tree 树中有两个红色节点
打开"刷刷题APP",使用更方便
打开APP