Relational and logical operators to evaluate logical

Assignment Help Database Management System
Reference no: EM13856365

Boolean w6 using Relational and Logical Operators to Evaluate Logical (Boolean) Expression Evaluate the logical (Boolean) expressions in the following exercises and circle the correct answer after you evaluation. For char and String types, use the Unicode collating sequence.

Expression

Result (Circle correct answer)

1.      int num1 = 3,  num2 = 2;

(num1  >  num2)

T          F

2.    double hours = 12.8;

(hours  >  40.2)

T          F

3.    int  funny =  7;

(funny  !  =  1)

T          F

4.    char  letter  =  ' A ';

('a' < letter )

T          F

5.    int  count =  1;

count  < = 4;

T          F

6.    double  y =  -2 . 3;

y  > =  0.0;

T          F

Expressions Use the following values: X = false,  y = false,  z = true

Result (Circle all possible answers)

1.    !  (  x | | y)  | |  z

T     F     short - circuit

2.    x  &&  z  &&  y

T     F     short - circuit

3.    !  x   |  |  (y   |  |  !  z)

T     F     short - circuit

4.    x   | |   (z   &&  (y   | |   x)  )

T     F     short - circuit

5.    true  | |  !  z  &&  y

T     F     short - circuit

6.    !  (x  | |  y)  | |  x

T     F     short - circuit

7.    z   &&   x   &&   y

T     F     short - circuit

8.    !   x   | |   (y   | |   !   z)

T     F     short - circuit

9.    x   | |   (y   &&   (x   | |   z)  )

T     F     short - circuit

10.    false   | |   !   x   &&   y

T     F     short - circuit

 

Expression Use the  following values:

X = false,  y = false,  z = true

T     F    

(Circle all possible answers)

Result (Circle all possible answers)

1.    String  name1 = "Aaron" ;

String  name2 = "aaron" ;

name1. compareTo(name2)= = 0

T           F 

2.    String name1 = "Aaron" ;

String name2 = "Aardvark" ;

namel. compareTo(name2) > 0

T          F

3.    Boolean flag = true;

int a = 2,  b = 5,  c = 10;

(a  *  b  <  =  c  &&  !  flag)

T          F

4.    String  name1  =  "Aaron" ;

String  word  =  "A" ;

name1 .compareTo(word)  <  0

T          F

5.    int  x = 2;

double   y   =   1 . 1;

(x  -  y)  = =  0 . 9

T          F

Reference no: EM13856365

Questions Cloud

How can managers break down silos in organizations : Silos are cohesive divisions or units in organizations that don’t work well with other units and undermine the success of organizations. Silos can be encouraged by managers that pit people or departments against each other. What is a silo and how do ..
Research on situated cognition suggests that : Research on situated cognition suggests that
Responsible for convening major event : You are responsible for convening a major event in which senior officials from several state governments will try to come to an agreement on environmental issues. It is well known that some officials posture so that they appear superior, whereas othe..
Consultant for local landscape supply company : You are working as a consultant for a local landscape supply company. One of the possibilities that has consistently come up in conversation with the owners is making your own mulch instead of continuing to buy mulch in bulk from the distributer.
Relational and logical operators to evaluate logical : Boolean w6 using Relational and Logical Operators to Evaluate Logical (Boolean) Expression Evaluate the logical (Boolean) expressions in the following exercises and circle the correct answer after you evaluation
Performance base on financial measures-customer satisfaction : Assume that you are Lisa Johnson. Evaluate James’ performance based on financial measures, strategy implementation, customer satisfaction, control measures, and people standards. Provide support for your ratings. Put yourself into Lisa Johnson’s shoe..
Default judgment establishes the plaintiffs liability : The plaintiff cannot claim damages once a default judgment is entered against the defendant. A default judgment establishes the plaintiff's liability. A defendant's answer can assert affirmative defenses. The defendant's answer is never revealed to t..
Comprehensive exercise with sales discounts : Junker's Stash started the 2016 accounting period with the balances given in the financial statements model shown below. During 2016 Junker's Stash experienced the following business events:
Describe the factors of attraction : Describe the factors of attraction. What attracts us to one another? Why are we less likely to befriend someone from another culture than someone from a similar background with a similar physical aesthetic?

Reviews

Write a Review

Database Management System Questions & Answers

  Create a database design specification enhanced entity

create a database design specification enhanced entity relationship diagram eerd and relational data model rdm from the

  Provide an relational schemas

Find the names and company names of all employees sorted in ascending order of company name and descending order of employee names of that company.

  Create a database from the data in the sequential file

Write a program to create a database from the data in the sequential file you created

  What benefits could be gained from using a team to develop

describe the advantages and challenges of using a team to develop a microsoft access database. assignment guidelines

  Draw an entity relationship diagram (erd)

Draw an entity relationship diagram (ERD) for the following situation: A company has a number of employees.  Each employee is identified by an Employee_Id.  The company wants to store Employee_Name, Employee_Address, and Employee_BirthDate in the dat..

  Characteristics of relational database management system

Describe the characteristics of a Relational Database Management System (RDBMS).

  Describes the movement of inventory

Create a decision table that describes the movement of inventory and draw a decision tree that describes the merchandise inventory management process.

  Find the year when maximum number of faculty

Find the year when maximum number of faculty were hired - List the number of courses (not offerings) taught in 2006 by faculty rank and department excluding the ones with zero courses taught.

  Describe the importance of using sub queries in a database

1. Extracting and interpreting data can be very valuable to an organization. Describe the importance of using sub queries in a database system. Provide at least two business case scenarios to support your response.

  Develop a data model for the drip drip water company

You have been asked to develop a data model for the Drip Drip Water Company (DDWC). DDWC is the sole supplier of water to the citizens and businesses of the town of Drip Drip.

  Describe a polynomial-time algorithm to test dependency

Describe a polynomial-time algorithm to test dependency-preservation.

  Design a database for an insurance company

Don't forget to underline key attributes for entity sets and include arrowheads indicating the multiplicity of relationships

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd