Тесты
Язык сайта: Русский
Українська
English
Русский
Тесты по программированию
Вход
Регистрация
Тесты по программированию
Теория
сниппеты
Статьи
Главная
Android
Цены
FAQ
История Cosmo
Правила и условия сервиса
Политика конфиденциальности
Политика в отношении файлов cookie
Обратная Связь
list
:
Язык контента: English
Русский
Which of these elements will create a list? Select all that correct.
list
Consider following code snippet: <ul> <li> element 1</li> <li> element 2</li> <li> element 3</li> </ul> Select all correct statements on code above
list
What is the correct HTML for inserting a drop-down list?
list
How can you create a drop-down list that allows multiple selections?
list
Which attribute of <ol> tag specifies the start value of the first list item in an ordered list?
list
What will typing the following to Python interpreter produce? lang = list('Python') ; lang[:-4]
list
Given a list called my_list, what would the following slice notation give you: my_list[-1:-5:-1]
list
What is the value of len(d) ? d = set( [ 0, 0, 1, 2, 2, 3, 4] )
list
Examine the next Scala match expression. What will be the result of pattern matching of the list? val x = List(1, 2, 3, 4, 5) match { case Cons(x, Cons(2, Cons(4, _))) => x case Nil => 42 case Cons(x, Cons(y, Cons(3, Cons(4, _)))) => x + y case Cons(h, t) => h + sum(t) case _ => 101 } Assuming the following code is available for your reference sealed trait List[+A] case object Nil extends List[Nothing] case class Cons[+A](head: A, tail: List[A]) extends List[A]
list
Take a look at the implementation of the following function, select the correct result: def someFunction[A](list: List[A]): List[A] = list match { case Nil => sys.error("empty list") case Cons(_, t) => t } someFunction(List(1, 2, 3)) Assuming the following code is available for your reference sealed trait List[+A] case object Nil extends List[Nothing] case class Cons[+A](head: A, tail: List[A]) extends List[A]
list
← Предыдущая
1
2
3
4
Следующая →
Зарегистрируйся сейчас
или
Подпишись на будущие тесты