



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
ASU CSE 110 FINAL JAVA 2023 EXAMINATION TEST 2026 FULL QUESTIONS AND ACCURATE SOLUTIONS GRADED A+
Typology: Exams
1 / 6
This page cannot be seen from the preview
Don't miss anything!




⩥ describe an algorithm using flow charts. Answer: Don't stress! Flow charts are almost exactly like normal instructions, but you have to phrase them in ways or depict them in ways that suggest how a computer may process the instructions. ⩥ Binary system. Answer: The binary number system is base 2, using only bits 0 and 1. ⩥ Data Types. Answer: A way to encode some type of data some computers can manipulate it- using binary numbers. ⩥ decimal system. Answer: system of numbers based on 10. basically each numeric position increases by a power of 10. ⩥ Hexadecimal Number System. Answer: a base-16 system, consisting of the 16 symbols 0 through 9 and A through F. ⩥ int. Answer: A native type representing the integers, which are positive whole numbers and their opposites.
⩥ float. Answer: A native type representing rational numbers to limited precision. ⩥ bool. Answer: A variable whose value can be either true or false is of this data type. ⩥ str. Answer: A Python data type that holds a string of characters. ⩥ Expressions. Answer: expressions always evaluate to a value. pieces of code that produce a value. Computers take in expressions and convert them into data the computer can understand,(binary). Allows humans to use less binary and understand code easier. The literal expression 123 is evaluated by Python to the int value one-hundred and twenty-three, which is represented in Binary by the computer as 1110112. An expression is instructions for the computer to follow. The result is a value. ⩥ operators. Answer: Operators are symbols such as +, - , × and / that represent operations such as addition, subtraction, multiplication, and division. Operators operate on operands. ⩥ compound expressions. Answer: Compound expressions are expressions composed of sub-expressions.A compound expression is a sequence of instructions for the computer to follow. The result is a value. Compound expressions are always evaluated according to the order of operations.
⩥ string(str) operators. Answer: concatenation (+) for adding strings together. ⩥ relational operators. Answer: Used to compare two values. Operators include =,<,>,<=,>=,<>, !(not) ⩥ logical operators. Answer: logical operators are used to combine conditional statements. & [and] || [or] ! [not] ⩥ Sequencing. Answer: Sequence is a fundamental concept in programming - the computer will execute instructions only in the order or sequence they are listed from top to bottom. ⩥ output. Answer: the result of something, like a function or equation. use a print string and input function to get an outlet on the console ⩥ function. Answer: A function is a name that refers to a sequence of instructions in memory. Those instructions are executed when the function is called by its name. ⩥ Variable Scope. Answer: dictates what portions of the code can "see" or use a variable, typically derived from where the variable was first created. (See Global v. Local)
⩥ function call. Answer: The piece of code that you add to a program to indicate that the program should run the code inside a function at a certain time. ⩥ decision logic. Answer: Conditionals: if ______________ then
elif.... then.... else.... fi ⩥ Decisions. Answer: one fo three programming structures,(including iteration and sequence). It is important to understand that decision structures are still just instructions, and they can be used anywhere any other instruction can be used (e.g. inside of functions, before and after other decisions, and even in the body of another decision). ⩥ decisions pt 2. Answer: The condition for a decision is always an expression that evaluates to a boolean value: True or False. If the conditional expression evaluates to True, then the instructions that follow it will be executed. If the conditional expression evaluates to False, then the instructions that follow it will be skipped.