mirror of
https://github.com/wassname/AntiPaSTO.git
synced 2026-09-09 11:12:52 +08:00
274 lines
22 KiB
JSON
274 lines
22 KiB
JSON
[
|
|
"How to reverse a string in Python?\n\nYou can use",
|
|
"create a REST API with Flask\n\nStart by installing",
|
|
"What is polymorphism in OOP?\n\nPolymorphism allows",
|
|
"best practices for git commit messages\n\nIt's recommended to",
|
|
"install numpy in a virtualenv\n\nFirst, activate your",
|
|
"difference between list and tuple in Python\n\nThe main difference",
|
|
"generate random numbers in JavaScript\n\nUse Math.random() to",
|
|
"using async/await in Node.js\n\nAsync functions enable",
|
|
"CSS selector for an ID\n\nUse the hash symbol",
|
|
"SQL query to find duplicates\n\nYou can use GROUP BY",
|
|
"prevent SQL injection in PHP\n\nAlways use prepared statements",
|
|
"What is a deadlock in operating systems?\n\nA deadlock occurs when",
|
|
"setting up environment variables in Linux\n\nExport the variables using",
|
|
"merge two dictionaries in Python\n\nUse the {**dict1, **dict2} syntax",
|
|
"center a div with CSS\n\nApply display: flex and justify-content",
|
|
"What is machine learning?\n\nMachine learning is a type of",
|
|
"making a GET request with axios\n\nAxios.get('url') allows",
|
|
"What are websockets?\n\nWebsockets provide a bidirectional",
|
|
"update a record in MongoDB\n\nUse the db.collection.updateOne method",
|
|
"convert string to int in Java\n\nUse Integer.parseInt() for",
|
|
"read a file line by line in Python\n\nOpen the file and iterate",
|
|
"What is Docker?\n\nDocker is a platform for",
|
|
"How to use hooks in React?\n\nHooks allow you to",
|
|
"send an email with Python\n\nUse the smtplib module to",
|
|
"What is a JWT?\n\nJWT stands for JSON Web Token,",
|
|
"create a virtual environment in Python\n\nUse the command python -m venv",
|
|
"How to declare a variable in JavaScript?\n\nUse let, const, or var",
|
|
"sorting an array in Java\n\nArrays.sort() method can",
|
|
"What is the purpose of CORS?\n\nCORS, or Cross-Origin Resource Sharing,",
|
|
"add an element to an array in PHP\n\nUse the array_push() function or",
|
|
"How to create a thread in Java?\n\nImplement the Runnable interface or",
|
|
"make a div full screen\n\nSet width and height to 100%",
|
|
"What is the Singleton pattern?\n\nThe Singleton pattern ensures a class",
|
|
"remove an element from a list in Python\n\nUse the list.remove() method or",
|
|
"deploy a React app to GitHub Pages\n\nUse the gh-pages package to",
|
|
"What is the difference between == and === in JavaScript?\n\n== checks for",
|
|
"concatenate strings in JavaScript\n\nUse the + operator or template literals",
|
|
"What is an API?\n\nAn API, or Application Programming Interface,",
|
|
"execute a shell command from Python\n\nUse the subprocess.run() function",
|
|
"CSS to make text responsive\n\nUse viewport units like vw",
|
|
"What is the use of the map function in Python?\n\nThe map function applies",
|
|
"How to check if a key exists in a dictionary in Python?\n\nUse the in keyword",
|
|
"create a responsive navbar\n\nUse CSS media queries and flexbox",
|
|
"What is the Big O notation?\n\nBig O notation describes the",
|
|
"update state in React\n\nUse the useState hook or this.setState in class",
|
|
"How to find the length of a list in Python?\n\nUse the len() function",
|
|
"generate a QR code in Python\n\nUse the qrcode library and",
|
|
"What is a promise in JavaScript?\n\nA promise represents the",
|
|
"vertically center text in a div\n\nUse display: flex and align-items",
|
|
"How to use Git rebase?\n\nGit rebase is used for",
|
|
"set a background image in CSS\n\nUse the background-image property",
|
|
"What is Kubernetes?\n\nKubernetes is an open-source platform for",
|
|
"fetch data with React Hooks\n\nUse the useEffect hook and fetch API",
|
|
"remove duplicates from an array in JavaScript\n\nCreate a new Set() and",
|
|
"What is the purpose of Redux in React?\n\nRedux provides a predictable",
|
|
"How to create a modal in HTML and CSS?\n\nStructure your HTML with a",
|
|
"serialize an object to JSON in JavaScript\n\nUse JSON.stringify() to",
|
|
"What is Agile software development?\n\nAgile is a methodology that",
|
|
"validate an email address in JavaScript\n\nUse a regular expression to",
|
|
"create a dropdown menu in HTML\n\nUse the <select> element and",
|
|
"What is continuous integration?\n\nContinuous integration (CI) is a",
|
|
"execute JavaScript after page load\n\nUse window.onload or the DOMContentLoaded",
|
|
"dynamically add options to a select box in JavaScript\n\nUse createElement() and appendChild()",
|
|
"What is a virtual DOM in React?\n\nThe virtual DOM is a",
|
|
"sort a dictionary by value in Python\n\nUse the sorted() function with the key",
|
|
"How to make a website accessible?\n\nFollow WCAG guidelines and use semantic HTML",
|
|
"check if an array contains a value in JavaScript\n\nUse Array.includes() or Array.indexOf()",
|
|
"What is the difference between Git and GitHub?\n\nGit is a version control system,",
|
|
"How to handle errors in async/await in JavaScript?\n\nUse try-catch blocks to",
|
|
"deploy a Node.js app to Heroku\n\nEnsure your app has a Procfile and",
|
|
"What is the REST architectural style?\n\nREST stands for Representational State Transfer,",
|
|
"dynamically update a web page without reloading\n\nUse AJAX or the Fetch API for",
|
|
"How to use environment variables in Node.js?\n\nAccess them using process.env",
|
|
"create a gradient background in CSS\n\nUse the linear-gradient() or radial-gradient() functions",
|
|
"What is GraphQL?\n\nGraphQL is a query language for APIs that",
|
|
"loop through an object in JavaScript\n\nUse Object.keys(), Object.values(), or Object.entries() to",
|
|
"How to center an element vertically and horizontally in CSS?\n\nUse display: flex with justify-content",
|
|
"create a table in SQL\n\nUse the CREATE TABLE statement followed by",
|
|
"What is the use of the reduce function in JavaScript?\n\nThe reduce function aggregates",
|
|
"How to create a multi-page application with React Router?\n\nUse the <Router>, <Route>, and <Switch>",
|
|
"add a watermark to an image with Python\n\nUse the PIL or Pillow library and",
|
|
"What is XSS (Cross-Site Scripting)?\n\nXSS is a vulnerability that allows attackers",
|
|
"How to send files using FormData with AJAX?\n\nCreate a FormData object and append",
|
|
"How to format dates in JavaScript?\n\nUse the Date object along with toLocaleDateString()",
|
|
"validate a form with HTML5\n\nUse the required, type, pattern, and min/max",
|
|
"What is CI/CD?\n\nCI/CD stands for Continuous Integration and Continuous Deployment,",
|
|
"How to create an accordion with CSS and JavaScript?\n\nStructure your HTML with divs and",
|
|
"What is a microservice architecture?\n\nMicroservice architecture involves developing a software application as",
|
|
"How to check for null in JavaScript?\n\nUse the strict equality operator",
|
|
"What is a pointer in C?\n\nA pointer is a variable that",
|
|
"How to use environment variables in Docker?\n\nUse the -e flag with docker run or",
|
|
"What is the difference between SOAP and REST?\n\nSOAP is a protocol for exchanging",
|
|
"How to use the map method in JavaScript?\n\nThe map method creates a new array",
|
|
"How to make a POST request with fetch in JavaScript?\n\nUse fetch() with the method option",
|
|
"What is an interface in Java?\n\nAn interface is a reference type in Java",
|
|
"How to create a new branch in Git?\n\nUse git branch followed by the name",
|
|
"What is a framework in programming?\n\nA framework provides a structure and set of",
|
|
"How to convert JSON to an object in JavaScript?\n\nUse JSON.parse() to",
|
|
"How to clone a GitHub repository?\n\nUse git clone followed by the repository URL",
|
|
"What is functional programming?\n\nFunctional programming is a paradigm that treats computation",
|
|
"How to center a button in a div?\n\nUse display: flex and justify-content: center",
|
|
"What is the use of the slice method in JavaScript?\n\nThe slice method returns a",
|
|
"How to use PropTypes in React?\n\nPropTypes allows you to type-check the props",
|
|
"How to check if a string contains a substring in JavaScript?\n\nUse the includes() method or",
|
|
"How to exit a loop in Python?\n\nUse the break statement to",
|
|
"What is the difference between synchronous and asynchronous programming?\n\nSynchronous programming executes tasks",
|
|
"How to create a sticky header in CSS?\n\nUse position: sticky and top: 0",
|
|
"How to connect to a MySQL database in PHP?\n\nUse the mysqli_connect() function or",
|
|
"What is a class in Python?\n\nA class is a blueprint for",
|
|
"How to remove a file in Linux?\n\nUse the rm command followed by",
|
|
"What is a container in Docker?\n\nA container is a lightweight, stand-alone, executable",
|
|
"How to use the foreach loop in PHP?\n\nThe foreach loop iterates over elements of",
|
|
"How to add a Google Map to a website?\n\nUse the Google Maps JavaScript API and",
|
|
"What is a session in web development?\n\nA session is a way to store information",
|
|
"How to validate a form with JavaScript?\n\nUse event listeners to capture form submission",
|
|
"How to use CSS variables?\n\nDeclare CSS variables with --name: value and use",
|
|
"What is the difference between a process and a thread?\n\nA process is an instance",
|
|
"How to append to a file in Python?\n\nUse open() with the 'a' mode",
|
|
"How to create a responsive image gallery?\n\nUse CSS flexbox or grid layout and",
|
|
"What is a lambda function in Python?\n\nA lambda function is a small anonymous",
|
|
"How to use the switch statement in JavaScript?\n\nThe switch statement evaluates an expression",
|
|
"What is Git?\n\nGit is a distributed version control system designed",
|
|
"How to add authentication to a web application?\n\nImplement login functionality using session cookies, JWTs,",
|
|
"How to use flexbox in CSS?\n\nDisplay an element as a flex container with",
|
|
"What is the purpose of a load balancer?\n\nA load balancer distributes incoming network",
|
|
"How to make an API call in React?\n\nUse the fetch API or Axios within",
|
|
"What is a NoSQL database?\n\nNoSQL databases are designed to handle a wide",
|
|
"How to encrypt data in Python?\n\nUse the cryptography library and create a Fernet",
|
|
"What is a constructor in Java?\n\nA constructor is a special method used to",
|
|
"How to set up a VPN?\n\nChoose a VPN provider, download and install the",
|
|
"What is a commit in Git?\n\nA commit is a record of changes made",
|
|
"How to use the filter method in JavaScript?\n\nThe filter method creates a new array",
|
|
"How to handle exceptions in Python?\n\nUse try-except blocks to catch exceptions",
|
|
"What is responsive web design?\n\nResponsive web design is an approach to web design",
|
|
"How to change the color of text in CSS?\n\nUse the color property followed by",
|
|
"What is a microcontroller?\n\nA microcontroller is a small computer on a single integrated",
|
|
"How to create a dropdown list in HTML?\n\nUse the <select> element along with multiple",
|
|
"What is the use of the await keyword in JavaScript?\n\nThe await keyword is used with",
|
|
"How to optimize website performance?\n\nMinimize HTTP requests, optimize images, use CDN, enable",
|
|
"What is the Model-View-Controller (MVC) pattern?\n\nThe MVC pattern is a software design pattern",
|
|
"How to read from a file in Java?\n\nUse the java.io.FileReader class or java.nio.file.Files",
|
|
"How to use the reduce method in JavaScript?\n\nThe reduce method reduces an array to",
|
|
"What is a Docker image?\n\nA Docker image is a lightweight, standalone, executable package",
|
|
"How to center text in HTML?\n\nUse the text-align property in CSS with the",
|
|
"How to create a virtual machine?\n\nUse virtualization software like VMware, VirtualBox, or Hyper-V",
|
|
"What is an ORM?\n\nORM stands for Object-Relational Mapping, a technique for",
|
|
"How to make a form in HTML?\n\nUse the <form> element with <input>, <label>,",
|
|
"What is the difference between a static and dynamic website?\n\nA static website consists",
|
|
"How to check the type of a variable in JavaScript?\n\nUse the typeof operator to",
|
|
"What is cross-site request forgery (CSRF)?\n\nCSRF is an attack that tricks the victim",
|
|
"How to change the font size in CSS?\n\nUse the font-size property followed by a",
|
|
"What is AJAX in web development?\n\nAJAX stands for Asynchronous JavaScript and XML, allowing",
|
|
"How to make a call to an API using cURL?\n\nUse the curl command with the",
|
|
"What is a primary key in a database?\n\nA primary key is a unique identifier",
|
|
"How to sort an array in JavaScript?\n\nUse the array.sort() method with a comparison",
|
|
"What is the use of the .env file?\n\nThe .env file is used to store",
|
|
"How to check if an object is an array in JavaScript?\n\nUse Array.isArray() to determine",
|
|
"What is the purpose of the .gitignore file?\n\nThe .gitignore file is used to specify",
|
|
"How to install a package with npm?\n\nUse npm install followed by the package name",
|
|
"What is a webhook?\n\nA webhook is a way for an app to provide",
|
|
"How to change a commit message in Git?\n\nUse git commit --amend to modify the",
|
|
"What is serverless computing?\n\nServerless computing is a cloud computing execution model where",
|
|
"How to add a background color in CSS?\n\nUse the background-color property followed by",
|
|
"What is the Internet of Things (IoT)?\n\nThe Internet of Things refers to the network",
|
|
"How to create a custom hook in React?\n\nCustom hooks start with 'use' and can",
|
|
"What is a GraphQL mutation?\n\nGraphQL mutations are used to modify server-side data,",
|
|
"How to set a cookie in JavaScript?\n\nUse document.cookie = 'name=value; expires=; path=';",
|
|
"What is a domain name system (DNS)?\n\nDNS is the system that translates domain names",
|
|
"How to use the slice method in Python?\n\nThe slice method can be used to",
|
|
"What is Object-Oriented Programming (OOP)?\n\nOOP is a programming paradigm based on the concept",
|
|
"How to update a component's state in React?\n\nUse the setState() method or useState() hook",
|
|
"What is the use of the break statement in loops?\n\nThe break statement terminates the current",
|
|
"How to create an infinite loop in Python?\n\nUse while True: to create an endless",
|
|
"What is a CDN?\n\nA Content Delivery Network (CDN) is a system of distributed",
|
|
"How to use the ternary operator in JavaScript?\n\nThe ternary operator is a shorthand for",
|
|
"What is data binding in Angular?\n\nData binding is a feature in Angular that",
|
|
"How to create a multi-threaded application in C#?\n\nUse the System.Threading.Thread class to create",
|
|
"How to generate a unique ID in JavaScript?\n\nUse the Date.now() or Math.random()",
|
|
"What is the difference between innerHTML and textContent in JavaScript?\n\ninnerHTML retrieves or sets",
|
|
"How to send a JSON object in an AJAX request?\n\nConvert the JSON object to",
|
|
"What is event bubbling in JavaScript?\n\nEvent bubbling is a type of event",
|
|
"How to hide an element in HTML?\n\nUse the CSS display property set to 'none'",
|
|
"What is a Git branch?\n\nA branch in Git is essentially a unique set",
|
|
"How to find the index of an element in an array in JavaScript?\n\nUse the indexOf()",
|
|
"How to use variables in SQL query?\n\nIn SQL, variables can be used in",
|
|
"What is a foreign key in a database?\n\nA foreign key is a column or",
|
|
"How to clear a form after submission in JavaScript?\n\nUse the form.reset() method to",
|
|
"What is the virtual DOM in React?\n\nThe virtual DOM (VDOM) is a programming",
|
|
"How to make a copy of an array in JavaScript?\n\nUse the spread syntax [...array]",
|
|
"What is an abstract class in Java?\n\nAn abstract class in Java is a class",
|
|
"How to add a CSS class to an element with JavaScript?\n\nUse the element.classList.add()",
|
|
"What is state management in React?\n\nState management in React refers to the",
|
|
"How to remove a CSS class from an element with JavaScript?\n\nUse element.classList.remove()",
|
|
"What is a Promise in JavaScript?\n\nA Promise in JavaScript is an object",
|
|
"How to create a responsive layout with CSS Grid?\n\nUse CSS Grid layout with",
|
|
"What is the use of the const keyword in JavaScript?\n\nThe const keyword declares",
|
|
"How to round a number to two decimal places in JavaScript?\n\nUse the .toFixed(2) method",
|
|
"What is a mixin in Sass?\n\nA mixin in Sass is a directive",
|
|
"How to fetch data from an API in Vue.js?\n\nUse the created lifecycle hook and",
|
|
"What is a service worker in web development?\n\nA service worker is a script that",
|
|
"How to set up a basic authentication system in Node.js?\n\nUse middleware like Passport.js",
|
|
"What is lazy loading in web development?\n\nLazy loading is a design pattern used",
|
|
"How to center a form vertically and horizontally in CSS?\n\nUse display: flex; justify-content: center;",
|
|
"What is the difference between localStorage and sessionStorage in web development?\n\nlocalStorage and sessionStorage",
|
|
"How to create a toggle switch in HTML and CSS?\n\nUse a checkbox input and",
|
|
"What is the Box Model in CSS?\n\nThe CSS Box Model is a fundamental",
|
|
"How to use the spread operator in JavaScript?\n\nThe spread operator (...) allows an iterable",
|
|
"What is dependency injection in Angular?\n\nDependency injection (DI) in Angular is a design",
|
|
"How to create a parallax scrolling effect with CSS?\n\nUse background-attachment: fixed; on",
|
|
"What is memoization in programming?\n\nMemoization is an optimization technique used to",
|
|
"How to create a custom directive in Vue.js?\n\nUse Vue.directive('directiveName', { // options })",
|
|
"What is a context in React?\n\nContext provides a way to pass data through",
|
|
"How to use regular expressions in JavaScript?\n\nRegular expressions in JavaScript can be used",
|
|
"What is an SVG in web development?\n\nSVG stands for Scalable Vector Graphics, which",
|
|
"How to create a dropdown menu with CSS and JavaScript?\n\nUse a combination of :hover",
|
|
"What is the difference between an ID and a class in CSS?\n\nAn ID is a",
|
|
"How to make an element draggable in HTML5?\n\nUse the draggable='true' attribute on the",
|
|
"What is a repository in Git?\n\nA repository in Git is a digital directory",
|
|
"How to create a mobile navigation menu in CSS?\n\nUse a combination of CSS media",
|
|
"What is a component in Vue.js?\n\nA component in Vue.js is a reusable",
|
|
"How to prevent default behavior in JavaScript event handling?\n\nUse the event.preventDefault() method",
|
|
"What is the difference between GET and POST methods in HTTP?\n\nGET requests are used",
|
|
"How to create a modal popup with CSS and JavaScript?\n\nUse CSS for the modal",
|
|
"What is the difference between a static method and an instance method in Java?\n\nStatic methods",
|
|
"How to convert a string to lowercase in JavaScript?\n\nUse the toLowerCase() method",
|
|
"What is the purpose of the @media rule in CSS?\n\nThe @media rule is used",
|
|
"How to pass data between components in React?\n\nUse props to pass data from",
|
|
"What is the difference between == and === in JavaScript?\n\nThe == operator tests for",
|
|
"How to disable a button in HTML?\n\nUse the disabled attribute in the button",
|
|
"What is a callback function in JavaScript?\n\nA callback function is a function passed",
|
|
"How to add a border to an element in CSS?\n\nUse the border property and specify",
|
|
"What is the purpose of the useEffect hook in React?\n\nThe useEffect hook lets you",
|
|
"How to align items in a flex container in CSS?\n\nUse align-items property on the",
|
|
"What is the difference between a parameter and an argument in programming?\n\nParameters are the",
|
|
"How to create a simple animation in CSS?\n\nUse the @keyframes rule to define the",
|
|
"What is the purpose of the async keyword in JavaScript?\n\nThe async keyword is used",
|
|
"How to change the color of an SVG element with CSS?\n\nUse the fill property to",
|
|
"What is a RESTful API?\n\nA RESTful API is an application program interface that",
|
|
"How to validate an email address using a regular expression?\n\nUse a regular expression that",
|
|
"What is the difference between an array and an object in JavaScript?\n\nArrays are used",
|
|
"How to hide and show an element with JavaScript?\n\nUse the style.display property to 'none'",
|
|
"What is the purpose of the return statement in a function?\n\nThe return statement is used",
|
|
"How to create a multi-column layout with CSS Grid?\n\nUse the grid-template-columns property to define",
|
|
"What is the purpose of a Dockerfile?\n\nA Dockerfile is a text document that contains",
|
|
"How to create a horizontal scrollable menu in CSS?\n\nUse display: flex; overflow-x: auto; for",
|
|
"What is the use of the map function in JavaScript?\n\nThe map function creates a",
|
|
"How to make an HTTP request in Python?\n\nUse the requests library and its get()",
|
|
"What is the difference between visibility:hidden and display:none in CSS?\n\nvisibility:hidden hides the element",
|
|
"How to create a sticky footer with CSS?\n\nUse position: fixed; bottom: 0; to",
|
|
"What is the purpose of the try-catch block in JavaScript?\n\nThe try-catch block is used",
|
|
"How to create a gradient background with CSS?\n\nUse the linear-gradient() function in the",
|
|
"What is the purpose of the MVC architecture?\n\nThe MVC (Model-View-Controller) architecture separates an",
|
|
"How to create a circular image with CSS?\n\nUse the border-radius property set to 50%",
|
|
"What is the purpose of the package.json file in a Node.js project?\n\nThe package.json",
|
|
"How to create a simple slider with JavaScript?\n\nUse a range input element and add",
|
|
"What is the use of the aria-label attribute in HTML?\n\nThe aria-label attribute is used",
|
|
"How to center a list horizontally in CSS?\n\nUse display: flex; justify-content: center; on",
|
|
"What is a JWT and how is it used in authentication?\n\nJWT, or JSON Web Token,",
|
|
"How to add a shadow to an element in CSS?\n\nUse the box-shadow property to",
|
|
"What is the use of the useState hook in React?\n\nThe useState hook is a function",
|
|
"How to create a navigation bar that sticks to the top on scroll?\n\nUse position: sticky;",
|
|
"What is the use of the .map() method in arrays in JavaScript?\n\nThe .map() method",
|
|
"How to check if a number is even or odd in JavaScript?\n\nUse the modulo operator",
|
|
"What is the difference between a library and a framework?\n\nA library is a collection",
|
|
"How to create a collapsible section in HTML and CSS?\n\nUse the <details> and <summary>",
|
|
"What is the purpose of the data attribute in HTML?\n\nThe data-* attribute is used",
|
|
"How to change the cursor style with CSS?\n\nUse the cursor property in CSS and",
|
|
"What is the use of the reduce method in JavaScript?\n\nThe reduce method applies a",
|
|
"How to align text vertically in a div with CSS?\n\nUse display: flex; align-items: center;",
|
|
"What is the purpose of the var keyword in JavaScript?\n\nThe var keyword declares a",
|
|
"How to make a button look like a link in CSS?\n\nStyle the button with CSS"
|
|
]
|