text
stringlengths
1
3.55k
source
stringlengths
24
207
emb
listlengths
1.02k
1.02k
the boolean values true or false. table 7. 4 lists the relational operator symbols that are used in the vast majority of hlls. operator name example expression result < less than 1 < 2 true > greater than 1 > 2 false < = less than or equal to 1 < = 2 true > = greater than or equal to 1 > = 2 false table 7. 4 the c # re...
openstax_introduction_to_computer_science_-_web
[ 0.005215994082391262, -0.01635860837996006, 0.03515521064400673, 0.004850337747484446, -0.01683645136654377, -0.03597978875041008, 0.03157508000731468, 0.011272822506725788, -0.025076808407902718, 0.05098260939121246, 0.019630249589681625, 0.027682872489094734, -0.009395376779139042, -0.01...
7. 2 • programming language constructs 323 operator name example expression result = = equal to 1 = = 2 false! = not equal to 1! = 2 true table 7. 4 the c # relational operators logical operators the logical operators are used to connect two or more expressions. they evaluate the entire expression to the boolean values...
openstax_introduction_to_computer_science_-_web
[ -0.00011670771345961839, -0.03753184899687767, 0.028867291286587715, -0.015062056481838226, -0.047076936811208725, -0.04758209362626076, 0.008717276155948639, 0.0034032422117888927, -0.03870091214776039, 0.07454223930835724, 0.04676270857453346, 0.03375929221510887, 0.011960302479565144, -...
to improve code readability. this is a best practice in programming and a prospective job applicant may not get a job without demonstrating documentation skills. documentation is carried out by using a structure called a comment, a container used to hold documentation in code. a comment begins with a defined symbol or ...
openstax_introduction_to_computer_science_-_web
[ -0.01904773712158203, -0.04246378690004349, 0.007403664290904999, -0.021531548351049423, -0.023033373057842255, -0.01054645236581564, 0.05576334148645401, 0.014071179553866386, -0.02263934537768364, 0.07437949627637863, 0.021784601733088493, 0.03730516880750656, -0.011827311478555202, -0.0...
result of 16. parentheses may be used to modify the order of precedence in statements. expressions within parentheses are always evaluated first. if we were to rewrite the example :
openstax_introduction_to_computer_science_-_web
[ -0.02367980219423771, -0.0493958443403244, -0.0006891812081448734, -0.03168743848800659, -0.04280079901218414, -0.024014338850975037, -0.025659268721938133, 0.024445723742246628, -0.0462808720767498, 0.044179726392030716, 0.014727489091455936, 0.02430325374007225, -0.02224157005548477, -0....
7. 2 • programming language constructs 325 int a = ( b + c ) * d ; we would come up with the result of 20. table 7. 8 shows the results of various expressions when following the rules of precedence and applying parentheses to them. expression value parenthesized expression value 5 + 2 * 4 13 ( 5 + 2 ) * 4 28 10 / 5 - 3...
openstax_introduction_to_computer_science_-_web
[ -0.016825230792164803, -0.008604886941611767, 0.03387049213051796, -0.022802775725722313, -0.028172506019473076, -0.032532379031181335, 0.012564939446747303, -0.02414395473897457, -0.03621181100606918, 0.0631909891963005, 0.028068188577890396, 0.0329606756567955, -0.0013171564787626266, -0...
which, or if, the statements of a program are executed is called flow of control. by default, program statements execute in sequential order from an established starting point ; however, the flow of control can be modified. this is necessary in order to have the ability to model the situations of the real world that ou...
openstax_introduction_to_computer_science_-_web
[ -0.03150976821780205, -0.021039120852947235, 0.01824246533215046, -0.01512458361685276, -0.014955136924982071, -0.01688271574676037, 0.008248351514339447, -0.01061601098626852, -0.015435443259775639, 0.052340563386678696, 0.023745408281683922, 0.03906306251883507, 0.013918359763920307, -0....
expressions. conditional expressions sometimes called a boolean expression, a conditional expression evaluates the boolean values of true or false. based on a boolean result, a computer may decide which path of execution to take. some examples of conditional expressions follow : • value1 = = value2 • value1! = value2 •...
openstax_introduction_to_computer_science_-_web
[ -0.008436255156993866, -0.002834080485627055, 0.01482145395129919, -0.031274985522031784, -0.019316604360938072, -0.04513729363679886, 0.054341066628694534, 0.007120717782527208, -0.026005569845438004, 0.047295570373535156, 0.03922172263264656, 0.03200128674507141, 0.028936922550201416, -0...
7. 2 • programming language constructs 327 figure 7. 12 this unified modeling language ( uml ) activity diagram represents a selection statement that is a one - way branch. ( attribution : copyright rice university, openstax, under cc by 4. 0 license ) the only type of conditional statement that a language needs is the...
openstax_introduction_to_computer_science_-_web
[ -0.011684276163578033, -0.010784555226564407, -0.013437624089419842, -0.018720772117376328, -0.011201160959899426, -0.027339255437254906, 0.02038406953215599, -0.011644517071545124, -0.02558434009552002, 0.06657416373491287, 0.023796236142516136, 0.0057985903695225716, 0.021378591656684875, ...
system. out. println ( " you need to work harder. " ) ; } many programming languages have employed an additional selection statement for times when decisions result in three or more possible pathways. this is known as a switch or case statement, and it can be much more readable and maintainable than many if statements ...
openstax_introduction_to_computer_science_-_web
[ 0.004418530967086554, -0.025271553546190262, 0.0177579615265131, -0.00889069028198719, 0.004513509571552277, -0.04036092013120651, -0.023805173113942146, -0.002433834131807089, -0.022615326568484306, 0.05230407044291496, 0.022773517295718193, 0.018290922045707703, 0.0242480356246233, -0.04...
that sets the condition at the entry or exit of a loop for continued iteration, is at the exit after the code block. a loop such as this is guaranteed to execute at least
openstax_introduction_to_computer_science_-_web
[ -0.014082531444728374, -0.0006903597386553884, 0.01128152571618557, 0.0007431158446706831, 0.023145711049437523, -0.042213279753923416, -0.015174956992268562, 0.016567548736929893, 0.0020312536507844925, 0.057283204048871994, 0.01943167857825756, 0.02374495379626751, -0.016978496685624123, ...
7. 2 • programming language constructs 329 one time. the sentinel decides if the loop runs again. it is useful to guarantee at least one repetition of a loop. as with selection statements, most languages have a variety of structures to choose from and just like in selection, there is only one that is necessary to do an...
openstax_introduction_to_computer_science_-_web
[ -0.004511699546128511, -0.001872186898253858, 0.02054513804614544, -0.00911575835198164, -0.013175352476537228, -0.040820393711328506, -0.040343333035707474, -0.006573371589183807, -0.0058183264918625355, 0.04676072672009468, 0.03902878239750862, 0.02054636925458908, -0.005465181078761816, ...
count + 1 ; } 330 7 • high - level programming languages access for free at openstax. org in most modern languages a bottom tested loop is known as a do … while loop as highlighted in figure 7. 15. it ’ s syntax in c # is as follows : boolean happy = true ; boolean raining = false ; do { console. out ( " i am smiling "...
openstax_introduction_to_computer_science_-_web
[ -0.012441848404705524, 0.00109004823025316, 0.01422159094363451, -0.010149993002414703, -0.03526013717055321, -0.04799447953701019, -0.02725210227072239, -0.00769037427380681, 0.005449467804282904, 0.060590632259845734, 0.03568679839372635, 0.04793175682425499, -0.008645313791930676, -0.01...
7. 2 • programming language constructs 331 for ( $ count = 1 ; $ count < = 5 ; $ count = $ count + 1 ) { print ( " the count is : " ", $ count ) ; } the rules are as follows : inside the parentheses, the first expression is executed only once at the first entrance to the loop. the second expression is the sentinel and ...
openstax_introduction_to_computer_science_-_web
[ -0.011980270966887474, -0.0014570027124136686, -0.018710317090153694, -0.01927229017019272, -0.01843832992017269, -0.01583462953567505, -0.022443637251853943, 0.008795320987701416, -0.008366172201931477, 0.05086807906627655, 0.04713296890258789, 0.03838855400681496, -0.0048575918190181255, ...
, and call upon them without the finished code. we can define the tasks as functions and build the stub of them without all the details. then we can call them from our main flow of control and have them respond to the call. maintainability if we had to change the way we pay our employees, perhaps due to a change in ded...
openstax_introduction_to_computer_science_-_web
[ -0.00227731722407043, 0.0032957373186945915, -0.02269773744046688, -0.02206995338201523, -0.024655530229210854, -0.011634573340415955, -0.01718788966536522, -0.0010686988243833184, -0.009064963087439537, 0.03784370422363281, 0.04963774234056473, 0.025729473680257797, 0.007184591609984636, ...
a keyword in java that is called an access modifier ; it denotes where in code this method may be accessed from. in this case, it is available from anywhere in the program code. the keyword double indicates that this method will return a value of that data type to the place where the method was called. in this case, we...
openstax_introduction_to_computer_science_-_web
[ 0.022280633449554443, -0.001574052730575204, -0.0011214042315259576, -0.002965581603348255, -0.05142107233405113, -0.008561479859054089, 0.009787802584469318, 0.014099689200520515, -0.03549126535654068, 0.023639705032110214, 0.040981318801641464, 0.028657248243689537, -0.005070580635219812, ...
value and the copy is passed as an argument to the parameter. when it encounters the parameter, the value is assigned and the values in the original variable cannot be affected by any changes which may occur inside the function. on the other hand, pass by reference is employed in java to pass a complex data type, meani...
openstax_introduction_to_computer_science_-_web
[ 0.010524509474635124, -0.012368620373308659, 0.04059091582894325, -0.024253491312265396, -0.03403203934431076, -0.027639079838991165, 0.010856075212359428, 0.013383876532316208, -0.030023328959941864, 0.028861964121460915, 0.06743539124727249, 0.022069482132792473, 0.02556551992893219, -0....
7. 2 • programming language constructs 333 system. out. println ( empname + " is being paid " + emppay ) ; return emppay ; } in the example, empbasepay and emphours are passed by value of primitive data types. on the other hand, empname is passed by reference because string is a complex data type. call stack the call s...
openstax_introduction_to_computer_science_-_web
[ 0.001486817724071443, -0.037777818739414215, 0.011251191608607769, -0.0030672643333673477, -0.011438563466072083, -0.031916990876197815, -0.025253091007471085, -0.013705260120332241, -0.00019610447634477168, 0.008962306194007397, 0.03487110137939453, 0.041694819927215576, 0.02484545297920704...
control will revert to the function1 stack frame. looking at function1, we see that the parameters come into existence when the function is pushed onto the stack and disappear when the function is popped from the stack. the same is true of any local variables declared in the function. this is an illustration of the sco...
openstax_introduction_to_computer_science_-_web
[ 0.008482584729790688, -0.010560224764049053, 0.04331854730844498, -0.011033507063984871, -0.012265045195817947, -0.008355114609003067, -0.037148647010326385, 0.012508292682468891, -0.014386427588760853, 0.0632697194814682, 0.04271562024950981, -0.011319122277200222, -0.014600886963307858, ...
count = count - 1 ; countdown ( count ) ; } well - structured programs a major challenge with writing well - structured programs is the complexity of today ’ s systems, especially when they are influenced by so many programmers. a common dilemma is how to divide and conquer the task of writing programs when the effort ...
openstax_introduction_to_computer_science_-_web
[ 0.04708312451839447, -0.013171166181564331, -0.015715187415480614, -0.02553396485745907, 0.008519172668457031, -0.005215915385633707, -0.007617826107889414, -0.025283528491854668, -0.009828412905335426, 0.04940246045589447, 0.01489220466464758, 0.019043641164898872, 0.002117034513503313, -...
7. 2 • programming language constructs 335 figure 7. 18 this diagram shows a program made up of multiple modules, each of which contains multiple functions. ( attribution : copyright rice university, openstax, under cc by 4. 0 license ) this allows us to engage in information hiding : the hiding of bits and bytes of im...
openstax_introduction_to_computer_science_-_web
[ -0.03060953877866268, -0.009476239793002605, 0.004240559414029121, 0.006946099456399679, -0.004412591923028231, -0.05012989416718483, -0.023357974365353584, -0.019951123744249344, -0.0025599291548132896, 0.07441803067922592, 0.038510777056217194, 0.04183582961559296, 0.013613020069897175, ...
program and the hll. all hlls differ in the way that these are handled. the following are some examples of different output statements in various hlls : • java : system. out. println ( " hello " ) ; • c # : console. writeln ( " hello " ) ; • c : printf ( " hello " ) ; • c + + : cout < < " hello " ; • javascript : alert...
openstax_introduction_to_computer_science_-_web
[ -0.009762507863342762, 0.0026868584100157022, 0.037615980952978134, -0.018430626019835472, -0.02407968044281006, -0.03612998500466347, -0.020407583564519882, 0.005531967151910067, 0.0018504760228097439, 0.051279060542583466, 0.007194354198873043, 0.0671641081571579, 0.0005846485728397965, ...
7. 3 alternative programming models learning objectives by the end of this section, you will be able to : • discuss characteristics of functional programming • explain characteristics of declarative programming • distinguish the characteristics of object - oriented programming • explain hll constructs used to support c...
openstax_introduction_to_computer_science_-_web
[ -0.0005281834164634347, 0.003413614584133029, 0.013920425437390804, -0.011854767799377441, -0.04515611380338669, 0.03230331093072891, -0.01678837090730667, -0.009367527440190315, -0.011037133634090424, 0.04486715793609619, 0.013489257544279099, 0.006093943025916815, -0.023613115772604942, ...
7. 3 • alternative programming models 337 figure 7. 20 functional programming languages can be differentiated by their paradigms. ( attribution : copyright rice university, openstax, under cc by 4. 0 license ) functional programming concepts the functional programming model ’ s key concept is that programs are construc...
openstax_introduction_to_computer_science_-_web
[ -0.03335751220583916, -0.016068680211901665, -0.004372898489236832, 0.019755903631448746, -0.003426535287871957, -0.005932180676609278, -0.029108794406056404, -0.008305659517645836, -0.02880501188337803, 0.05086883530020714, 0.03236815705895424, 0.016321353614330292, 0.012556769885122776, ...
move data through the functions, effective implementation is difficult ( but not impossible ), and new arrays must be created when data in an element are changed. object - oriented programming a number of imperative languages are considered object oriented, and most modern hlls support this paradigm to some degree. its...
openstax_introduction_to_computer_science_-_web
[ -0.019628295674920082, 0.0029631387442350388, 0.0004615878569893539, -0.07075180113315582, -0.00472683971747756, 0.002080869162455201, -0.00983955804258585, -0.0075887166894972324, 0.0233159139752388, 0.06690556555986404, 0.03269417583942413, 0.005990167148411274, 0.0018081581220030785, -0...
##ifiers. object - oriented languages often have constructors, and some have destructors which support encapsulation. a constructor is a specialized method that is called upon to instantiate the object. very often, constructors have parameters which can be used to initialize the values of the attributes with arguments ...
openstax_introduction_to_computer_science_-_web
[ -0.01834161952137947, -0.025821607559919357, 0.017200972884893417, -0.05566759407520294, -0.011820279061794281, -0.019128723070025444, 0.012086390517652035, 0.006865945644676685, 0.002467445796355605, 0.03298873454332352, 0.03932534530758858, -0.005903654731810093, 0.04604704678058624, -0....
rectangle ( double length, double width ) {..... } / / methods public double getlength ( ) { return length ; }..... public double getarea ( ) {
openstax_introduction_to_computer_science_-_web
[ 0.012515374459326267, -0.01840204745531082, 0.01559465005993843, -0.021642040461301804, -0.040365152060985565, 0.0027001157868653536, 0.03732991963624954, 0.030016683042049408, -0.0112256845459342, 0.06054297834634781, 0.06663286685943604, 0.0017101923003792763, -0.054533395916223526, 0.00...
7. 3 • alternative programming models 339..... } } the class itself is public, granting access to it and its contents. the attributes are all private, not part of the public interface. in this context, the designer has decided not to allow direct access to these attributes from outside. instead, they are accessed by pu...
openstax_introduction_to_computer_science_-_web
[ -0.02323644608259201, -0.004383648745715618, 0.00922025740146637, -0.03728498890995979, 0.01265613455325365, -0.011074530892074108, 0.0038786432705819607, -0.03702815622091293, 0.007882548496127129, 0.04823153093457222, 0.02189071662724018, 0.0008106402237899601, 0.03281818702816963, -0.02...
block for implementation. a class can use one or more interfaces. the following is a java class definition that makes use of an interface : public class rectangle implements geometrymath { } the interface acts as a contract with the programmer. if the programmer declares that a class implements an interface, it is requ...
openstax_introduction_to_computer_science_-_web
[ -0.02381596341729164, 0.009667089208960533, -0.024571239948272705, -0.04442364722490311, -0.003528722794726491, 0.00009258867066819221, 0.016554174944758415, -0.0026623958256095648, 0.021136008203029633, 0.06255702674388885, 0.007521620020270348, 0.02532576024532318, -0.02902761846780777, ...
object orientation. oop advantages : • strong abstraction with the ability to reuse code efficiently • improved software development productivity and maintainability • faster software development, thus lower cost of development as it is very efficient for parallel development • adapts well to parallelism, where program...
openstax_introduction_to_computer_science_-_web
[ -0.026900867000222206, -0.019446279853582382, -0.02842083014547825, -0.039681628346443176, 0.009368518367409706, -0.012964227236807346, -0.025407135486602783, -0.047701381146907806, 0.020461808890104294, 0.060502789914608, 0.016484061256051064, -0.006701080594211817, -0.0038173245266079903, ...
7. 3 • alternative programming models 341 conditions are all about timing because anomalies can occur when we do not know which process will finish first or which part of the program is currently executing. we can exert control over when a process pauses or ends in the run - until - blocked scenario where some mechanis...
openstax_introduction_to_computer_science_-_web
[ 0.0004339292645454407, -0.009617437608540058, -0.0056572589091956615, 0.01611659675836563, 0.03225911036133766, -0.033358603715896606, 0.005436856299638748, -0.030142633244395256, -0.029278390109539032, 0.07226859033107758, -0.010856132954359055, -0.0031380304135382175, -0.014022969640791416...
since the goal is to avoid negative race conditions, we do not want to over - synchronize because it lessens the degree of parallelism that we need for performance. implementing synchronization synchronization must be carefully implemented to avoid situations that synchronization itself can cause : • starvation : when ...
openstax_introduction_to_computer_science_-_web
[ 0.0045542167499661446, 0.012706933543086052, -0.015678349882364273, 0.019026821479201317, 0.02756676822900772, -0.04973019286990166, 0.0072652418166399, -0.010145233012735844, -0.004129021894186735, 0.057432662695646286, 0.006758859846740961, -0.012313995510339737, -0.005840371362864971, -...
a synchronized method. this keyword refers to the current object, so this code is also synchronizing on the object which owns the code block. this usage provides much more granularity and efficient execution times. another powerful tool for synchronization in java is to declare a whole class as a thread, meaning the wh...
openstax_introduction_to_computer_science_-_web
[ -0.01334221288561821, 0.027608562260866165, -0.04377913102507591, -0.026454512029886246, 0.02681785821914673, -0.006948515772819519, 0.0008048515301197767, -0.05156249925494194, 0.03135012835264206, 0.050216738134622574, 0.008094461634755135, -0.003013380104675889, 0.0037897098809480667, -...
and maintainability.
openstax_introduction_to_computer_science_-_web
[ -0.0036993317771703005, 0.006374259479343891, 0.01159527339041233, 0.014958004467189312, -0.03761014714837074, 0.03450595587491989, -0.032116182148456573, -0.027000751346349716, 0.05325368791818619, 0.017497289925813675, -0.002997060539200902, -0.013419214636087418, -0.01751592755317688, -...
7. 3 • alternative programming models 343 oop also adapts well to parallelism, which is another paradigm to consider. a need for speed can require the selection of an hll that supports concurrency and / or parallelism well. it may be the case that the application we build requires both. we have choices, the most popula...
openstax_introduction_to_computer_science_-_web
[ 0.005381750408560038, 0.0008239952730946243, -0.002089482033625245, -0.009664133191108704, -0.03825647383928299, -0.02193070575594902, -0.02289538085460663, -0.022046800702810287, -0.010290912352502346, 0.08034596592187881, 0.025312965735793114, 0.013571949675679207, -0.006948303431272507, ...
figure 7. 23 also illustrates some of these languages. • perl is an older scripting language primarily used for web scripting that uses the common gateway interface ( cgi ), an industry specification for web server communication with web browsers. the two different entities need rules by which to “ talk ” to each other...
openstax_introduction_to_computer_science_-_web
[ 0.00586861465126276, 0.010944770649075508, -0.009553349576890469, 0.006909357383847237, -0.045310527086257935, -0.04089735448360443, -0.026660606265068054, -0.016864025965332985, -0.01335170492529869, 0.05558329075574875, -0.006657641846686602, 0.05546122416853905, -0.01859768107533455, -0...
by web pages due to having to launch each script as a separate program. a server - side script runs on a server in a web designer ’ s domain and generally is faster than a cgi script due to its ability to compile in real time ; therefore, in php, python, ruby, and backend javascript es6, the client only sees the standa...
openstax_introduction_to_computer_science_-_web
[ -0.02422487735748291, 0.003950222861021757, -0.04163401946425438, -0.0374426394701004, -0.041321977972984314, -0.010106979869306087, -0.03391851857304573, -0.01789306104183197, 0.019222809001803398, 0.03876300901174545, -0.0076975394040346146, 0.05828932672739029, 0.0008128748741000891, -0...
7. 3 • alternative programming models 345
openstax_introduction_to_computer_science_-_web
[ 0.012791835702955723, -0.0033997546415776014, -0.02174847573041916, -0.02444036677479744, -0.01721992902457714, -0.010293922387063503, -0.03329693153500557, -0.0037721185944974422, -0.0027659782208502293, 0.08332796394824982, 0.034432049840688705, 0.009936466813087463, 0.019229136407375336, ...
7. 4 programming language implementation learning objectives by the end of this section, you will be able to : • discuss how to build and run programs written in various hlls • describe the work of an hll runtime management implementation • list and explain various hll optimization methods applicable to programs to imp...
openstax_introduction_to_computer_science_-_web
[ -0.01266071479767561, -0.004224547650665045, -0.003305060788989067, -0.03972797468304634, 0.005772516597062349, -0.028576016426086426, -0.029484903439879417, -0.028001846745610237, -0.06268104910850525, 0.04223746806383133, 0.0005113143124617636, 0.02324235439300537, 0.024722248315811157, ...
##sor provides a fine example. 1. the # include directive of c / c + + deals with a variety of files such as header or standard files containing the definitions of objects and functions from the api that are going to be used in the program. it can also take care of user - defined files or modules. 2. the # define direc...
openstax_introduction_to_computer_science_-_web
[ -0.02538495883345604, -0.025403093546628952, 0.032494038343429565, -0.017677605152130127, 0.0005594959948211908, -0.006057036109268665, -0.01764514297246933, 0.005400487221777439, -0.018910931423306465, 0.02929566241800785, 0.004561580251902342, 0.024842821061611176, 0.015361958183348179, ...
definitions. the compiler runs a static semantic analysis which concerns itself only with the source code without testing inputs. semantic analysis cannot figure out all meaning in the code. many languages also use dynamic binding ( late binding ) that defers the binding of certain elements such as objects and methods ...
openstax_introduction_to_computer_science_-_web
[ -0.05074787884950638, -0.03181863948702812, -0.014298751950263977, -0.02493547461926937, 0.03727599233388901, -0.01757180504500866, 0.008752412162721157, -0.021588468924164772, -0.024153750389814377, 0.01586250588297844, 0.020931584760546684, 0.022581756114959717, -0.027725836262106895, -0...
7. 4 • programming language implementation 347 case, the purpose is to allow code from the different languages to work well together at execution time. technology in everyday life hlls and big data there is a growing need to process massive amounts of “ big ” data to gather insights in real time about the best way a bu...
openstax_introduction_to_computer_science_-_web
[ -0.013615139760077, 0.0013317725388333201, -0.018958553671836853, -0.01120326854288578, 0.006527579389512539, -0.025159163400530815, 0.00447119353339076, -0.004534109495580196, -0.02248694747686386, 0.023871615529060364, -0.036036767065525055, 0.01274061668664217, 0.018901366740465164, -0....
such as windows and android. java is a great example of this, as referenced in figure 7. 25. figure 7. 25 the java compiler generates byte code from source code. ( attribution : copyright rice university, openstax, under cc by
openstax_introduction_to_computer_science_-_web
[ -0.021640360355377197, -0.041219353675842285, -0.005590749438852072, -0.029021721333265305, -0.02393132634460926, -0.04347984120249748, -0.00015249747957568616, -0.019467508420348167, 0.029443396255373955, 0.05652732029557228, 0.005919975694268942, -0.0028907665982842445, 0.02419420145452022...
4. 0 license ) this can then be run in any environment for which a jvm has been built. compilation of interpreted languages in some languages, compilers are present, but they aren ’ t pure and only perform a selective compilation of pieces, or pre - processing, of the remaining source. occasionally the compiler generat...
openstax_introduction_to_computer_science_-_web
[ -0.009384320117533207, -0.009664946235716343, -0.03426368534564972, -0.04153386875987053, 0.011194705963134766, -0.028602106496691704, -0.011164737865328789, -0.03898395225405693, -0.023674460127949715, 0.04677432402968407, 0.003195979865267873, 0.010480605065822601, -0.004627636633813381, ...
##gging so that the language is easier to read while making sharing possible among compilers. it also isolates the compiler from changes needed in the format of machine language files ; for example, when computer chips change, only the assembler must be changed. a computer ’ s hardware does not implement the assembly -...
openstax_introduction_to_computer_science_-_web
[ -0.03166390210390091, -0.0004033508012071252, -0.009849694557487965, 0.005225435830652714, 0.028096582740545273, -0.0015711323358118534, -0.027945565059781075, -0.027685418725013733, -0.016049204394221306, 0.020010963082313538, 0.0009651371510699391, 0.005513133946806192, -0.0318871587514877...
recovery implemented when a program encounters a runtime error or exception • event handling : the ability to respond to runtime occurrences such as a button click or other unpredictable event • coroutine and thread implementation : languages where implement can handle concurrency and parallelism
openstax_introduction_to_computer_science_-_web
[ -0.014940048567950726, -0.01698782667517662, -0.04981633275747299, 0.015430940315127373, -0.008877543732523918, -0.037751827389001846, -0.005864985752850771, -0.031878482550382614, 0.036428216844797134, 0.061793889850378036, -0.0010187815641984344, 0.013308944180607796, -0.010583709925413132...
7. 4 • programming language implementation 349 virtual machines a virtual machine ( vm ) provides a complete program execution environment that is the reproduction of a computer architecture. many modern languages employ virtual machines as their runtime environment. in general computer science, vms can refer to a syst...
openstax_introduction_to_computer_science_-_web
[ 0.003780654165893793, 0.004008646123111248, -0.003945871721953154, -0.01235645730048418, 0.01987454667687416, -0.007267156150192022, -0.015483503229916096, -0.05383199825882912, -0.03825787827372551, 0.025762654840946198, -0.022367410361766815, 0.00720518222078681, 0.00012163745850557461, ...
animal but directed for the microsoft. net platform and all its component languages. clr and jvm share features including multithreading and stack - based vms, and both have garbage collection. additionally, both use platform - independence, are self - descriptive, and contain bytecode notation. industry spotlight usin...
openstax_introduction_to_computer_science_-_web
[ -0.00018001401622314006, -0.018041491508483887, 0.002354205818846822, -0.008196617476642132, -0.0066452184692025185, 0.016533419489860535, 0.002763420343399048, -0.044687751680612564, 0.007349033840000629, 0.02735995315015316, -0.0028528457041829824, 0.02442634478211403, -0.00361510110087692...
sequence of instructions that will always execute in its entirety if it executes at all, equivalent to a code block. code improvement at the level of basic blocks is known as local optimization, consisting of eliminating redundant operations ( unnecessary loads, common subexpression calculations ), providing effective ...
openstax_introduction_to_computer_science_-_web
[ 0.025387555360794067, 0.01362420991063118, -0.030362792313098907, -0.026245467364788055, -0.002795277861878276, -0.02402091585099697, 0.01909167505800724, -0.028490623459219933, -0.01588352397084236, 0.0433632954955101, 0.03742637857794762, 0.029418664053082466, -0.0038362902123481035, -0....
make your code run faster by using techniques such as removing unnecessary calculations, improving memory usage, and reorganizing code for better efficiency. by understanding optimization techniques, you can write smoother code and use fewer resources. as a side note, mainstream programming language compilers provided ...
openstax_introduction_to_computer_science_-_web
[ -0.0009200468775816262, -0.005441455170512199, -0.03607725724577904, -0.014126402325928211, 0.024935860186815262, 0.0018091796664521098, -0.011716064065694809, -0.021281655877828598, -0.023450803011655807, 0.0010440802434459329, 0.021582379937171936, 0.018179988488554955, -0.0021293968893587...
7. 4 • programming language implementation 351 of various programming languages. the intermediate byte code generated by compilers that target these virtual machines is optimized using some of the techniques described in this chapter. 352 7 • high - level programming languages access for free at openstax. org chapter r...
openstax_introduction_to_computer_science_-_web
[ 0.012289847247302532, -0.005194275639951229, -0.013599292375147343, -0.030261166393756866, 0.012467156164348125, -0.03520548343658447, -0.004053483251482248, -0.029436999931931496, -0.04640970379114151, 0.035902783274650574, -0.010223383083939552, 0.013318246230483055, -0.0021162410266697407...
treated as distinct from each other class code blueprint from which objects are constructed client - side script script that runs on a client computer, usually under the control of a web browser and needs an interpreter on the client ’ s machine code block statement that consists of one or more statements that are stru...
openstax_introduction_to_computer_science_-_web
[ -0.04767448455095291, -0.01188887283205986, -0.006579385604709387, -0.01937784254550934, -0.019573025405406952, -0.02390076406300068, -0.002736099064350128, -0.013295081444084644, -0.006905780173838139, 0.027179498225450516, -0.013203275389969349, 0.043550800532102585, -0.0034572493750602007...
of an array that can hold a value of a data type embedded script script in which one language is embedded inside another encapsulation attributes and behaviors of classes and objects are self - contained and go along with them throughout their lifetime event - driven when behavior of programs is controlled by actions (...
openstax_introduction_to_computer_science_-_web
[ -0.05291987583041191, -0.00328818685375154, -0.01031210832297802, -0.017128221690654755, -0.020235128700733185, -0.010740693658590317, 0.005321620497852564, -0.01228266954421997, -0.02085035853087902, 0.0364161916077137, 0.027262592688202858, 0.029446927830576897, 0.019867898896336555, -0....
operator ( + + ) unary operator that raises the value of its operand by one indexed array array in which the elements are numbered with an index, starting at zero information hiding masking of the actual bits and bytes of implementation that the user of a module does not need to know inheritance feature of oop in which...
openstax_introduction_to_computer_science_-_web
[ -0.03630469739437103, -0.016877401620149612, -0.03842030093073845, -0.029418203979730606, 0.02923872508108616, -0.0336635485291481, 0.042506419122219086, -0.014704974368214607, -0.030405811965465546, 0.0280848927795887, 0.00007999339868547395, 0.02524619922041893, -0.0014676349237561226, -...
a class or object metadata data about data middle end compilation step responsible for performing optimizations of the code modularization splitting a large job into independent units which may be then called upon to perform tasks module component of a program modulo operator ( % ) operator which evaluates to the remai...
openstax_introduction_to_computer_science_-_web
[ -0.019988087937235832, -0.020138319581747055, -0.017638372257351875, -0.04762621596455574, 0.0090857008472085, -0.03624418377876282, 0.008982239291071892, -0.003821736667305231, -0.012487339787185192, 0.032594066113233566, 0.016024161130189896, 0.0012067417846992612, 0.006785472389310598, ...
, usually files to insert into the source code primitive data type ( also : basic data type ) simplest data type of a language that can usually be represented directly by the hardware memory and registers procedural language allows programmers to group statements into blocks of code within the scope of which variables ...
openstax_introduction_to_computer_science_-_web
[ -0.031839266419410706, -0.028896024450659752, 0.024956798180937767, -0.006102960091084242, -0.026426274329423904, -0.045102063566446304, 0.017301073297858238, -0.030498672276735306, -0.024224305525422096, 0.04054313525557518, 0.05201087146997452, 0.014769798144698143, 0.00864396058022976, ...
a function and its parts that is placed on the call stack stack overflow condition in which the call stack has run out of memory in which to expand starvation condition of a process when a process must wait to enter a critical section, but the other processes monopolize the section, and the waiting process does not get...
openstax_introduction_to_computer_science_-_web
[ -0.051377810537815094, -0.022045671939849854, 0.015409122221171856, 0.035887911915779114, 0.0018523227190598845, -0.020995663478970528, 0.018637411296367645, -0.007388595957309008, -0.02368083782494068, 0.019014427438378334, 0.02982044406235218, 0.021182838827371597, 0.008179455995559692, ...
denotes a null value stored in a variable or that a function returns no value weakly typed when a variable may at different times hold values of any of the language data types writability measures how easily an hll can be used to create and modify programs summary
openstax_introduction_to_computer_science_-_web
[ 0.0034183645620942116, 0.006518071051687002, 0.02343067154288292, 0.02377472259104252, -0.02765880711376667, -0.03907917067408562, 0.038162462413311005, -0.014382613822817802, -0.02619643695652485, 0.07057338953018188, 0.034493230283260345, 0.013536053709685802, 0.004818623419851065, -0.05...
7. 1 programming language foundations • hlls give us the ability to make use of abstraction to build algorithms in a close - to - english representation. • there are criteria that are used for selecting the proper hll for the required tasks. these can include scalability, cost, flexibility, efficiency, portability, and...
openstax_introduction_to_computer_science_-_web
[ 0.010064676403999329, 0.024117302149534225, -0.008880878798663616, -0.02148916758596897, 0.009508593007922173, -0.00036493100924417377, -0.02408006601035595, -0.03333674743771553, -0.011588340625166893, 0.05376065522432327, 0.012069747783243656, 0.03598388656973839, 0.009622718207538128, -...
7. 2 programming language constructs • hlls all have data types which are either primitive or complex that form the domain of legal data types they recognize. • hlls all have operators that represent the legal set of operations that may be performed on the data types such as addition or assignment. • hlls support varia...
openstax_introduction_to_computer_science_-_web
[ -0.04213965684175491, -0.021464942023158073, 0.012132696807384491, -0.021712590008974075, 0.01617232710123062, -0.025568177923560143, 0.01269812136888504, -0.005071371328085661, -0.010422817431390285, 0.05423429235816002, 0.018422959372401237, 0.037474602460861206, 0.03903796896338463, -0....
7. 3 alternative programming models • functional programming is a declarative language paradigm where programs are constructed by composing functions and applying them ; some of whose features are implemented in imperative languages. • object - oriented programming ( oop ) is a paradigm based on classes and objects and...
openstax_introduction_to_computer_science_-_web
[ -0.03268050774931908, -0.012934979982674122, -0.03152886778116226, -0.016828693449497223, -0.008346418850123882, 0.002833819715306163, -0.0026530511677265167, -0.024997640401124954, 0.0005802356754429638, 0.04885636642575264, 0.019445553421974182, 0.029776044189929962, 0.00853908434510231, ...
7. 4 programming language implementation • compilers are the general tool used to implement the process of translating source code to another language that is either machine language or is closer to assembly language. • interpreters follow the same processes as compilers with differences in the timing of the translatio...
openstax_introduction_to_computer_science_-_web
[ -0.017736580222845078, -0.011077916249632835, -0.01981491409242153, 0.004621373023837805, 0.01097820233553648, -0.020450463518500328, -0.015864674001932144, -0.021749265491962433, -0.04207509383559227, 0.036001529544591904, -0.01299343816936016, 0.013737717643380165, -0.004123817663639784, ...
##s? 358 7 • chapter review access for free at openstax. org 7. what is the difference between a compiled and an interpreted hll? 8. what are the typical constituent parts of an hll development environment or ide? 9. what is weak typing? what is strong typing? what is the difference between them? 10. what are the equiv...
openstax_introduction_to_computer_science_-_web
[ 0.0006908532814122736, -0.01221506204456091, 0.005556442774832249, 0.00047364880447275937, -0.027184635400772095, -0.03939805179834366, -0.010104433633387089, -0.011049711145460606, -0.0434543751180172, 0.050198204815387726, 0.025200866162776947, 0.03946922719478607, 0.007933528162539005, ...
what types of problems are best solved by scripting hlls? 28. what is the name for software that scans and translates the source code one line at a time? a. interpreter b. compiler c. assembler d. linker 29. the middle end stage of compilation is responsible for what task? a. lexical analysis b. optimization c. code ge...
openstax_introduction_to_computer_science_-_web
[ 0.008770464919507504, -0.013521494343876839, -0.00777211831882596, 0.013342599384486675, 0.0009899286087602377, -0.012812539935112, -0.02267439477145672, 0.01568373665213585, -0.03460228815674782, 0.03385121747851372, -0.0036064928863197565, 0.026158681139349937, 0.011954762041568756, -0.0...
pure compilation, pure interpretation, and hybrids of the two. give the 360 7 • chapter review access for free at openstax. org advantages and disadvantages of each methodology. 3. programming for iphone and programming for android require different purpose - driven hlls. list the hlls used for each and summarize some ...
openstax_introduction_to_computer_science_-_web
[ -0.0037490588147193193, -0.018067020922899246, -0.003846684703603387, -0.03466745838522911, -0.03721863776445389, -0.008743689395487309, 0.0024049540515989065, -0.003249390749260783, -0.015394721180200577, 0.06800798326730728, 0.03822914883494377, 0.0072465697303414345, 0.00648878887295723, ...
else { return 4 ; } } 10. write a do while loop that will execute five times. 11. encapsulation is one of the three fundamental components of object - oriented programming. write a summary which defines the term and explains the advantages of it. please provide a code snippet that 7 • chapter review 361 demonstrates po...
openstax_introduction_to_computer_science_-_web
[ -0.00835589412599802, -0.0026234930846840143, -0.0058866278268396854, -0.04347727447748184, 0.002598824677988887, -0.017313597723841667, -0.02674788236618042, -0.010287092067301273, 0.005781970918178558, 0.07555492222309113, 0.0028168277349323034, 0.0005938357790000737, -0.000041092924220720...
matches the functionality of the following while loop : int main ( ) { int iter = 0 ; while ( iter < 10 ) { iter + + ; printf ( " % d ", iter ) ; } } 4. in c / c + +, data types can be returned from a function or used as an output parameter by passing the object by reference using a pointer. write a piece of code that ...
openstax_introduction_to_computer_science_-_web
[ -0.006324362475425005, -0.0010428846580907702, 0.007233975920826197, -0.024612579494714737, -0.022033076733350754, -0.021322688087821007, -0.016949908807873726, -0.013585051521658897, -0.03243408724665642, 0.06115027889609337, -0.0321594700217247, 0.010310579091310501, -0.00188536592759192, ...
2 will integrate the software as a static library. project 2 requires that the software needs to run on both windows and linux, and c must be the language of choice. project 1 only needs to run on windows and has no language constraints. research c and the level of support for rest api development. would c be a good ch...
openstax_introduction_to_computer_science_-_web
[ -0.014457925222814083, 0.0012654616730287671, 0.02040756680071354, 0.00004539435394690372, -0.04343584179878235, -0.010945544578135014, -0.03202081099152565, -0.0003020023286808282, -0.025753116235136986, 0.028990350663661957, -0.019660789519548416, 0.007135574705898762, 0.021080361679196358...
. consider our startup company committed to leveraging innovative technologies as a business growth facilitator. describe how it can best use the java or c # programming language constructs to create specific products or services that can generate business. give precise examples and explain how the startup would be abl...
openstax_introduction_to_computer_science_-_web
[ 0.007924160920083523, -0.0015030504437163472, 0.023273063823580742, -0.02852262556552887, -0.01066580880433321, -0.01607012189924717, -0.025058595463633537, 0.0036497267428785563, 0.002720234915614128, 0.059661656618118286, -0.03334349766373634, -0.0015295641496777534, 0.02826678939163685, ...
java and c # have similar libraries of collections classes. these contain various types of data structures. we have examined the array ; however, the array has limitations. learn more about the container and collections classes, and look for examples of the patterns of data they are designed to represent and support. c...
openstax_introduction_to_computer_science_-_web
[ -0.015671854838728905, -0.010914243757724762, 0.02414822392165661, 0.004977386444807053, -0.015404898673295975, 0.01663631573319435, -0.019322386011481285, -0.04176383838057518, 0.02700735069811344, 0.06772986799478531, 0.008983319625258446, 0.00733640743419528, -0.00012704507389571518, -0...
8. 7 informatics and data management introduction managing data today requires an end - to - end perspective and the ability to combine the use of various types of data. for example, amazon needs to run its day - to - day businesses and sell products to customers, handle returns, pay commissions to retailers and wholes...
openstax_introduction_to_computer_science_-_web
[ -0.0022829691879451275, 0.017338188365101814, -0.02640954591333866, 0.0057250638492405415, 0.02143683470785618, 0.017593249678611755, -0.021134229376912117, -0.04225502535700798, 0.04832267388701439, 0.038837529718875885, -0.0420747809112072, 0.016069691628217697, -0.005826478358358145, 0....
##works has many challenges that impact their competitiveness and survival in the market, including their traditional database not working properly ; their practices in collecting, managing, and analyzing data not promoting better business decision - making ; and their servers being old and sometimes unable to sufficie...
openstax_introduction_to_computer_science_-_web
[ -0.006856557913124561, -0.0016528299311175942, -0.020729422569274902, -0.009057707153260708, 0.012619451619684696, -0.01044967770576477, -0.0069253891706466675, -0.005508815869688988, 0.023594632744789124, 0.005090000107884407, 0.0008194273104891181, 0.04352720081806183, 0.034224722534418106...
8. 1 data management focus learning objectives by the end of this section, you will be able to : • discuss data management and its relation to computer science and data science • understand that data are the backbone of the industry • identify and explain key concepts in data management • distinguish various roles in t...
openstax_introduction_to_computer_science_-_web
[ 0.02834836021065712, 0.009712953120470047, 0.005912547465413809, -0.0011461160611361265, -0.0036956847179681063, 0.038492657244205475, 0.01630033738911152, -0.032289035618305206, 0.021480832248926163, 0.05194038152694702, -0.002436197828501463, 0.0005284292274154723, 0.0006758441450074315, ...
much information about your life, work, and school, but it is not only you — everyone is sharing data on social media. a supermassive mother of all breaches 366 8 • data management access for free at openstax. org ( moab ) publicized discovered in early 2024 contains data from numerous previous breaches, comprising 12 ...
openstax_introduction_to_computer_science_-_web
[ 0.023032939061522484, 0.0003578390460461378, 0.015755802392959595, 0.024424565955996513, 0.014342116191983223, -0.00835178978741169, -0.0013177263317629695, -0.012761658057570457, 0.031659431755542755, 0.050440795719623566, 0.024459466338157654, 0.00533321825787425, 0.03291362151503563, -0...
amount of data, which makes it impossible to be stored locally, so many businesses move their data to the cloud. a business may also choose to run applications as well as databases and operating systems in the cloud. data management is often handled by a separate data engineering team because most computer and data sci...
openstax_introduction_to_computer_science_-_web
[ 0.022983767092227936, -0.009717130102217197, -0.0036724440287798643, -0.01441799383610487, -0.04536619409918785, -0.0156229417771101, 0.010939613915979862, -0.0019250888144597411, 0.02230391651391983, 0.02994835563004017, 0.0030035844538360834, -0.017872368916869164, 0.03148767352104187, -...
8. 1 • data management focus 367 industry spotlight industry data management data management is important in every industry today. the main benefit of data management is to minimize potential errors by controlling access to data using a set of policies. elaborate on how useful it is to know about data management in ret...
openstax_introduction_to_computer_science_-_web
[ 0.0007912589935585856, -0.0015938625438138843, -0.009990776889026165, -0.009465019218623638, -0.04225604981184006, 0.026597512885928154, 0.027334773913025856, -0.050219226628541946, 0.015109039843082428, 0.03806579113006592, -0.006557086016982794, -0.01490695122629404, -0.02970234677195549, ...
model of a database storing metadata as an enhanced entity – relationship ( eer ) model ( figure 8. 3 ) or unified modeling language ( uml ) model. eer and uml are used to create models for designing large systems. metadata modeling may cover various views of these models. for example, eer models and uml class diagrams...
openstax_introduction_to_computer_science_-_web
[ -0.020194532349705696, -0.014520223252475262, -0.004877234809100628, 0.02136753685772419, -0.024426275864243507, 0.029570462182164192, 0.022581221535801888, -0.03803504630923271, -0.01184279564768076, 0.06247130408883095, 0.0021179502364248037, -0.023470284417271614, -0.00043605928658507764,...
, and access dq. ( attribution : copyright rice university, openstax, under cc by 4. 0 license ) in the intrinsic dq category, data accuracy refers to whether the data values stored for an object are the correct values, and they are often correlated with other dq dimensions. we can count the data reliability as a part ...
openstax_introduction_to_computer_science_-_web
[ -0.0197824127972126, 0.021469390019774437, 0.021971022710204124, 0.025376899167895317, -0.004800422117114067, 0.0015599922044202685, 0.035079389810562134, -0.024203311651945114, -0.015791980549693108, 0.059392791241407394, -0.002459987299516797, -0.012905103154480457, -0.013524570502340794, ...
: decoupling of data producers and consumers
openstax_introduction_to_computer_science_-_web
[ -0.0342799611389637, 0.003761650063097477, -0.025720808655023575, 0.01631757989525795, 0.008448020555078983, -0.02879837527871132, -0.026627272367477417, 0.00014613301027566195, 0.0021991871763020754, 0.021233437582850456, -0.018727092072367668, 0.039922308176755905, 0.00999924261122942, -...
8. 1 • data management focus 369 data governance and compliance the set of clear roles, policies, and responsibilities that enables a business to manage and safeguard data quality using internally set rules and policies is called data governance. the related concept that ensures that data practices align with external ...
openstax_introduction_to_computer_science_-_web
[ 0.012065017595887184, -0.04828033596277237, 0.03496193140745163, 0.040624383836984634, -0.026566507294774055, 0.018468886613845825, 0.017338544130325317, -0.03520824760198593, -0.011143242008984089, 0.036655113101005554, -0.05039938539266586, 0.013589001260697842, 0.003558715572580695, 0.0...
is an educational technology company based in california. it offers various online services such as textbook rentals, tutoring, homework assistance, and more to students around the country. in april 2018, an unauthorized party gained access to chegg ’ s database. this database hosted user information for both chegg and...
openstax_introduction_to_computer_science_-_web
[ -0.03766835853457451, -0.05488758161664009, 0.0012935366248711944, -0.005395678803324699, 0.00213600997813046, 0.002023453591391444, 0.004502579569816589, -0.0038499145302921534, -0.015746276825666428, 0.03800821676850319, 0.030473599210381508, 0.0069989715702831745, 0.03042341209948063, -...
data model into a logical and internal data model, assisting the application developers in defining the views of the external data model, and defining company - wide uniform naming conventions when creating the various data models. data owner the data owner has the authority to ultimately decide on the access to, and u...
openstax_introduction_to_computer_science_-_web
[ -0.017706798389554024, -0.028080139309167862, 0.013337903656065464, -0.05094527453184128, 0.02743821032345295, 0.028981337323784828, 0.009478301741182804, -0.023651205003261566, -0.0072234016843140125, 0.0445452518761158, -0.0012584112118929625, -0.01582535170018673, 0.028809187933802605, ...
8. 1 • data management focus 371 data scientist data scientists typically focus on creating classification and prediction models by training existing machine learning algorithms. the resulting trained models act as programs to help classify new data or predict an outcome based on input data. in general, a data scientis...
openstax_introduction_to_computer_science_-_web
[ -0.004365762695670128, 0.00961393117904663, 0.008739406242966652, -0.048545535653829575, 0.003355442313477397, 0.005587496794760227, 0.00017418889910914004, -0.003932623658329248, 0.001760522834956646, 0.05409900099039078, -0.0007945929537527263, -0.01145815197378397, 0.02142331562936306, ...
on road construction, traffic, or to find the shortest route. how does knowledge of end - to - end data management help people in their everyday life? look at these data collections from all aspects of data management including collecting, storing, and analyzing these data. provide a few illustrative scenarios to expla...
openstax_introduction_to_computer_science_-_web
[ 0.008338047191500664, 0.03580067306756973, -0.033017560839653015, -0.016749465838074684, -0.03407701104879379, -0.007374619599431753, 0.002268886659294367, 0.007520320359617472, 0.06613760441541672, 0.08477932959794998, -0.006455725524574518, -0.0014720117906108499, 0.014651813544332981, -...
8. 2 data management systems learning objectives by the end of this section, you will be able to : • define important terms and characteristics of data management systems • explain the various aspects that characterize database management systems remember that data are any raw facts you can collect such as the number 4...
openstax_introduction_to_computer_science_-_web
[ -0.0009519258164800704, -0.011767863295972347, 0.03462342917919159, -0.03562982752919197, -0.03012613207101822, 0.025108803063631058, 0.009693850763142109, -0.034620434045791626, -0.006746599450707436, 0.06849386543035507, 0.010245381854474545, -0.002721393248066306, -0.024508871138095856, ...
and allowing sharing data between users and applications. think it through university miniworld let us think about the university as a miniworld. in this miniworld, we need to define a data dictionary to describe the following : students, courses, sections, departments, and instructors. suggest a miniworld that would b...
openstax_introduction_to_computer_science_-_web
[ 0.007072046399116516, -0.016879620030522346, 0.032007619738578796, -0.0051704407669603825, -0.02312519960105419, 0.029040202498435974, 0.007907498627901077, -0.017197327688336372, 0.001395723782479763, 0.059681814163923264, 0.003906796220690012, -0.019595585763454437, 0.04298919066786766, ...
and users. hardware includes the physical devices such as computers and hard disks. software refers to the set of programs that are used to manage and control a database. data includes raw data and information organized and processed within the database. procedures are instructions used to manage the database. a databa...
openstax_introduction_to_computer_science_-_web
[ -0.01479316782206297, -0.022297672927379608, -0.01605878211557865, -0.028025556355714798, 0.0005678886082023382, -0.02202508971095085, -0.027639003470540047, -0.029255343601107597, -0.0034845799673348665, 0.01092437468469143, 0.014425876550376415, 0.010857501067221165, 0.023064715787768364, ...
8. 2 • data management systems 373 and business user ). a database language is used to write instructions to access and update data in the database. table 8. 1 shows different examples of database languages along with definitions, and examples. language definition relational dbms ( sql ) database description language (...
openstax_introduction_to_computer_science_-_web
[ -0.017575891688466072, -0.017870072275400162, -0.010823623277246952, 0.0127105712890625, -0.019357280805706978, 0.0017728342209011316, -0.003715729108080268, -0.01949569769203663, -0.021348098292946815, 0.07756105810403824, 0.024100199341773987, 0.02572435513138771, -0.016281837597489357, ...
storage device such as a hard drive ) ; the second, logical data independence, separates any changes in the data from the data format. dbms provides integrity rules by adding a primary key to guarantee that every record is unique. dbms allows you to manage structured, semistructured, and unstructured data. data that ha...
openstax_introduction_to_computer_science_-_web
[ -0.02944454923272133, -0.015497975051403046, 0.005698756780475378, -0.01271411869674921, 0.0025833400432020426, 0.0418151393532753, 0.0020763815846294165, -0.02781948260962963, 0.0118843549862504, 0.060072168707847595, -0.002094410825520754, 0.015048656612634659, 0.016234805807471275, -0.0...
web - based, stand - alone query language, command line, forms - based, graphical user interface ( gui ), natural language, admin, and network. figure 8. 6 dbms includes multiple components : dbms interface, query processor, storage manager, connection manager, security manager, ddl compiler, and database utilities. ( ...
openstax_introduction_to_computer_science_-_web
[ -0.025478878989815712, -0.03785094991326332, 0.0022431081160902977, 0.0035782991908490658, -0.024583356454968452, -0.009258194826543331, -0.010601324029266834, -0.05196760222315788, 0.005903218872845173, 0.03704453632235527, 0.010782686993479729, 0.02167237177491188, 0.011311128735542297, ...
8. 2 • data management systems 375 utility, reorganization utility, performance - monitoring utilities, user management utilities, and backup and recovery utility. figure 8. 7 illustrates the navigation window, results window, log window, and query window. figure 8. 7 this sample mysql workbench graphical user interfac...
openstax_introduction_to_computer_science_-_web
[ -0.029666878283023834, -0.04883934184908867, -0.010987791232764721, -0.051215920597314835, -0.0008829429862089455, 0.018003562465310097, 0.011117478832602501, -0.0390351265668869, 0.021354474127292633, 0.08203975111246109, 0.003295305883511901, 0.032823704183101654, -0.0034593497402966022, ...
from versant, cache from intersystems, gemstone / s from gemtalk systems, which are only successful in niche markets, due to their complexity ). • an xml dbms is a data model in which the data are using the xml data model to store data. xml could be native xml dbms ( e. g., basex and exist ), which map the tree structu...
openstax_introduction_to_computer_science_-_web
[ -0.00873453076928854, -0.0016633219784125686, -0.023415803909301758, -0.0080194640904665, 0.04087219759821892, 0.01097923144698143, 0.002050016075372696, -0.045492984354496, 0.03397853299975395, 0.07396211475133896, 0.014502578414976597, -0.0007728763157501817, 0.054112739861011505, -0.009...
; and workers behind the scenes who design and develop the dbms software and related tools as well as the computer systems operators, including system designers and developers. dbms architectures there are various types of database architectures as follows : centralized dbms architecture, n - tier dbms architecture, cl...
openstax_introduction_to_computer_science_-_web
[ -0.0010574437910690904, -0.018755121156573296, -0.034592609852552414, -0.013489225879311562, 0.014454024843871593, 0.0024539665319025517, -0.02741372399032116, -0.039576154202222824, -0.006409218069165945, 0.037156760692596436, -0.023901404812932014, 0.025248602032661438, 0.04085426405072212...
8. 2 • data management systems 377 interface to multiple underlying data sources which hide the underlying storage details to facilitate data access. an in - memory dbms stores all data in internal memory instead of slower external storage ( e. g., disk ; often used for real - time purposes such as hana from sap ). dbm...
openstax_introduction_to_computer_science_-_web
[ -0.01616980880498886, 0.017224326729774475, -0.002835924504324794, 0.0032551547046750784, -0.028668193146586418, 0.0033237712923437357, 0.02779236249625683, -0.021563896909356117, 0.016218602657318115, 0.05850697681307793, -0.01716364547610283, 0.009896114468574524, 0.01435733400285244, -0...
8. 3 relational database management systems learning objectives by the end of this section, you will be able to : • discuss the relational model • describe the theoretical and practical aspects of the structured query language ( sql ) • explain how to create a logical relational database design • demonstrate how to cre...
openstax_introduction_to_computer_science_-_web
[ -0.017831506207585335, 0.012364479713141918, 0.0023974820505827665, -0.014510388486087322, -0.01583212800323963, 0.03037751279771328, -0.00899018719792366, -0.04020685330033302, -0.018940646201372147, 0.08391811698675156, -0.009815539233386517, 0.012024854309856892, 0.023991594091057777, -...
side effects that result from the rdbms being accessed by multiple students concurrently. finally, durability guarantees that once information has been stored in the database, it will be stay there permanently. in the course registration example, if one student registers 378 8 • data management access for free at opens...
openstax_introduction_to_computer_science_-_web
[ -0.003591791493818164, 0.003613715525716543, 0.01414149347692728, -0.0045168292708694935, -0.0435950867831707, 0.02077069692313671, -0.003359460039064288, -0.040447134524583817, -0.012491189874708652, 0.07382715493440628, 0.023271678015589714, -0.01199372299015522, 0.04164958745241165, -0....
in that column, and the column header is referred to as an attribute name or just as an attribute. multiple attributes may be selected to form superkeys that uniquely identify individual tuples. minimal superkeys are referred to as candidate keys. candidate keys are considered minimal because they should only include a...
openstax_introduction_to_computer_science_-_web
[ 0.017332592979073524, -0.012077733874320984, 0.006149937864392996, -0.0007977471104823053, -0.033611930906772614, 0.01573891192674637, -0.011151035316288471, -0.006371656432747841, -0.031244412064552307, 0.05271479859948158, 0.06342838704586029, -0.029506495222449303, -0.009006582200527191, ...
8. 3 • relational database management systems 379 sql is based on relational algebra with many extensions. sql supports primary keys, foreign keys, inserting data, deleting data, updating data, indexing, recovery, concurrency, and security. sql focuses on efficiency in addition to specifying the data needed. the main c...
openstax_introduction_to_computer_science_-_web
[ -0.014414462260901928, -0.007265903986990452, 0.008513318374752998, -0.004019023384898901, -0.023840708658099174, 0.009594066068530083, -0.0013677215902134776, -0.009232640266418457, -0.046100109815597534, 0.08767305314540863, 0.021316073834896088, 0.016803734004497528, -0.001535906223580241...
the same domains. in what follows, we represent a relation as r and its cardinality or number of tuples as | r |. union operator the union operator applied to two union - compatible relations p and q results into a new relation so : with the resulting relation r consists of the tuples that either belong to p or q, or b...
openstax_introduction_to_computer_science_-_web
[ -0.014340261928737164, -0.005191535223275423, -0.0031341216526925564, -0.006168660707771778, -0.04125092923641205, -0.040276430547237396, 0.00806262157857418, -0.02066795714199543, -0.016945049166679382, 0.05291231349110603, 0.01860688626766205, 0.012694370932877064, 0.006702621467411518, ...
two domain - compatible attribute types, or between an attribute type and a constant value from the domain of the attribute type. the result of applying a select operator with a selection condition s on a relation p can be represented as : with select operator project operator the project operator is used to project a ...
openstax_introduction_to_computer_science_-_web
[ 0.0025619245134294033, -0.008952080272138119, 0.0003702727553900331, -0.02401699870824814, -0.04353944957256317, -0.05749299377202988, 0.007074485067278147, 0.016672037541866302, -0.0009934892877936363, 0.030396685004234314, 0.023851383477449417, -0.013586738146841526, 0.023195434361696243, ...
8. 3 • relational database management systems 381 division operator can be represented as : with division operator ÷ the resulting relation r includes all tuples that belong to p combined with every tuple in q. note that the division operator is not directly implemented in sql. the select ( σ ), project ( π ), differen...
openstax_introduction_to_computer_science_-_web
[ -0.011406746692955494, -0.02146950177848339, -0.005344717297703028, -0.012653334997594357, -0.043476227670907974, -0.029181664809584618, 0.022828182205557823, 0.0012193258153274655, -0.015226135961711407, 0.05375651270151138, 0.03929128870368004, 0.056908100843429565, -0.013874183408915997, ...