Computers and Technology

1. this decision control structure enables the program to execute a statement or block of codes if and only if the boolean expression is true
select one:
a. both if-then and switch
b. switch
c. if-then
d. neither if-then and switch
2. the following are the branching statements in java except:
select one:
a. finalize
b. continue
c. return
d. break
3. the if statement enables a program to selectively execute other statements, based on some criteria. these criteria must be
select one:
a. java identifiers
b. integer data type
c. boolean expression
d. string data type
4. the do-while is the other name for while loop.
select one:
true
false
5. using if-statement without curly braces makes the code shorter, easy to read and less prone to errors.
select one:
true
false
6. the else keyword of the if-else statement, is similar to the keyword of the switch-case statement.
select one:
a. break
b. default
c. goto
d. continue
7. the statement causes the program flow to exit from the body of the switch construct.
select one:
a. goto
b. continue
c. break
d. default
8. these are programming blocks that are used to redirect the flow of your program.
select one:
a. expressions
b. decision structure
c. conditions
d. control structures
9. the return keyword is used to return a value based on the return type of the method.
select one:
true
false
10. the loop executes a given statement or block of statements repeatedly as long as the value of the expression is true.
select one:
a. for
b. do-while
c. while
d. all of the choices

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:20, Jadaaaaaaan
Your program will make use of long long int variables for all calculations. note: the use of long long int requires that you have c++11 support. you should have this automatically if you are using a newer version of visual studio. the support is there for gcc as well, but you may need the -std=c++11 or -std=c++0x compiler flag. you first need to read in the total number of seconds. there is no prompt for the read (that is, you just do the cin without using a cout to display a prompt). this is going to seem a little strange when you are running your program in your ide
Answers: 2
image
Computers and Technology, 22.06.2019 14:40, coryowens44
For this assignment you have to write a c program that will take an infix expression as input and display the postfix expression of the input. after converting to the postfix expression, the program should evaluate the expression from the postfix and display the result. what should you submit? write all the code in a single file and upload the .c file. compliance with rules: ucf golden rules apply towards this assignment and submission. assignment rules mentioned in syllabus, are also applied in this submission. the ta and instructor can call any students for explaining any part of the code in order to better assess your authorship and for further clarification if needed. problem: we as humans write math expression in infix notation, e. g. 5 + 2 (the operators are written in-between the operands). in computer's language, however, it is preferred to have the operators on the right side of the operands, ie. 5 2 +. for more complex expressions that include parenthesis and multiple operators, a compiler has to convert the expression into postfix first and then evaluate the resulting postfix write a program that takes an "infix" expression as input, uses stacks to convert it into postfix expression, and finally evaluates it. it must support the following operations: + - / * ^ % ( example infix expression: (7-3)/(2+2) postfix expression: 7 3 2 2 result: rubric: 1) if code does not compile in eustis server: 0. 2) checking the balance of the parenthesis: 2 points 3) incorrect postfix expression per test case: -2 points 4) correct postfix but incorrect evaluation per test case: -i points 5) handling single digit inputs: maximum 11 points 6) handling two-digit inputs: 100 percent (if pass all test cases)
Answers: 3
image
Computers and Technology, 23.06.2019 11:00, jolleyrancher78
What are the possible consequences of computer hacking? what is computer piracy? describe some examples. what are the effects of computer piracy? what are the possible consequences of computer piracy? what is intentional virus setting? describe some examples. what are the effects of intentional virus setting? what are the possible consequences of intentional virus setting? what is invasion of privacy? describe some examples. what are the effects of invasion of privacy? what are the possible consequences of invasion of privacy? what is an acceptable use policy and what is the purpose of the acceptable use policy what is intellectual property and how can you use it?
Answers: 1
image
Computers and Technology, 23.06.2019 17:00, taytay1828
What are the 12 colors of the spectrum called?
Answers: 1
Do you know the correct answer?
1. this decision control structure enables the program to execute a statement or block of codes if a...

Questions in other subjects:

Konu
Chemistry, 22.04.2021 21:00
Konu
Mathematics, 22.04.2021 21:00
Konu
Biology, 22.04.2021 21:00