Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help with the following HTML/LINQ questions I will thumbs up in rating !!

ID: 3917442 • Letter: P

Question

Please help with the following HTML/LINQ questions

I will thumbs up in rating !!!

1. The tag is new in HTML 5. Which version of Google Chrome is the first version that fully supports the element?

A) 8
B) 9
C) 9.5
D) 10
E) 10.1
F) 11

2) Given:

public class Student

{
public string FirstName;
public string LastName;
public int Age;

// other code for constructor, methods, etc.
}

Student[] students =
{
new Student("Zen", "Markum", 19),
new Student("Qill", "Martem", 23),
new Student("Casper", "Leekap", 18),
new Student("Millen", "Plakor", 21)
};

var results = from student in students where student.Age < 21 && student.FirstName.Length < 4 select student.LastName;

What is in results?

A) Casper
B) Zen
C) Leekap
D) Markum
E) Martem
F) Plakor
G) Markum,Leekap,Plakor
H) Zen,Casper,Millen

3) Given:

public enum Gender
{
Male,
Female,
TransFemale,
TransMale,
NonBinary
}

public class Employee
{
public string Name;
public double Salary;
public Gender Gender;

// other code for constructor, methods, etc.
}

Employee[] employees =
{
new Employee("John Smith", Gender.Male, 85670.0),
new Employee("Sally Martinez", Gender.Female, 94365.0),
new Employee("Karen Marks", Gender.Female, 115560.0),
new Employee("Kevin Yost", Gender.Male, 25670.0),
new Employee("Thomas Synder", Gender.Male, 133214.0),
new Employee("Apryl Colpers", Gender.Female, 217112.0),
new Employee("Kendra Lansky", Gender.NonBinary, 118122.0),
new Employee("Sandra Dolate", Gender.Female, 139131.0)
};

Which LINQ statement retrieves female employees that make more than $100,000 per year ordered by salary from smallest to largest?

A)from employee in employees where employee.Gender = Gender.Female && employee.Salary > 100000 orderby employee.Salary ascending select employee;

B)from employee in employees where employee.Gender == Gender.Female AND employee.Salary > 100000 orderby employee.Salary ascending select employee;

C)from employee in employees where employee.Gender == Gender.Female && employee.Salary > 100000 orderby employee.Salary ascending select employee;

D) select employee from employee in employees where employee.Gender == Gender.Female AND employee.Salary > 100000 orderby employee.Salary ascending;

E)select employee from employee in employees where employee.Gender == Gender.Female AND employee.Salary > 100000 orderby employee.Salary asc;

4) people is an array of strings that are the names of a list of people.

What does the following LINQ statement do?

var results = from person in people orderby person.Length descending select person;

A) results is the list of people sorted by height from tallest to shortest
B) results is the list of people's names sorted by longest name to shortest name
C)results is the list of people's names sorted by shortest name to longest name
D)results is a list of numerical values that are the length's of people's names from largest value to smallest

Explanation / Answer

1.9.5

2.The answer will be D) Markum

Since based on the query the age should be less than 21 and length of first name should be less than 4.Both the conditions satisfy for" Zen " only ...

Since we are asked to select the last name. The results will store Markum not Zen.

3.The answer woll be C)from employee in employees where employee.Gender == Gender.Female && employee.Salary > 100000 orderby employee.Salary ascending select employee;

Since only this is following the correct syntax for our question.In option A we are using employee.Gender = Gender.Female which is incorrect it should be "==" .instead of "=".

In option B we are using AND it should be &&

employee.Gender == Gender.Female AND employee.Salary > 100000

In option D we are using some SQL syntax so the correct option is C

4.The answer will be B) results is the list of people's names sorted by longest name to shortest name

Since people is an array of strings that are the names of a list of people.

Hope this will help

Please rate