Answer:
Print([(a,b) for a in range(10) for b in range(10) if (a < b and a%2 == 1 and b%2 == 1)])
Explanation:
Here, we declared a range of value for a and b using a for loop and the range function. The values are the first 10 numeric digits. The we used the if statement to establish our constraints;
In other to ensure that ;
Lower digit is written first ; (a < b) ;
Only odd numbers are considered,
a%2 == 1 ; b%2 == 1 (remainder when a and b are divided by 2 is 1.
Both a and b are declared as a tuple in other to obtain a pair of odd values.
Answer:
Select commands would return all the rows and columns in the table.
Explanation:
In the database management system, it consists of one or more table. To handle this table it provides the concept of SQL(Structured Query Language). It is a programming language that design, manage, store data into the relational database. It is case sensitive language. In the SQL many commands used for handle table data, it returns all rows and columns from the table.
Syntax of select command can be given as:
Select * from tablename;
Example:
select * from ProductCategory;
returns all the data from the table.
In select command, we will also return select data by using condition
SELECT column1 [, column2, ...]
FROM tablename
WHERE condition
In the conditional clause we use these operators that can be given as:
= Equal, > Greater than, < Less than, >= Greater than equal to, <= Less than equal to, != Not equal to.
Answer:
setTimeout is a native JavaScript function (although it can be used with a library such as jQuery, as we'll see later on), which calls a function or executes a code snippet after a specified delay (in milliseconds).
Answer:
enable the used ports in the router with their respective IP address and only the connected ports in the switch. Allow configure the STP on the switch
Explanation:
Network switches are used to connect a group of computer devices in a network LAN. It is automatically enabled when a port is connected and creates a MAC address table of the computers connected to it. STP or spanning-tree protocol is a protocol used to prevent looping in a switch. Unused ports can be disabled for security reasons.
A router is a network device that is used to forward packets between networks. All used ports in a router must be enabled and configured with an IP address and subnet mask.