in Education by
What will be the radix value of the parseInt() method when the string begins with 0? (a) 6 (b) 7 (c) 8 (d) 9 The question was asked during an internship interview. My query is from Parsing Values using JavaScript in portion Parsing, Benchmarking and Logging of JavaScript Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Right answer is (c) 8 To explain: If the string begins with 0x, then the radix value will be 16. If the string begins with “0”, the radix is 8 (octal). This feature is deprecated.

Related questions

0 votes
    What will be the radix value if the string begins with 0x? (a) 13 (b) 14 (c) 15 (d) ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the radix parameter in the parseInt() method? (a) Numeral system not to be ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the function of the parseInt() method? (a) Parses a data type and stores in an integer ( ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the return type of the method parseInt()? (a) String (b) Float (c) Integer (d) Date ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    A hexadecimal literal begins with __________ (a) 00 (b) 0x (c) 0X (d) Both 0x and 0X The ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    The function definitions in JavaScript begins with _____________ (a) Identifier and Parentheses (b) Return type and ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What will happen if we call setTimeout() with a time of 0 ms? (a) Placed in stack (b) Placed ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What kind of an exception will be thrown if the string to parse is not valid JSON? (a) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
0 votes
0 votes
    What will be the step of the interpreter in a jump statement when an exception is thrown? (a) The ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
...