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

  Draw a diagram 0 dfd for the order system

Draw a decision tree that describes the merchandise inventory management process.

  What type of failure is this and how would it be resolved

A technician accidentally drops screw into the server case and shorts out the motherboard of the server that is running you Oracle database (the database is running at the time of the incident). What type of failure is this and how would it be res..

  Describe basic mechanisms for accessing relational databases

Determine the technical provisions that would be required to ensure data integrity. Evaluate whether the use of a distributed DBMS structure is appropriate.

  Create a relational database design for the data model

Create a Relational Database Design for the data model you developed for where you've added Projects and Supplies - Remember that in a database design you cannot have N:M relationships.

  Dependencies can you infer does not hold over relation s

From the JD, the set of relation schemes SP, PJ, and JS is a lossless-join decomposition of SPJ. Construct an instance of SPJ to illustrate that no two of these schemes su?ce.

  Complete information about eci employees

Your goal is to develop a database that shall allow ECI to keep track of its business and provide the management with the following information regarding the performance of the business: HR Management. Complete information about ECI employees, espe..

  Raw data representation and interpretation

Raw Data Representation and Interpretation

  Explain eer model with data dictionary

Draw an EER model for the requirements identified in Part 1. The EER Model should be accompanied with a data dictionary which includes entity type table, relationship type table and attribute table.

  Limitations of the relational model

Identify and describe three limitations of the relational model and recommend strategies to overcome these limitations.

  How would you define a relational database

How would you define a relational database? What is "normalization" and why do we normalize DBs

  Define an erd for the narrative

Define an ERD for the following narrative. The database should track homes and owners. A home has a unique home identifier, a street address, a city, a state, a zip code, a number of bedrooms, a number of bathrooms, and square feet. A home is eith..

  Analysis of the sales numbers to management

Create a graph or chart that compares the data in a meaningful way, i.e. compare regions by month, compare products by month, etc. Create a spreadsheet formatted to present your analysis of the sales numbers to management.

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