Question

In: Computer Science

Files that are read by the computer are called ____ files. a. report b. serial c....

Files that are read by the computer are called ____ files.

a.

report

b.

serial

c.

input

d.

storage

The database for a pet supply company includes the following table, named tblCollar, that contains product data for pet collars. The ItemDesc and Color fields contain text. The ItemNum, Price, and Quantity fields contain numbers.

ItemNum

ItemDesc

Color

Price

Quantity

2358

leather studded collar

black

30.00

35

2693

leather collar

brown

25.00

25

3547

striped collar

red

20.00

75

3855

striped collar

blue

15.00

42

3764

striped collar

green

15.00

48

5782

solid collar

pink

12.00

36

5785

solid collar

red

12.00

10

5787

solid collar

blue

10.00

15

Which of the following statements would select the ItemDesc and Price fields from tblCollar for all records whose ItemDesc field begins with the word “leather” followed by zero or more characters?

a. SELECT ItemDesk FROM tblCollar

     WHERE ItemDesc LIKE 'leather %'

b. GET ItemDesc, Price FROM tblCollar

    WHERE ItemDesc LIKE 'leather %'

c. SELECT ItemDesc, Price FROM tblCollar

    WHERE ItemDesc LIKE 'leather %'

d. SELECT ItemDesc, Price FROM tblCollar

    WHERE ItemDesc LIKE leather %

The ____ statement is used for exception handling in a procedure.

a.

aggregate

b.

Try…Catch

c.

ORDER BY

d.

LINQ

A(n)____ function returns a single value from a group of values.

a.

WHERE

b.

Calculate

c.

Aggregate

d.

Parameter

Visual Basic’s auto-implemented properties feature enables you to ____.

a.

add validation code to the set block

b.

make the property ReadOnly

c.

make the property WriteOnly

d.

specify the property of a class in one line of code

are the actions to which an object can respond.

a.

Methods

b.

Behaviors

c.

Events

d.

Attributes

Solutions

Expert Solution

  1. Files that are read by the computer are called ____ files.

    a.

    report

    b.

    serial

    c.

    input

    d.

    storage

    Answer: c. input
  2. The database for a pet supply company includes the following table, named tblCollar, that contains product data for pet collars. The ItemDesc and Color fields contain text. The ItemNum, Price, and Quantity fields contain numbers.

    ItemNum

    ItemDesc

    Color

    Price

    Quantity

    2358

    leather studded collar

    black

    30.00

    35

    2693

    leather collar

    brown

    25.00

    25

    3547

    striped collar

    red

    20.00

    75

    3855

    striped collar

    blue

    15.00

    42

    3764

    striped collar

    green

    15.00

    48

    5782

    solid collar

    pink

    12.00

    36

    5785

    solid collar

    red

    12.00

    10

    5787

    solid collar

    blue

    10.00

    15

    Which of the following statements would select the ItemDesc and Price fields from tblCollar for all records whose ItemDesc field begins with the word “leather” followed by zero or more characters?

    a. SELECT ItemDesk FROM tblCollar

         WHERE ItemDesc LIKE 'leather %'

    b. GET ItemDesc, Price FROM tblCollar

        WHERE ItemDesc LIKE 'leather %'

    c. SELECT ItemDesc, Price FROM tblCollar

        WHERE ItemDesc LIKE 'leather %'

    d. SELECT ItemDesc, Price FROM tblCollar

        WHERE ItemDesc LIKE leather %

    Answer:
    c. SELECT ItemDesc, Price FROM tblCollar

        WHERE ItemDesc LIKE 'leather %'

    Explanation: Here we have to print ItemDesc and Price from tblCollar and ItemDesc should start with leather and after that it may have zero or more occurences of other characters. As the ItemDesc field is of type - text, hence the word should be within quotes and the % as in 'leather%' determines zero or more occurences of character after the characters 'leather'.
  3. The ____ statement is used for exception handling in a procedure.

    a.

    aggregate

    b.

    Try…Catch

    c.

    ORDER BY

    d.

    LINQ

    Answer: b. Try...Catch (Explanation: In a try catch statement, the statements you want to be executed are put inside the try block. If the procedure fails to execute those statement then the exception is thrown to the catch block. Inside the catch block, you may mention a statement which prints the error message or do some other operation.
  4. A(n)____ function returns a single value from a group of values.

    a.

    WHERE

    b.

    Calculate

    c.

    Aggregate

    d.

    Parameter

    Answer: c. Aggregate (Explanation: Aggregate functions return a single value, calculated from values in a column. They take a set of values as their argument. Aggregate functions are also called set functions. A basic aggregate function returns a single value by aggregating mulitple rows of data.)
  5. Visual Basic’s auto-implemented properties feature enables you to ____.

    a.

    add validation code to the set block

    b.

    make the property ReadOnly

    c.

    make the property WriteOnly

    d.

    specify the property of a class in one line of code

    Answer: d. specify the property of a class in one line of code
  6. ______ are the actions to which an object can respond.

    a.

    Methods

    b.

    Behaviors

    c.

    Events

    d.

    Attributes

    Answer: c. Events

Related Solutions

Secured bonds are: Question 35 options: A) also called mortgage bonds. B) also called serial bonds....
Secured bonds are: Question 35 options: A) also called mortgage bonds. B) also called serial bonds. C) bonds that give the bondholder the right to take specified assets of the issuer in the event the issuer fails to pay interest or principal. D) also called mortgage bonds and bonds that give the bondholder the right to take specified assets of the issuer in the event the issuer fails to pay interest or principal. If, as part of the accounting for...
In C++ Create a class called Rational (separate the files as shown in the chapter) for...
In C++ Create a class called Rational (separate the files as shown in the chapter) for performing arithmetic with fractions. Write a program to test your class. Use integer variables to represent the private data of the class-the numerator and the denominator. Provide a constructor that enables an object of this class to be initialized when it's declared. The constructor should contain default values in case no initializers are provided and should store the fraction in reduced form. For example,...
Objectives:  Write classes in C++  Use dynamic arrays  Write and read from files...
Objectives:  Write classes in C++  Use dynamic arrays  Write and read from files 1. WriteaclassGradeBookcontainingthefollowing: Private attributes: - courseName: a string representing the name of the course. - nbOfStudents: an integer representing the number of students enrolled in the course. The number of students is greater than or equal to 5. - grades: a double dimensional array of integers representing the grades of Test1, Test2 and Final of every student. It should be a dynamic array. Public...
I am Writing a C-Program to read and write files. but none of my code is...
I am Writing a C-Program to read and write files. but none of my code is working like it should be. Please fix all code and supply output response. Please try to use existing code and code in comments. But if needed change any code that needs to be changed. Thank you in advance //agelink.c //maintains list of agents //uses linked list #include <stdio.h> #include <stdlib.h> #define TRUE 1 void listall(void); void newname(void); void rfile(void); void wfile(void); struct personnel {...
Working with Files in C++. Create the following  program called payroll.cpp.  Note that the file you...
Working with Files in C++. Create the following  program called payroll.cpp.  Note that the file you read must be created before you run this program.  The output file will be created automatically by the program.  You can save the input file in the same directory as your payroll.cpp file by using Add New Item, Text File.   // File:  Payroll.cpp // Purpose:  Read data from a file and write out a payroll // Programmer:  (your name and section) #include <cstdlib>...
Three positive integers (a, b, c) with a<b<c are called a Pythagorean triple if the sum...
Three positive integers (a, b, c) with a<b<c are called a Pythagorean triple if the sum of the square of a and the square of b is equal to the square of c. Write a program that prints all Pythagorean triples (one in a line) with a, b, and c all smaller than 1000, as well the total number of such triples in the end. Arrays are not allowed to appear in your code. Hint: user nested loops (Can you...
Write a C++ app to read both files, store them into parallel vectors, sort the list...
Write a C++ app to read both files, store them into parallel vectors, sort the list of people in alphabetical order, display the new sorted list of names with their corresponding descriptions. Use the Bubble Sort strategy to rearrange the vector(s). File 1: Marilyn Monroe Abraham Lincoln Nelson Mandela John F. Kennedy Martin Luther King Queen Elizabeth II Winston Churchill Donald Trump Bill Gates Muhammad Ali Mahatma Gandhi Margaret Thatcher Mother Teresa Christopher Columbus Charles Darwin Elvis Presley Albert Einstein...
IN C++ PLEASE. Use ONLY: exception handling, read and write files, arrays, vectors, functions, headers and...
IN C++ PLEASE. Use ONLY: exception handling, read and write files, arrays, vectors, functions, headers and other files, loops, conditionals, data types, assignment.   Calculating fuel economy. This program will use exceptions and stream errors to make a robust application that gets the number of miles and gallons each time the user fuels their car. It will put those values into vectors. Once the user wants to quit enter values, it will calculate the fuel economy. Create GetMiles() function that returns...
Write code in C language in the Arduino IDE ADC data using Serial plotter Serial plot...
Write code in C language in the Arduino IDE ADC data using Serial plotter Serial plot : raw data, delay data (int) Purpose: Delay Block (**Using Class**) Input : u(t) Output : o(t)=u(t-h) sample time=0.02 Delay (h) = 0.4
Language C++ Student-Report Card Generator: create a class called student and class called course. student class...
Language C++ Student-Report Card Generator: create a class called student and class called course. student class this class should contain the following private data types: - name (string) - id number (string) - email (s) - phone number (string) - number of courses (int) - a dynamic array of course objects. the user will specify how many courses are there in the array. the following are public members of the student class: - default constructor (in this constructor, prompt the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT