PowerShell - Variables and Data TypesWhat is the default data type of a number like 3.14 in PowerShell?A[double]B[float]C[decimal]D[int]Check Answer
Step-by-Step SolutionSolution:Step 1: Identify default floating-point type in PowerShellPowerShell treats decimal numbers with decimals as [double] by default.Step 2: Confirm the type for 3.143.14 is a floating-point number and defaults to [double], not [float] or [decimal].Final Answer:[double] -> Option AQuick Check:Decimal literals default to [double] in PowerShell [OK]Quick Trick: Decimal numbers default to [double] unless specified [OK]Common Mistakes:Assuming [float] is defaultUsing [int] for decimalsConfusing [decimal] with default type
Master "Variables and Data Types" in PowerShell9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More PowerShell Quizzes Cmdlets and Pipeline - ForEach-Object for iteration - Quiz 12easy Cmdlets and Pipeline - Pipeline object flow - Quiz 9hard Cmdlets and Pipeline - Get-Member for object inspection - Quiz 8hard Control Flow - Break and continue - Quiz 7medium Operators - String comparison (-like, -match) - Quiz 15hard PowerShell Basics and Environment - Command discovery (Get-Command) - Quiz 15hard PowerShell Basics and Environment - PowerShell vs Bash vs CMD comparison - Quiz 1easy String Operations - Regular expressions with -match - Quiz 13medium String Operations - Select-String for searching - Quiz 2easy Variables and Data Types - Arrays - Quiz 5medium