All fields

“Numbers” in Information Technology

24 questions across 6 technologies.

Information Technology

24 questions in 6 technologies

#QuestionTechnologyTopicLevel
1How do you correctly compare two floating-point numbers for 'close enough' equality? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntAdvanced
2Why can't you use WeakMap for caching results keyed by primitive values like strings or numbers? JavaScript › Map, Set, WeakMap & WeakSetJavaScriptMap, Set, WeakMap & WeakSetAdvanced
3How do you convert between std::string and numbers? C++ › Strings & string_viewC++Strings & string_viewBeginner
4How do you format numbers and currency for a locale using Intl.NumberFormat? JavaScript › Date, Time & Internationalization (Intl API)JavaScriptDate, Time & Internationalization (Intl API)Intermediate
5How would you build a dynamic form with a variable number of fields, such as a list of phone numbers, using reactive forms? Angular › FormsAngularFormsIntermediate
6How do you format dates, numbers, and currency correctly for different locales in an Angular app? Angular › Internationalization (i18n) in AngularAngularInternationalization (i18n) in AngularIntermediate
7How do you properly format dates, numbers, and currency values correctly according to a given user's own specific current locale, using the intl package? Flutter › Internationalization & Localization (i18n)FlutterInternationalization & Localization (i18n)Intermediate
8How does memory efficiency compare between Redis and Memcached for storing large numbers of small key value pairs? Redis › Redis vs MemcachedRedisRedis vs MemcachedAdvanced
9How do PHP's integer and float types handle precision limitations, and what issues can arise when performing arithmetic with floating point numbers? PHP › Basics & TypesPHPBasics & TypesAdvanced
10How do PHP's string comparison functions and operators handle edge cases involving numeric looking strings, and why is strict, type aware comparison important when working with strings that could be misinterpreted as numbers? PHP › Strings & String FunctionsPHPStrings & String FunctionsAdvanced
11Why does 0.1 + 0.2 not equal 0.3 exactly in JavaScript? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntBeginner
12What does Number.isInteger() check, and how is it different from typeof? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntBeginner
13What are some commonly used Math object methods? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntBeginner
14What is Number.MAX_SAFE_INTEGER and what breaks beyond it? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntIntermediate
15What is BigInt and how do you create one? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntIntermediate
16Why does 9007199254740993n + 1 throw a TypeError, but 9007199254740993n + 1n does not? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntIntermediate
17Why is Number.parseFloat('123abc') valid but Number('123abc') returns NaN? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntAdvanced
18Why is BigInt generally the wrong tool for representing monetary amounts with decimals, like $19.99? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntAdvanced
19How do bitwise operators like >>>, &, and | behave differently on BigInt versus Number? JavaScript › Numbers, Math & BigIntJavaScriptNumbers, Math & BigIntAdvanced
20Name a few common TypedArray types and their byte sizes. JavaScript › ArrayBuffer, TypedArrays & Binary DataJavaScriptArrayBuffer, TypedArrays & Binary DataBeginner
21How do you create a Date object representing the current moment? JavaScript › Date, Time & Internationalization (Intl API)JavaScriptDate, Time & Internationalization (Intl API)Beginner
22How do you calculate the difference between two dates in days? JavaScript › Date, Time & Internationalization (Intl API)JavaScriptDate, Time & Internationalization (Intl API)Intermediate
23How does BigInt64Array differ from a standard numeric TypedArray? JavaScript › ArrayBuffer, TypedArrays & Binary DataJavaScriptArrayBuffer, TypedArrays & Binary DataAdvanced
24How do you get a relative time string like '3 days ago' using built-in APIs? JavaScript › Date, Time & Internationalization (Intl API)JavaScriptDate, Time & Internationalization (Intl API)Advanced