MCQs > IT & Programming > Kotlin > Which line converts the binaryStr, whish contain only 0s and 1s, to an integer representing its decimal value? val binaryStr = "00001111"

Kotlin MCQs

Which line converts the binaryStr, whish contain only 0s and 1s, to an integer representing its decimal value? val binaryStr = "00001111"

Answer

Correct Answer: Val myInt = binaryStr.toInt(2)

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Kotlin Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Kotlin Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it