All fields

“Basics & Types” in Information Technology

37 questions across 2 technologies.

Information Technology

37 questions in 2 technologies

#QuestionTechnologyTopicLevel
1What are the basic data types available in PHP? PHP › Basics & TypesPHPBasics & TypesBeginner
2What is type juggling in PHP, and how does it affect comparisons between values of different types? PHP › Basics & TypesPHPBasics & TypesIntermediate
3How 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
4How does PHP's type coercion behave differently in strict types mode compared to the default coercive mode, and what are the implications for function argument and return type validation? PHP › Basics & TypesPHPBasics & TypesAdvanced
5What is PHP and what makes it particularly well suited for web development? PHP › Basics & TypesPHPBasics & TypesBeginner
6How do variable variables and variable scope work in PHP, and what are common pitfalls to avoid? PHP › Basics & TypesPHPBasics & TypesIntermediate
7What are PHP's comparison operators, and how does the spaceship operator introduced in PHP 7 simplify writing custom comparison logic? PHP › Basics & TypesPHPBasics & TypesIntermediate
8What does declaring strict_types=1 at the top of a PHP file actually change about how type declarations are enforced? PHP › Type Declarations & Strict TypesPHPType Declarations & Strict TypesBeginner
9What are Dart records, and how do they let you group together several distinct values of potentially different types without needing to first define an entirely separate dedicated class? Flutter › Dart Language Basics & SyntaxFlutterDart Language Basics & SyntaxAdvanced
10What are type declarations in PHP, and how do they let you specify what kind of value a function parameter or return value should be? PHP › Type Declarations & Strict TypesPHPType Declarations & Strict TypesBeginner
11What are readonly properties in PHP, and how do they help you create objects whose internal state cannot be accidentally changed after they are first constructed? PHP › Type Declarations & Strict TypesPHPType Declarations & Strict TypesIntermediate
12How does PHP's filter_var function help validate and sanitize different types of user input, such as emails, URLs, and integers? PHP › Form Handling & ValidationPHPForm Handling & ValidationIntermediate
13What are the three main built in collection types in Dart, List, Set, and Map, and what makes each one uniquely suited for a different kind of data storage need? Flutter › Dart Collections & GenericsFlutterDart Collections & GenericsBeginner
14How do you actually properly read and write different basic primitive data types, such as a String, an int, and a bool, using the shared_preferences package's own available methods? Flutter › Local Data Storage with SharedPreferencesFlutterLocal Data Storage with SharedPreferencesBeginner
15How do bounded type parameters, using the extends keyword within a generic class definition, let you constrain a generic type to only accept types that satisfy a specific requirement? Flutter › Dart Collections & GenericsFlutterDart Collections & GenericsAdvanced
16How do you add, remove, and access elements within a PHP array? PHP › Arrays in PHPPHPArrays in PHPBeginner
17What is the use keyword in a PHP closure, and why is it needed to access outside variables from within an anonymous function? PHP › Closures & Anonymous FunctionsPHPClosures & Anonymous FunctionsBeginner
18What is a constant in PHP, and how does it differ from a regular variable? PHP › Constants & SuperglobalsPHPConstants & SuperglobalsBeginner
19What is the DateTime class in PHP, and why is it generally preferred over using the older date function alone? PHP › Date & Time HandlingPHPDate & Time HandlingBeginner
20What is the difference between a PHP error and a PHP exception? PHP › Error & Exception HandlingPHPError & Exception HandlingBeginner
21What is variable scope in PHP, and why can't a function normally access a variable defined outside of it? PHP › Functions & ScopePHPFunctions & ScopeBeginner
22What is the match expression introduced in PHP 8, and how does it improve upon the traditional switch statement? PHP › PHP 8 Features (Attributes, Enums, Match, Nullsafe Operator)PHPPHP 8 Features (Attributes, Enums, Match, Nullsafe Operator)Beginner
23What is a session in PHP, and how does it let a web application remember information about a user across multiple separate page requests? PHP › Sessions & CookiesPHPSessions & CookiesBeginner
24What are the different ways to create and combine strings in PHP, and how does string concatenation using the dot operator work? PHP › Strings & String FunctionsPHPStrings & String FunctionsBeginner
25What is the difference between single quoted and double quoted strings in PHP, particularly regarding variable interpolation and escape sequences? PHP › Strings & String FunctionsPHPStrings & String FunctionsBeginner
26What is XML, and what are the common built in ways PHP lets you read and parse an XML document? PHP › XML Handling in PHPPHPXML Handling in PHPBeginner
27How do you add or subtract a specific amount of time from a date using PHP's DateInterval and the modify or add methods? PHP › Date & Time HandlingPHPDate & Time HandlingIntermediate
28How do you handle multiple file uploads submitted from a single form field, and what does the resulting $_FILES array structure look like? PHP › File Upload HandlingPHPFile Upload HandlingIntermediate
29Why is server side validation always necessary even when client side JavaScript validation is already in place on a form? PHP › Form Handling & ValidationPHPForm Handling & ValidationIntermediate
30What are default parameter values and variadic functions in PHP, and how do they add flexibility to how a function can be called? PHP › Functions & ScopePHPFunctions & ScopeIntermediate
31What are named arguments introduced in PHP 8, and how do they improve the readability of function calls with many parameters? PHP › Functions & ScopePHPFunctions & ScopeIntermediate
32How do you use named placeholders in a PDO prepared statement, and how do they improve readability compared to positional question mark placeholders? PHP › PDO & DatabasesPHPPDO & DatabasesIntermediate
33How does the getopt function provide a more structured way to parse command line options and flags compared to manually processing the $argv array? PHP › PHP CLI ScriptingPHPPHP CLI ScriptingIntermediate
34Why should passwords always be hashed before storing them in a database, and how does PHP's password_hash function make this straightforward and secure? PHP › SecurityPHPSecurityIntermediate
35What is session fixation, and how does regenerating the session identifier after a successful login help prevent this attack? PHP › Sessions & CookiesPHPSessions & CookiesIntermediate
36How do type declarations and PHPDoc comments help a static analysis tool understand your code more accurately and catch more potential issues? PHP › Static Analysis (PHPStan & Psalm)PHPStatic Analysis (PHPStan & Psalm)Intermediate
37Why are the multibyte string functions, such as mb_strlen and mb_substr, important when working with text that contains non ASCII characters like accented letters or emoji? PHP › Strings & String FunctionsPHPStrings & String FunctionsIntermediate