Free Essay

Cpu Tech

In:

Submitted By irish7698metal
Words 873
Pages 4
Chapter 6 |

Question 1 | | 1 / 1 point |
A loop controlled by the user is a type of ____ loop.
Question options: | indefinite | | definite | | counter-controlled | | incrementing | Question 2 | | 1 / 1 point |
You use a unary minus sign preceding a value to make the value ____.
Question options: | negative | | positive | | valid | | constant | Question 3 | | 1 / 1 point |
Before entering a loop, the first input, or ____, is retrieved.
Question options: | empty body | | posttest loop | | loop body | | priming read | Question 4 | | 0 / 1 point |
Which is an infinite loop?
Question options: | loopCount = 5; while(loopCount > 3);
{
System.out.println("Hello"); loopCount = loopCount - 1;
} | | loopCount = 1; while(loopCount < 3);
{
System.out.println("Hello");
} | | loopCount = 4; while(loopCount < 3);
{
System.out.println("Hello"); loopCount = loopCount + 1;
} | | loopCount = 1; while(loopCount < 3);
{
System.out.println("Hello"); loopCount = loopCount + 1;
} | Question 5 | | 1 / 1 point |
Use a(n) ____ loop to execute a body of statements continually as long as the Boolean expression that controls entry into the loop continues to be true.
Question options: | empty | | while | | definite | | control | Question 6 | | 1 / 1 point |
Making a comparison to 0 is slower than making a comparison to any other value.
Question options: | True | | False | Question 7 | | 0 / 1 point |
You can initialize more than one variable in a for loop by placing a(n) ____ between the separate statements.
Question options: | semicolon | | equal sign | | period | | comma | Question 8 | | 1 / 1 point |
As long as methods do not depend on one another, ____ is a technique that can improve loop performance by combining two loops into one.
Question options: | loop fusion | | prefix incrementing | | short-circuit evaluation | | do-nothing looping | Question 9 | | 1 / 1 point |
When you want to increase a variable’s value by exactly 1, use the ____.
Question options: | power statement | | accumulating operator | | binary operators | | prefix increment operator | Question 10 | | 1 / 1 point |
A for loop provides a convenient way to create a(n) ____ loop.
Question options: | counter-controlled | | posttest | | while | | infinite | Question 11 | | 1 / 1 point |
Programmers rarely use indefinite loops when validating input data.
Question options: | True | | False | Question 12 | | 1 / 1 point |
Many seasoned programmers start counter values at 1 because they are used to doing so when working with arrays.
Question options: | True | | False | Question 13 | | 1 / 1 point |
A statement that will alter the value of the loop control variable is included in the body of a loop.
Question options: | True | | False | Question 14 | | 1 / 1 point |
Shortcut operators are a programmer’s only choice when incrementing or accumulating a variable’s value.
Question options: | True | | False | Question 15 | | 1 / 1 point |
The statements that make up a loop body will continue to execute as long as the expression value remains false.
Question options: | True | | False | Chapter 6 |

Question 1 | | 1 / 1 point |
In order to improve loop performance, it’s important to make sure the loop does not include unnecessary operations or statements.
Question options: | True | | False | Question 2 | | 1 / 1 point |
When nesting loops, the variable in the outer loop changes more frequently.
Question options: | True | | False | Question 3 | | 1 / 1 point |
How many times will outputLabel be called? for(customer = 1; customer <= 20; ++customer) for(color = 1; color <= 3; ++color) outputLabel();
Question options: | 0 | | 3 | | 20 | | 60 | Question 4 | | 1 / 1 point |
Which of the following is NOT a valid method to increase a variable named score by 1?
Question options: | ++score | | score++ | | ++score = score + 1 | | score = score + 1 | Question 5 | | 1 / 1 point |
On many keyboards, the Break key is also the ____ key.
Question options: | Pause | | Esc | | Delete | | Ctrl | Question 6 | | 1 / 1 point |
____ is the process of ensuring that a value falls within a specified range.
Question options: | Value checking | | Data integrity | | Validating data | | A range check | Question 7 | | 1 / 1 point |
A(n) ____ loop is one that performs no actions other than looping.
Question options: | nested | | do-nothing | | indefinite | | posttest | Question 8 | | 1 / 1 point |
The ____ loop checks the value of the loop control variable at the bottom of the loop after one repetition has occurred.
Question options: | while | | do…while | | for | | else | Question 9 | | 1 / 1 point |
In the expressions b = 8 and c = --b, what value will be assigned to the variable c?
Question options: | 8 | | 7 | | 9 | | 10 | Question 10 | | 1 / 1 point |
You can initialize more than one variable in a for loop by placing a(n) ____ between the separate statements.
Question options: | semicolon | | equal sign | | period | | comma | Question 11 | | 1 / 1 point |
A for loop provides a convenient way to create a(n) ____ loop.
Question options: | counter-controlled | | posttest | | while | | infinite | Question 12 | | 1 / 1 point |
Shortcut operators are a programmer’s only choice when incrementing or accumulating a variable’s value.
Question options: | True | | False | Question 13 | | 1 / 1 point |
You use a unary minus sign preceding a value to make the value ____.
Question options: | negative | | positive | | valid | | constant | Question 14 | | 1 / 1 point |
A loop controlled by the user is a type of ____ loop.
Question options: | indefinite | | definite | | counter-controlled | | incrementing | Question 15 | | 1 / 1 point |
When you want to increase a variable’s value by exactly 1, use the ____.
Question options: | power statement | | accumulating operator | | binary operators | | prefix increment operator |

Similar Documents

Free Essay

Cpu & Tech Hmwrk 1

...Computers & Technology Homework # 1 1. To effectively work with Windows, you need c. a mouse. 2. The main portion of the screen that displays when Windows is loaded is called the c. desktop. 3. Which action are you performing when you press the left mouse button and drag a corner of a window in or out? b. sizing 4. Clicking on an object automatically d. selects the object. 5. The primary mouse button used to make choices is the a. left button. 6. Which of the following Windows icons means "please wait?" c. the Hourglass 7. You wish to reboot your computer. What is the first thing you should do? c. Close any open applications and documents. What does WIMP stand for? Windows Icons Menu Pointer 8. What are icons? Pictures that represent programs shortcuts files and connected networks 9. Items placed in the Recycle Bin are immediately deleted from the computer. False 10. You are running several programs at the same time under Windows and your mouse stops working. You need to save the work you were doing under the different programs. A. What are accelerator keys and how are they designated? The Hot keys; hold Alt key and type that letter. They are designated by underline. B. How could you cycle through the different program windows and select menu items like Save from the File menu in each program window using accelerator keys so that you can save your work? Use alt-tab key combo, Control S, shows the file menu, then...

Words: 262 - Pages: 2

Premium Essay

Instruction Manual

...INTRODUCTION Computers continue to become more a part of everyday life. According to the census conducted in 2013, 86% of households in the U.S. had at least one computer, and it is likely that number has gone up in the last two years. Many families have more than one computer in the household. The cost of a computer can range from a couple hundred dollars to a couple thousand depending on the criteria the customer gives for the specifications of the computer. In computers there are three main options, first of which is to buy a branded computer, such as apple. The second option is to have a custom computer build by a company, such as ibuypower.com. The third option is to build your own computer with your own specifications. As far as cost goes, usually buying a branded computer is the cheapest option, and building a computer is slightly less costly than having a custom computer built. If a consumer is not saving money building their own computer, then why would you go through the hassle? There are many advantages to building you own computer, first amongst them is the consumer gets exactly what they want. Building your own computer allows flexibility that isn’t there otherwise. The consumer can adjust the parts to fit a specific budget and can build the computer with a specific goal in mind, such as a high-end gaming computer, or a family multimedia computer. When buying from a company, you get exactly what they make, there are not many variations or customizations in...

Words: 2070 - Pages: 9

Free Essay

Fdsf

...An Analysis of Linux Scalability to Many Cores Silas Boyd-Wickizer, Austin T. Clements, Yandong Mao, Aleksey Pesterev, M. Frans Kaashoek, Robert Morris, and Nickolai Zeldovich MIT CSAIL A BSTRACT This paper analyzes the scalability of seven system applications (Exim, memcached, Apache, PostgreSQL, gmake, Psearchy, and MapReduce) running on Linux on a 48core computer. Except for gmake, all applications trigger scalability bottlenecks inside a recent Linux kernel. Using mostly standard parallel programming techniques— this paper introduces one new technique, sloppy counters—these bottlenecks can be removed from the kernel or avoided by changing the applications slightly. Modifying the kernel required in total 3002 lines of code changes. A speculative conclusion from this analysis is that there is no scalability reason to give up on traditional operating system organizations just yet. but the other applications scale poorly, performing much less work per core with 48 cores than with one core. We attempt to understand and fix the scalability problems, by modifying either the applications or the Linux kernel. We then iterate, since fixing one scalability problem usually exposes further ones. The end result for each application is either good scalability on 48 cores, or attribution of non-scalability to a hard-to-fix problem with the application, the Linux kernel, or the underlying hardware. The analysis of whether the kernel design is compatible with scaling rests on the extent to which...

Words: 12751 - Pages: 52

Premium Essay

Hrm in Israel

...The transition from a Socialist approach to a free market approach and the rise of a new high-tech sector are two remarkable shifts that have occurred in the last two decades in Israel. In the face of these changes, human resource (HR) practitioners are currently expected to assume new roles, adopt different work values, and apply appropriate strategies. HR managers in the low-tech industry still adhere to traditional values and strategies, including a reliance on trade unions and an emphasis on job security and the employees’ years of work experience and seniority as key criteria for promotion. In the emerging high-tech sector, HR managers have adopted new values and developed new strategies, including human resource management programs, employee empowerment, higher salaries and better benefits, while placing an emphasis on employees’ talents and qualifications. Source: http://www.emeraldinsight.com/journals.htm/journals.htm?issn=01437720&volume=22&issue=3&articleid=848302&show=html&PHPSESSID=qj5kp1babsuadbfaj 47luam41 Recent changes in Israeli society and economy and their relation to Organizational Politics Over the past three decades, Israel has undergone significant economic, industrial and cultural transformations. These developments have shifted public values considerably and may indirectly affect OP and HR practices. For example, Sagie and Weisberg (2001) maintain that in recent years, Israeli society has gone from being ascetic...

Words: 1651 - Pages: 7

Free Essay

Innovation

...CHINA BOOST FOR SENAI HI-TECH PARK Senai Hi-Tech Park, Malaysia's second high technology industrial park, got off to a promising start with investments of more than US$500 million (RM1.7 billion) from two companies in Johor. China-based EQ Solar Technology International Sdn Bhd plans to invest US$500 million to produce solar modules while leading industrial gases provider MOX-Linde Gases Sdn Bhd, through its initial outlay of RM60 million, plans to set up an industrial gases separation plant. Senai High Tech Park chief executive officer (CEO) Datuk Ahmad Shukri Tajudin said this shows that the park is ready to compete as another preferred location for hightechnology manufacturing, research and innovation activities. Located within Iskandar Malaysia, the park has drawn interest from investors in the US, Europe and China. "Interest is in various sectors including semiconductor industry and solar," he said at a media briefing. International Trade and Industry Minister Datuk Seri Mustapa Mohamed, witnessed the signing of the memorandum of understanding in Kuala Lumpur yesterday. "We're expecting a few more similar investments," Mustapa said, without disclosing details. Malaysia has so far attracted several global solar industry players like First Solar, Sunpower and Q-Cells. There are also several domestic investments in solar power projects in Selangor and Sabah. Mustapa hopes that the park will create more jobs, similar to what was achieved at the Kulim Hi-Tech Park in the north. The...

Words: 452 - Pages: 2

Free Essay

Guillermo Furniture

...over the years. Guillermo Furniture Store Recommendation Analysis and Recommend Financial Decision The economy is weak, new competitors’ establishing a presents, Guillermo must tackle a tough decision, which is to become a furniture distributor or stay on the manufacturing side, or possibility do both. Guillermo understands that change is forth coming and he has to venture forward but the dilemma is what the best alternative is. First Guillermo must analysis the financial alternatives and establish which objective is beneficial for the company. The next step is to gather information and formulate a pro forma cash flow budget to analyze the projected earnings for the next five years for the company (University of Phoenix, 2007). Hi-Tech Option Guillermo established his wealth various years ago because of the low cost in labor along with an extraordinary location for manufacturing. The company’s success has held strong on those foundations until now. There are a few concerns for Guillermo that may cause the company to change the way it does...

Words: 2497 - Pages: 10

Premium Essay

Four Strategically Required Organizational Outcomes for Siemens

...strategy-oriented HR system case study 1. * Strategically required organizational outcomes: * Good products and good services. Products and services is always the most important thing for a manufacturing company. Siemens has become a world leader by diversifying into hi-tech products and services, it need to maintain this advantage and develop it even further to achieve more. * Going global and expand. Globalization gives big companies a chance to expand rapidly. Siemens has succeeded in going global but this is a long way, it still needs more expansion into more countries or areas that are not covered yet. * Positive brand image. A good company image is extraordinarily important to the company’s healthy development. Siemens needs to keep customers satisfied both with its products and services, which helps it to get more market share and expand even faster. * A good employee selection, training and compensation system. The company not just need to keep customers satisfied, it has to keep employees happy too. So that it can work more efficiently and effectively. * Required workforce competencies and behaviors: * Learning on a continuing basis. Siemens is in high-tech business so the nature decided that its employees need to learn new things every day. * Good teamwork. The ability to work with people is essential in such big corporation. Especially when it’s going global. * Mutual respect and appreciation of workforce diversity. Siemens...

Words: 296 - Pages: 2

Free Essay

Shared Memory Architecture

...INTRODUCTION: Shared memory is a memory that can be used by multiple programs to avoid redundant copies or to provide communication among them. In other words we can say that, it is a technique, in this exchanging of data in process of program is done more quickly than by reading and writing using the services of OS. It is the fastest form of IPC available. A number of basic issues in the design of shared memory system have to be taken into consideration. Once the memory is mapped into the address space of the processes that are sharing the memory region, no kernel involvement occurs in passing the data between the processes. It refers to a multiprocessing design where several processors access globally shared memory. These include access control, synchronization, protection and security.  Access control determines which process accesses are possible to which recourses.  Synchronization constraints limit the time of access from sharing processes to shared resources.  Protection is a system feature that prevents processes from making arbitrary access to resources belong to other processes.  At the memory module the requests arrive through its two ports.  The simplest shared memory system consists of one memory module that can be accessed from two processors.  Classification of shared memory: Depending on the interconnection of network, a shared memory leads to system can be classified as :- • UMA: -  Shared memory...

Words: 431 - Pages: 2

Premium Essay

System Unit

...(SEC) cartridge -Dual inline package (DIP) -Flip chip-PGA (FC-PGA) package -Pin grid array (PGA) Central Processing Unit (CPU)? -Interprets and carries out basic instructions that operate a computer. -Also called the processor. Components of the CPU? -Control Unit -Arithmetic/Logic Unit (ALU) -Register Control Unit? -Directs and coordinates operations in computer. Control unit repeats four basic operations: -Fetch-obtain program instruction or data item from memory. (Taking Out From Memory) -Decode-Translate instruction into commands. (Understand It) -Execute-Carry out command. (Writing out It) -Store-Write result to memory. (Write the Result) Machine Cycle? -Four operations of the CPU comprise a machine cycle. -Also called instruction cycle. -Instruction time (I-time)-time taken to fetch and decode -Execution time (e-time)-time taken to execute and store. (I-time) (E-time) Fetch Decode Execute Store (Completed 1 Instruction) CPU’s Speed measured? -According to how many millions of instructions per second (MIPS) it can process. Two designs used for the CPU? CISC (complex instruction set computing) -Support large number of instructions -CPU executes complex instructions more quickly. RISC (reduced instruction set computing) -Supports smaller number of instructions -CPU executes simple instructions more quickly....

Words: 422 - Pages: 2

Free Essay

Google Tricks

...Oscar Martinez NT 1110 Lab 4 Task 1: LGA 1156, also known as Socket H[2][3] or H1, is an Intel desktop CPU socket. LGA stands for land grid array. Its incompatible successor is LGA 1155. LGA 1156, along with LGA 1366, were designed to replace LGA 775. Whereas LGA 775 processors connect to a northbridge using the Front Side Bus, LGA 1156 processors integrate the features traditionally located on a northbridge on the processor itself. The LGA 1156 socket allows the following connections to be made from the processor to the rest of the system: PCI-Express 2.0 ×16 for communication with a graphics card. Some processors allow this connection to be divided into two ×8 lanes to connect two graphics cards. Some motherboard manufacturers use Nvidia's NF200 chip to allow even more graphics cards to be used. DMI for communication with the Platform Controller Hub (PCH). This consists of a PCI-Express 2.0 ×4 connection. FDI for communication with the PCH. This consists of two DisplayPort connections. Two memory channels for communication with DDR3 SDRAM. The clock speed of the memory that is supported will depend on the processor. LGA 1156 socket and processors were discontinued sometime in 2012, along with LGA 1366.[4] Supported processors Code name | Brand name | Model (list) | Frequency | Cores/Threads | Max...

Words: 1200 - Pages: 5

Free Essay

Nt1110 Lab 4

...Task 1: 1. Which is used to rewrite the M-BIOS chip if corrupted a. The B-BIOS Chip - the backup BIOS 2. LGA 1156 connector b. Processors used with it i. Intel Core i3, Core i5, Core i7, and Xeon 300 c. What is purpose ii. Connects motherboard to the CPU 3. Intel H55 chipset d. Processors iii. Intel Core i7-800, Core i5, Core i3 e. Purpose iv. Provides the interface for the PCIe lanes on the motherboard 4. Interesting information on Gigabyte GA-H55M-UD2H motherboard f. •Unique On/Off Charge delivers the best recharging capability to iPad, iPhone and iPod Touch g. •3x USB power delivery for greater compatibility and extra power for USB devices h. •Leading quality standard of Ultra Durable™ 3 classic technology with 2oz copper PCB design i. •Innovative Smart 6 technology for smarter PC management j. •Supports Intel Core™ i7/ Core™ i5/ Core™ i3 LGA1156 processors k. •Dynamic Energy Saver™ 2 technology enables best energy efficiency l. •2 PCI-E 2.0 x16 graphics interface(x16+x4) with ATI CrossFireX support for ultimate graphics performance (all information for task #1 procedure #4 is from Gigabyte.com website) Task 2: 1. Examine motherboard 2. AMD 770 Northbridge Chipset a. What processors used i. Phenom b. What is purpose ii. Gaming 3. AMD SB710 Southbridge Chipset c. Processors used ...

Words: 736 - Pages: 3

Free Essay

Motherboard Components and Form Factors

...NT1110 Motherboard Components and Form Factors LGA 1156: LGA 1156 works with Intel Celeron, core i3, i5, i7, Pentium, and the Intel Xeon. Nehalem The LGA 1156 connector is designed to connect the 1156 pin processor. LGA means land grid array. The H55: utilizes the 1st gen. core i CPUs. The H55 is used with a 1st generation Intel Core processor like the Intel Core i5-660. Purpose to integrate the PCI Express on the motherboard. The Gigabyte GA-H55M-UD2H motherboard: has unique On/Off Charge, PC can be on or off to charge cell phones, IPads, IPods, 3x USB power delivery for greater compatibility and extra power for USB devices, Patented DualBIOS, Easy BIOS setting for GPU overclocking, supports 6 devices without the need for drivers to be installed before being fully operational. AMD 770 Northbridge Chipset.: AMD AM3 Processor Support Based on the AMD 770 chipset, the MSI 770-G45 AMD motherboard supports AMD's latest generation Phenom II processors, as well as Athlon II and Sempron 100 series processors in AM3 socket. The purpose of the 770 Northbridge chipset on the motherboard is to link the computer system's hardware to the processor. Processors used in a AMD SB710 Southbridge Chipset: Socket AM3/AM2 Processors: AMD Turion II Neo, AMD Athlon, II Neo Processors (ASB2), AMD Turion Neo, AMD Athlon Neo, and AMD Sempron Processors (ASB1) The purpose of the motherboard for the AMD SB710 Southbrdge chipset is to control the processes that are going...

Words: 594 - Pages: 3

Free Essay

Swel: Hardware Cache Coherence Protocols

...[Type the company name] | REPORT | SWEL: Hardware Cache Coherence Protocols to Map Shared Data onto Shared Caches | | Asadullah | 12/15/2013 | … | Contents Abstract 3 Introduction 3 Proposed Solution (SWEL) 5 Optimizations of SWEL 6 Dynamically Tuned RSWEL 7 Implementation 7 Experiment and Results 7 Conclusion 10 References 10 Abstract Shared Memory Multi processors require cache coherence in order to keep cached values updated while performing operations. Snooping and directory based protocols are two well known standards of cache coherence. However both of them possess some problems. Snooping protocol is not scalable and is only suitable for systems of 2 to 8 SMP’s. Whereas directory based protocol gives rise to memory overhead when there are too many sharers of a particular block. We propose a novel protocol for cache coherence that exploits the private block of memory. Coherence protocol invoked only for shared data blocks. This reduces network and storage overhead and it does not compromise with scalability as well. Introduction Shared Memory Multi Processor has multiple processors with their caches and a global memory. Memory is connected with processors and a global address space is maintained. When a block of data is cached by one processor, it said to private. The block of data is called shared if more than one processor cache the same block of data. In later case it necessary that read operation of any processor should return...

Words: 1891 - Pages: 8

Free Essay

Cisc vs Risc

...A Tale of Two Processors: Revisiting the RISC-CISC Debate Ciji Isen1, Lizy John1, and Eugene John2 1 ECE Department, The University of Texas at Austin ECE Department, The University of Texas at San Antonio {isen,ljohn}@ece.utexas.edu, ejohn@utsa.edu 2 Abstract. The contentious debates between RISC and CISC have died down, and a CISC ISA, the x86 continues to be popular. Nowadays, processors with CISC-ISAs translate the CISC instructions into RISC style micro-operations (eg: uops of Intel and ROPS of AMD). The use of the uops (or ROPS) allows the use of RISC-style execution cores, and use of various micro-architectural techniques that can be easily implemented in RISC cores. This can easily allow CISC processors to approach RISC performance. However, CISC ISAs do have the additional burden of translating instructions to micro-operations. In a 1991 study between VAX and MIPS, Bhandarkar and Clark showed that after canceling out the code size advantage of CISC and the CPI advantage of RISC, the MIPS processor had an average 2.7x advantage over the studied CISC processor (VAX). A 1997 study on Alpha 21064 and the Intel Pentium Pro still showed 5% to 200% advantage for RISC for various SPEC CPU95 programs. A decade later and after introduction of interesting techniques such as fusion of micro-operations in the x86, we set off to compare a recent RISC and a recent CISC processor, the IBM POWER5+ and the Intel Woodcrest. We find that the SPEC CPU2006 programs are divided between...

Words: 7813 - Pages: 32

Free Essay

Computer

...(LATEST COMPUTER HARDWARE and LATEST MICROPROCESSOR) LATEST COMPUTER HARDWARE 1. Microsoft Desktop 3000 Reliable 2.4-GHz Wireless Enjoy the 2.4-gigahertz (GHz) wireless technology, which delivers a reliable connection with up to a 30-foot range, with virtually no interference. BlueTrack Technology Take advantage of BlueTrack Technology, which combines the power of optical with the precision of laser for remarkable tracking on virtually any surface. Snap-in Mini-Transceiver Plug the wireless receiver into your computer’s USB port when you’re ready to work. Then snap it into the bottom of your mouse when you travel. Media Center Control media playback from your keyboard. Hot Keys Gain one-touch access to Windows Media Player, email, home, calculator, My Documents, zoom, instant messaging and photos. Tilt Wheel and More Navigate fluidly with four-way scroll, five programmable buttons, rubber side grips and magnifier. Device Stage Quickly and easily access common tasks, including product information, registration, settings, and more for popular devices such as cell phones, cameras, printers, and mouse, keyboard, and webcam products. Battery Status Indicators Avoid being caught with a dead battery. The battery status indicator glows red when the battery is running low. PRICE: $36.99 2. Alienware TactX Headset Functionality: Obviously ideal for gaming, the Alienware TactX VoIP headset connects...

Words: 3886 - Pages: 16