Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
VB.NET
Perl
COBOL
Pascal
FORTRAN
BASIC
Ada
C++
Scala
ASP.NET
 C
 :) Hot Jobs
 
 :) Latest Articles


  

 
Helmet Star


Consider the following code snippet in Scala
Question Posted on 05 Nov 2022

Home >> Programming Languages >> Scala Constructs >> Consider the following code snippet in Scala




Consider the following code snippet in Scala
def prnt = {print("scala"); 1}
def fun(a:Int,b: => Int) = print(a)
What will be the output for function call fun(prnt,5)?
Choose the correct options from below list
(1)5
(2)scala1
(3)scala5
(4)5scala1
(5)scala15

Answer:-(2)scala1
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Scala can be run only on JVM.
Which of the following build tools can be used to build Scala projects?
Object keyword is used to define a singleton class in Scala.
AnyVal is the best primitive data type.
Is this a valid expression?






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |