Quizzes
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
call-by-name
:
Content language: English
Русский
Select correct statement regarding evaluation of functions parameters
call-by-name
What is the correct syntax for using call-by-name evaluation strategy?
call-by-name
What is default evaluation strategy in Scala?
call-by-name
Given the following definition def loop: Boolean = loop which options will result in an infinite loop?
call-by-name
Given the following code: object Quizful { def main(args: Array[String]) { println(s"Delayed time: ${delayed(time())}") } def time() = { println("Getting time in nano seconds") System.nanoTime } def delayed( t: => Long ) = { println("In delayed method") println("Param: " + t) t } } What will be printed into the console after running this programm?
call-by-name
Select all correct implementations of the or(x,y) function that for all argument expressions x and y , it evaluates same as x || y boolean expression.
call-by-name
Select all correct implementations of the and(x,y) function that for all argument expressions x and y , it evaluates same as x && y boolean expression.
call-by-name
← Prev
1
Next →
Sign Up Now
or
Subscribe for future quizzes