A selection with a single action

Assignment Help Basic Computer Science
Reference no: EM13738028

Question 1.1. (TCO 4) Which pseudocode keyword is not included in a selection with a single action? (Points : 2)
If
Then
Else
End If


Question 2.2. (TCO 4) The expression amount < 10 is a(n) _____ expression. (Points : 2)
arithmetic
logical
Boolean
unary


Question 3.3. (TCO 4) For the || (or) operator to be false, _____. (Points : 2)
both conditions must be false
both conditions must be true
either condition can be false
either condition can be true


Question 4.4. (TCO 4) Which Boolean expression would be used to print a list of all books that have either less than 30 pages or more than 100 pages? (Points : 2)
pages < 30 && pages > 100
pages < 30 || pages > 100
pages > 30 && pages < 100
pages > 30 || pages < 100


Question 5.5. (TCO 4) Evaluate each of the following conditions (as being true or false). Assume A
= 3, B = 6, C = 3, and D = 18. (A=C) AND (C=D) (Points : 2)
True 
False 


Question 6.6. (TCO 4) Evaluate each of the following conditions (as being true or false). Assume A
= 3, B = 10, and Z = "five".
A * 2 > B / 2 OR Z > "two" (Points : 2)
True 
False 


Question 7.7. (TCOs 3 and 4) Given the following If structure, assume B = 100. Which will be the output?
(Points : 2)
You got an A
Missed It!
100
B


Question 8.8.
(TCOs 3 and 8) Which will be displayed after the following process is completed?

Start
Set x = 1
Set y = 1 
Set z = 1
If ((x = 1) AND (y = 1) AND (z = 1)) then
Set ans = "T"
Else
Set ans = "F"
End if
Display ans 
Stop

(Points : 2)
True 
False 


Question 9.9. (TCO 8) Which will be displayed after the following process is completed?

Start
Set w = 2
Set x = 1
Set y = 3 
Set z = 4
If ((w <> 0 OR x <> 1) OR (y = 2 AND z <> 3)) then
Set ans = "True"
Else
Set ans = "False"
End if
Display ans 
Stop (Points : 2)
True 
False 


Question 10.10. (TCO 8) Which will be displayed after the following process is completed?
Start
Set code = "Z"
Set dept = 40
If (code = "C" OR (dept >= 10 AND dept <= 30) )then
Set message = "valid department"
Else
Set message = "invalid department"
End if
Display message
Stop (Points : 2)
valid department
invalid department 

Reference no: EM13738028

Questions Cloud

Various roles and responsibilities of a case manager : Discuss the various roles and responsibilities of a case manager. Explain the importance of being able to identify problems and causes of behavior using theoretical models. Include at least one theoretical cause of problem behavior.
Determine the maximize effectiveness at the least cost : Determine the following before deciding a prescription: (a) maximize effectiveness at the least cost; (b) maximize effectiveness at a fixed cost of $10,000; (c) achieve a fixed-effectiveness level of 6,000 units of service at a fixed cost of $20,0..
Various types of database management systems : A ) Write 2-3 pages on Database Management Systems (DBMS) covering the following: Various types of database management systems Commercial RDBMS in the market today.
Write a paper using the retail pictures : The goal is to write a paper using the retail pictures and refrence them by writing about retail trends and strategies
A selection with a single action : Question 1.1. (TCO 4) Which pseudocode keyword is not included in a selection with a single action? (Points : 2)IfThenElseEnd If
Who contributed more to the development of greek science : Who contributed more to the development of Greek science, Aristotle or Plato? Be sure to present a coherent argument with illustrations.
Appropriate individualized education goals : Choose a student with traumatic brain injury. Design and evaluate two appropriate individualized education goals in Math and English Language Arts that are supported by research-based instructional strategies to meet the needs of the student.
Use of authentication types techniques impact security : Explain how the use of authentication types techniques impact security
Big-five personality dimensions : Identify a leader with whom you have had many opportunities to interact and have had many opportunities to observe. This leader may be a good or bad example of leadership; however, you must choose someone about whom you can write intelligently whi..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Arrests-convictions resulting from someone hacking in bank

Search online to discover and post the article which reports any particular examples of arrests/convictions resulting from someone hacking into the bank.

  Write a program that displays the number of students

Write a program that displays the number of students that can still enroll in a given class. Design your solution using a multidimensional array. The first column can hold the computer course number.

  Compare the present value of economic profit

1. P15(d): Compare the present value of economic profit in each of the next three years and the loss of $50,000 in the third year using 15% as the discount rate.2. The spreadsheet problem (b): Calculate a mean, .... to statistically describe the data..

  How many other machines is each machine equivalent to

Every Turing machine is equivalent to some other machine in our enumeration. Why? How many other machines is each machine equivalent to? How many times is each Turing-computable function represented in our enumeration? Be sure to justify your answ..

  Create a 1-d array to hold a set of exam scores

Create a 1-D Array to hold a set of exam scores. Write a program using functions to do the following task.

  Compare and contrast twisted pair cable

Compare and contrast twisted pair cable, coaxial cable, fiber-optics, and wireless for this application. You should create a table or flow chart which would facilitate choosing between these options depending on circumstances.

  Modern systems have largely eliminated these delays due to

the quality of the user experience is very important to the success of an application. in the early days of computing

  What is the name of the keyboard

research the Internet and find out all that you can about the keyboard layout that you are using. Then write me a one page essay on what you found.

  Design a scheme to prevent messages from being modified

Random J. Protocol-Designer has been told to design a scheme to prevent messages from being modified by an intruder.

  What does cissp stand for

What does CISSP stand for? Using the internet, find out what continuing education is required for the holder of a CISSP t remain current and in good standing.

  Make report to print gross earnings and tax payable

Your report is to print the gross earnings, tax payable, medical levy and net earnings for each employee. At the end of the report, print the total gross earnings, total tax, total medical levy and total net earnings.

  Research paper: the role of the system analyst

Research Paper: the role of the system analyst and how it impact goals and objective of the organization. This paper should a 10 page paper including references and content. It be written in an APA format.

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