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

  Calculate confidence and support of rule

Assume that 30% of science students are majoring in biology. Would you consider to be novel with respect to rule? Describe. Calculate confidence and support of rule.

  Identify five different it systems that have affected

identify five different it systems that have affected business in the past few years i.e. business software

  Vulnerability assessment matrix

Create a table of analysis based on the attributes below. Use RAND as a resource for referring to your readings. Name the attributes in one column (behavioral sensitivity). In the second column, identify possible indicators (behavior to be aware o..

  Improving mapreduce performance through data placement

Prepare a paper using IEEE report on Improving MapReduce Performance through Data Placement in Heterogeneous Hadoop Clusters

  Process of creating the entity-relationship diagrams

Create documentation that explains the process of creating the entity-relationship diagrams in the change request relative to this project.

  Convert excel files into an access database

The Morris Arboretum tracks donors to their organization in Microsoft Excel. Access for future Arboretum records. In the following project, you convert Excel files into an Access database for Morris Arboretum

  Write-up thoughts on the tutorial

Write-up thoughts on the tutorial on given tutorials: 2005 Tutorials

  Question accountants will use data flow diagrams dfds to

question accountants will use data flow diagrams dfds to depict the physical flows of data through an ais like document

  Characteristics of relational database management system

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

  Find entity relationship and relational database modelling

You are required to design (using an E-R diagram) an entity-relationship model of the problem, convert the model into a relational model, and assess the normal form of each schema.

  Implement the er model of assignment

You are to design and implement the ER model of assignment-1, including entities/associative entities, relationships and cardinalities, into a Microsoft Access database.

  Aspect of database or enterprise systems

Find one or more current articles (last six months) describing on aspect of database or enterprise systems. Summarize the article(s) and provide your own perspective, and then browse through the other student posts to learn about other related tec..

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