An if statement in Lua is used to evaluate some code based on some conditions. If those conditions match, then we execute the code that is written inside the code block of an if statement, else we do nothing.In Lua, the if statement tests its condition and if that condition evaluates to true, then it executes its then-part or its else-part.The else-part is optional in Lua.ExampleConsider the example shown below −a = -1 if a < 0 then a = 0 end print(a)Output0 We can also insert an else-part in the above statement to make ... Read More
Global variables in Lua are the variables that don’t need any type of declaration in them. We can simply define the name of the variable and assign any value we want to it, without having to use any keyword with it.Having global variables makes certain programming cases possible, and it is also preferred if we want to create a variable that we want to use in multiple functions. In case we don’t use global variables, we might have to pass that variable to different functions where we want to use it, which is a bit more tedious.SyntaxThe syntax for declaring ... Read More
The generic for in Lua allows us to iterate over the values in an iterator fashion; it is much more powerful even though it looks simple. The Lua library has plenty of iterators, over which we can use the generic for loop.Syntaxfor i, v in pairs(x) do ... ... endThe i in the above syntax denotes the index of the items we are going to iterate over only by one, and the v denotes the actual values of those items. The x is the iterable item over which ... Read More
Comments are a set of commands that are ignored by the compiler. They are used in a scenario where you want to attach a note to your code or a section of code so that when you visit it later, you can recall it easily. The comment statements are usually ignored during the execution of the program.There are two types of comments in Lua −Single-line commentsMulti-line commentsMulti-line comments are also known as block comments in Lua.Single-Line CommentA single-line comment in Lua starts with a double hyphen (--) and runs until the end of the line.Syntax-- this is a commentLet’s consider ... Read More
The break statement is used when we want to break or terminate the execution of a loop. Once the break statement is reached, the control is transferred from the current loop to whatever is written after the loop. This statement breaks the inner loop (for, repeat, or while) that contains it; it cannot be used outside a loop. After the break, the program continues running from the point immediately after the broken loop.A break statement is mostly used in conditional statements and also in loops of all types. It is present in almost all popular programming languages.SyntaxbreakNow, let’s consider a ... Read More
What is Software Testing Methodology?The tactics and testing kinds utilized to ensure that the Application Under Test satisfies customer requirements are referred to as software testing methodology. To validate the AUT, test methodologies include functional and non-functional testing. Unit testing, integration testing, system testing, performance testing, and other testing methodologies are examples. A test objective, test strategy, and deliverables are all outlined in each testing methodology.Many firms use the terms Development Methodologies and Testing Methodologies interchangeably since Software Testing is a vital aspect of any Development Methodology. In contrast to the previous definition of Testing Methodologies, Testing Methodologies might also ... Read More
The severity of the BugThe severity of the bug or the defect A problem or a Defect's severity in testing refers to how much of an impact it has on the software program under test. A higher severity rating indicates that the bug/defect has a greater impact on system functionality. The severity level of a bug or defect is generally determined by a Quality Assurance engineer.What is the meaning of priority?The order in which a fault should be repaired is referred to as a priority. The higher the priority, the faster the problem should be fixed.Flaws that render the software ... Read More
The Security System Development Life Cycle (SecSDLC) is a series of activities that are carried out in a certain order throughout the software development process (SDLC). It is created in such a manner that it can assist developers in creating software and apps in such a way that security risks are reduced greatly from the start.The Security System Development Life Cycle (SecSDLC) is similar to the Software Development Life Cycle (SDLC), but the activities carried out in each step of the cycle are different. SecSDLC is a process that includes identifying specific threats and the risks that such threats pose ... Read More
Manual TestingManual testing is a sort of software testing wherein test cases are personally run by a tester instead of utilizing automated technologies. The goal of manual testing is to find errors, faults, and flaws in a software product. Manual software testing is by far the most basic of all testing methods, and it aids in the discovery of serious problems in software applications.Even before new app can be automated, it must first be manually evaluated. Manual software testing takes more time and effort, but this is required to determine if automation is possible. Manual testing principles do not need ... Read More
There is an agreed-upon manner of doing things whenever we start a company, whether online or in the conventional sense. This is referred to as "Standards." For example, if you want to start a company creating bed linens, the minimum length of bedsheets required by industry standards is 7 feet. These guidelines might be publicly published or followed in an unwritten manner.What is the Purpose of Standards?As consumers, standards assist us in determining whether or not something is appropriate for the purpose for which it is purchased, and whether or not it is of acceptable quality. It's also easy to ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP