Premium Essay

Nt1330 Unit 1 Question Paper

Submitted By
Words 2044
Pages 9
1) Which hardware component performs arithmetic and logical operations?
CPU
2) Which number system is used by a computer?
Binary system (base 2)
3) What is an object program?
An object program is a program into which some other program is translated by an assembler or a compiler
4) What is linking?
A linker combines object programs with other programs in the library to create executable code.
5) Which program loads the executable code from the main memory into the CPU for execution? The loader performs this function.
6) In a C++ program, preprocessor directives begin with which symbol?
# symbol
7) In a C++ program, which program processes statements that begin with the symbol #? (
Preprocessor directives
8) What is programming?
Programming …show more content…
Get testScore 4, Get weightTestScore4
5. Sum = testScore1 * weightTestScore1 + testScore2 * weightTestScore 2 + testscore3 * weightTestScore3 + testscore4 * weightTestScore4
13) Design an algorithm to convert the change given in quarters, dimes, nickels, and pennies into pennies.
Let q denote the # of quarters
Let d denote the # of dimes
Let n denote the # of nickels
Let p denote the # of pennies
Get q
Get d
Get n
Get p
Number of pennies = sum (25q + 10d + 5n + p)
14) Given the radius, in inches, and price of a pizza, design an algorithm to find the price of the pizza per square inch.
Get Radius of pizza
Get Price of pizza
Price/ square inch of pizza = (price)/ (pi * Radius ^ 2)
15)The dealer's cost of a car is 85% of the listed price. The dealer would accept any offer that is at least $500 over the dealer's cost. Design an algorithm that prompts the user to input the list price of the car and print the least amount that the dealer would accept for the car.
Find user offer for car
CarCost = (0.85*listed_price)
If user offer >= 500 + CarCost then Print CarCost
If user offer < 500 + CarCost then dealer declines offer
16)The volume of a sphere is (4.0/3.0)πr 3 and the surface area is 4.0πr 2, where r is the …show more content…
Suppose that the tuition per semester is $25,000 and the average semester consists of 15 units. If the math class meets three days a week, one hour each day for 15 weeks, and is a four-unit course, how much does each hour of math class cost the student? Design an algorithm that computes the cost of each math class.
a) Find input for total tuition fees for semester, store as variableT for Total_tuition_fees =
($25,000)
b) Find input for total number of units taken per semester, store as variableU for
Total_units_taken = (15_units)
c) Calculate tuition fees of 1 unit in a semester by dividing the first stored variable by the second stored variable. Use the equation tuition_fee_per_unit = variableT/variableU =
($25,000/15 units)
d) Find units of the math course course_units_total = 4
e) Multiply tuition fees for 1 unit in a semester by the total course units for the math class.
Use the equation tuition_fee_per_unit * course_units_total = tuition_fee_per_course
f) Find total number of weeks the course lasts, store as variable weeks= 15
g) Find total number of days the course meets a week, store as variable days_per_week= 3
h) Find total number of hours per day that the course meets, store as

Similar Documents

Premium Essay

Nt1330 Unit 1 Question Paper

...(20)  Explain how generalization can be implemented in a relational data model. Ans: Select common properties from different class, create one superclass and add in superclass. (21)  Explain why HDD devices are slower than SSD devices. Ans: HDD devices are slower than SSD devices as HDD has moving parts which have potential quality drop issue in long term and take longer time to store data due to the disk inside is spinning and mechanical arm need to write data on the disk. While SSD do not have any moving parts. Furthermore, Solid State Drive uses non-volatile memory made from NAND based silicon wafer and data will not be lost on SSD if power lost. (22)  Explain how relational tables are mapped into files. Logical storage files have data segments, each data segment stores relational table and each index segment stores index. (23)  Explain a difference between manual space management and automatic space management. Ans: Manual segment space management uses linked lists known as free lists to manage free space in the segment. Automatic space management uses bitmap to manage free space in segments and it is more efficient then manual segment space management. (24)  Explain a concept of "role" and provide an example different from the examples included in lecture slides where application of "role" is really useful. Ans: Role is a kind of permission which decide which user can perform certain action or remove action like create or update to a database. For example, grant admin...

Words: 892 - Pages: 4

Premium Essay

Nt1330 Unit 1 Question Paper

...process state specifies in which state the process isie., new, ready, running or waiting • Program counter: It address the next instruction should be executed. • CPU registers: general purpose registers, flag register, stack pointer, indexed registers etc,. • Memory Allocations: It maintains the information about the memory allocated to the process. The Context Switching is the mechanism to stop executing of one process (let it be p1) and start the execution of another process (let it be p2). The PCB maintains all the information of process p1 to restart the execution after completion of p2. Q8: what are the five processes states defied by the textbook? Between which two of these states does the process scheduler move a process? Why? 1. New : the process born will be in this state 2. Ready: The process in new state moves into the queue known as ready state which ready to execute this state schedule the process for execution. 3. Running : The process in the ready queue ready state or waiting queue in waiting state is moved to execute is nothing but running state. 4. Waiting : waiting state is used hold the process which are requires resources during execution and schedules after resources aquired. 5. Terminated : After completion of execution process will be moved to this state Ready and running are the two scheduling states to move the process to running state depending on resource allocation or order of service. Q9: Explain how UNIX fork () and exec () system calls...

Words: 1498 - Pages: 6

Premium Essay

Fsmo Role Ayer Nate Method

...have one domain controller (not recommended), there is nothing to do since all roles must be on this server, but if you have multiple servers you should move some of theese roles on to more servers. It is also important to be aware of what servers are Global Catalog servers, especially if you have more than one domain and even if only one domain, they will be prefered by applications like Exchange server. It is recommended to place the forest roles on one Domain Controller (DC) and the domain roles on another server. If not all Domain Controllers are Global Catalog servers, it is also important to place the infrastructure master on a server that is NOT a Global Catalog server. Recommended Best Practice setup of FSMO roles. Domain Controller #1 Place the two forest roles on this server. * Schema Master * Domain Master Domain Controller #2 Place the domain roles on this server. * RID Master * Infrastructure Master * PDC Emulator If more domains exist in the forest, place the domain roles on a server in theese domains like Domain Controller #2 Global Catalog configuration. In Windows 2008 Active Directory all Domain Controllers are by default Global Catalog servers, personally...

Words: 10360 - Pages: 42

Premium Essay

Nothing

...practices, various media and interconnection components), networking devices and their specifications and functions. Students will practice designing physical network solutions based on appropriate capacity planning and implementing various installation, testing and troubleshooting techniques for a computer network. Where Does This Course Belong? | | | NT2799 | | | | | | | | NSA Capstone | | | | | | | Project | | | | | NT2580 | | | NT2670 | NT2640 | | PT2520 | | Introduction to | | | | | | | | | | | Email and Web | | | | | Information | | | | IP Networking | | Database Concepts | | | | | Services | | | | | Security | | | | | | | | | | | | | | | | NT1330 | | | NT1230 | NT1430 | | PT1420 | | Client-Server | | | Client-Server | | | Introduction to |...

Words: 10839 - Pages: 44