Answer:
SELECT TECHNAME, EMPNUM, YEAR FROM EMPLOYEE ORDER BY YEAR DESC
Explanation:
The table definition is not given;
However, I'll make the following assumptions
Table Name:
Employee
Columns:
Technician name will be represented with Techname
Employee number will be represented with Empnum
Year Hired will be represented with Year
Having said that; the sql code is as follows:
SELECT TECHNAME, EMPNUM, YEAR FROM EMPLOYEE ORDER BY YEAR DESC
The newest year hired will be the largest of the years;
Take for instance:
An employee hired in 2020 is new compared to an employee hired in 2019
This implies that the year has to be sorted in descending order to maintain the from newest to oldest.
var N; // Text
N := 1;
document.writeln( N );
document.writeln( “ by “);
document.writeln( “N + 3”);
document.writeln( “ by “ );
document.writeln( N + 5);
Answer:
var N; // Text
N = 1;
document.write( N );
document.write(" by ");
document.write(N + 3);
document.write(" by ");
document.write(N + 8);
Explanation:
var N; // Text
N = 1;
document.write( N );
document.write(" by ");
document.write(N + 3);
document.write(" by ");
document.write(N + 8);
Answer:
These all are constructors.
CONS
(CONS A B)
makes a pair like this: (A . B)
In other words, A is the CAR of the pair; B is the CDR of the pair.
For example:
(CONS 4 5) ==> (4 . 5)
(CONS 4 '(5 6)) ==> (4 5 6)
[The pair (4 . (5 6)) is the same thing as (4 5 6)].
APPEND
(APPEND A B)
makes a new list by replacing the final nil in A with the list B. A and
B must be proper lists.
For example:
(APPEND '(4) '(5 6)) ==> (4 5 6)
This takes any amount of number and put in this order
LIST
In this ,it will return a list whose elements are value of arguments in the order as it appeared in the LIST.It can take any amount of parameters
For example,
(LIST 4) ==> (4)
(LIST 4 5) ==> (4 5)
(LIST 4 5 '(6 7)) ==> (4 5 (6 7))
(LIST (+ 5 6)(* 5 6)) ==> (8 9)
Answer:
The answer is "It Specifies the built-in chip in the module header".
Explanation:
The hardware simulator is also an instrument about which the device physical models could be constructed, in the mainframe, which includes a console, a power supply, or multiple sockets for plugging regular modules.
Answer:
The word used to begin a conditional statement is if.
Explanation:
In the syntaxes of most (if not all) programming languages, the word if is used to begin any conditional statement.
Take for instance:
Python:
if a == b:
print("Equal")
C++:
if(a == b)
cout<<"Equal";
Java:
if(a==b)
System.out.print("Equal")
The above code segments in Python, C++ and Java represents how conditional statements are used, and they all have a similarity, which is the "if" word
var fullName = lastName;
fullName += ", ";
fullName += firstName;
a.firstName="Harris"
b.firstName="Ray Harris"
c.fullName="Ray Harris"
d.fullName="Harris, Ray"
Answer:
d. fullName="Harris, Ray"
Explanation:
// here we define two variables firstName="Ray" and lastName= "Harris"
var firstName = "Ray", lastName = "Harris";
// then we create another variable fullName and assign it the value stored in variabl lastName that is "Harris"
var fullName = lastName;
// then we added a coma and space. At this point fullName= Harris,
fullName += ", ";
// then we added firstName to the variable fullName. At this point fullName=Harris, Roy
fullName += firstName;
Note: the += operator means that add the variable on the left by an amount on the right
a+= b; or a = a + b; both mean same
Answer:
The program written in Python is as follows:
See Explanation section for line by line explanation
for n in range(100,1000):
isum = 0
for d in range(1,n):
if n%d == 0:
isum += d
if isum == n * 2:
print(n)
Explanation:
The program only considers 3 digit numbers. hence the range of n is from 100 to 999
for n in range(100,1000):
This line initializes sum to 0
isum = 0
This line is an iteration that stands as the divisor
for d in range(1,n):
This line checks if a number, d can evenly divide n
if n%d == 0:
If yes, the sum is updated
isum += d
This line checks if the current number n is a double-perfect number
if isum == n * 2:
If yes, n is printed
print(n)
When the program is run, the displayed output is 120 and 672