Documente online.
Zona de administrare documente. Fisierele tale
Am uitat parola x Creaza cont nou
 HomeExploreaza
upload
Upload




Lecture 1. Computers, Operating systems, Programs

computers


Lecture 1. Computers, Operating systems, Programs

Exercise 1.1 Respond to the following questions:

General

G.1 What PC stands for?

A. Programming computer



B. Personal Computer

C. Personal calculator

D. Programming Calculator

G.2 Which one of the following is not a basic function of a PC?

A. Storing.

B. Displaying.

C. Printing.

D. Sending and receivin 20320p151u g.

G.3 A binary file can be

A. A text file

B. A graphics file

C. A source file

D. accessed by two tasks in the same time

G.4 WWW comes from

A. World Wide Web

B. Windows World Web

C. Window Widespread Web

D. Wild Wild West

G.5 What is E-Mail?

A. A kind of Economic Mail

B. Electronic Mail

C. The Mail that uses computers

D. The newest kind of Mail

G.6 A measure of primary or secondary memory common to computers. (1024 X 1024 bytes)

A.KB

B.GB

C. MB

D.TB

G.7 The numeric representation of the on and off electrical status in a computer.

A. Byte

B. Data Stream

C. Bit

D. Parity

G.8 To gain access to a network system by dialing the telephone number and entering an identification number and password.

A. Connect

B. Dial-Up

C. Logging

D. Hacking

G.9 The global network of networks.

A. Dotnet

B. Intranet

C. Ultranet

D. Internet

G.10 Copying computer programs without authorization from the creator for personal or commercial use is

A. Larceny

B. Piracy

C. Theft

D. Robbery

G.11 Data that has been translated into a secret code for security reasons.

A. Encrypted

B. Modified

C. Altered

D. Hidden

G.12 The activity of computer enthusiasts who are challenged by the practice of breaking computer security measures.

A.Haking

B. Cracking

C. Breaking

D. None of A.,B.,C.

G.13 An individual's rights regarding the collection, processing, storage, distribution, and use of data about his or her personal traits or activities.

A. Privacy

B. Ethics

C. Freedom

D. Usage

G.14 Crime directed against hardware or software which physically damages the equipment and requires no special expertise on the part of the criminal.

A. Comp. vandalism

B. Computer hacking

C. Computer cracking

D. Computer violence

G.15 An individual that penetrates the security measures and get access/ control on certain computers.

A. Hacker

B. Cracker

C. Breaker

D. Intruder

G.16 To receive into a computer an electronically transmitted file.

A. Obtaining

B. Getting

C. Receiving

D. Downloading

G.17 A physical device, such as a computer or printer, that is connected to a network system.

A. Network device

B. Network node

C. Network element

D. Network resource

G.18 The smallest unit of data that a computer can process.

A. Bit

B. Byte

C. Segment

D. Chip

Hardware

H.1 The HD's stay

A. always inside the computer

B. inside the computer for mechanical protection

C. always outside the computer

D. always connected to the computer

H.2 The microphone plugs into

A. The PC

B. An appropriate card

C. The loudspeakers

D. The Amplifier

H.3 A CD-ROM can hold the same amount of data as

A. 300 5 1/4" floppies

B. 400 3 1/2" floppies

C. 300 3 ½" floppies

D. 400 5 1/4" floppies

H.4 Which one is the newest controller type

A. IDE

B. SCSI

C. EIDE

D. ATA

H.5 Which one of these printers is the most expensive:

A. Bubble jet Printers

B. Ink jet Printers

C. Desk jet Printers

D. I don't know

H.6 Which is the smallest object of these ones:

A. Cluster

B. Partition

C. Sector

D. Partition

H.7 The RAM is used to

A. Speed up the computer

B. Process data

C. Store temporary data

D. Maintain the stability of the PC

H.8 The mouse is usually connected to:

A. the 9 pin serial port

B. the 25 pin serial port

C. The 21 pins parallel port

D. The mouse bus

H.9 Which one of the following is a certain disadvantage of Inkjet printers

A. Numbers of colors

B. Cost per printed page

C. Speed

D. Noise

H.10 Can be a computer used as a fax machine?

A. Always

B. If it has a printer and a sound card

C. If it has a printer and a network card

D. If it has a printer and a modem card.

H.11 Speakers:

A. Use usually digital sound

B. Are usually shielded

C. Come always in pairs

D. None of the first choices

H.12 A good monitor

A. Should be interlaced

B. Should have the minimum resolution

C. Should have 65.535 colors

D. Should have 15 inches

H.13 The access time for a Hard Disk is of the order of:

A. seconds

B. milliseconds

C. hundreds of nanoseconds

D. tens of nanoseconds

H.14 Processes the data and controls the functions of the computer.

A. Memory

B. Computer Core

C. CPU

D. Controller

H.15 Measurement used to state the internal clock speed of a computer.

A. Nanosecond

B.Megahertz

C. Milisecond

D. Microsecond

H.16 A device that modulates and demodulates signals transmitted over communication lines.

A. Modem

B. Telephone

C. Cellular Phone

D. Modulator

H.17 The smallest element on a video display screen.

A. Bit

B. Pixel

C. Point

D. Dot

H.18 A temporary memory storage.

A. Buffer

B. EPROM

C. RAM

D. NVRAM

H.19 A measure of the resolution of characters displayed by a monitor or printer.

A.PRI

B.MMC

C.DPI

D.SPP

H.20 The amount of data that can be stored on a HD 3.5" floppy disk.

A. 1.88 MB

B. 1.2 MB

C. 1.44 MB

D. 2.4 MB

H.21 An input device, output device, or secondary storage unit connected to a computer.

A. Mixed device

B. Peripheral device

C. External equipment

D. Storage device

H.22 A form of primary computer memory into which instructions and data can be written to, read from, and easily erased.

A. CMOS

B.EPROM

C.ROM

D. RAM

H.23 A computer which can process eight bytes of data at one time is a

A. 64-bit computer

B. Fast computer

C. It is not possible

D. Mainframe

H.24 Hardware connections through which the components of the computer system talk to each other.

A. Data connections

B. Interfaces: parallel

C. Interfaces: serial

D. Busses

H.25 The phone line signal which a modem translates to a signal the computer can process.

A. Analog

B. Digital

C. Hybrid

D. None of A.,B.,C.

H.26 Data fed into the computer for processing.

A. Primary data

B. Raw data

C. Text data

D. Typed data

H.27 The measurement of the speed of data transmitted in one second.

A. GHz

B. MHz

C. GBytes

D. Bps/baud rate

Operating Systems

O.1 When you double click on an item, you usually:

A. Select the item

B. Access the properties of the item

C. Prepare it for drag and drop

D. Execute or open it

O.2 When you select a window title from the Window menu, what does Windows do to the associated group window?

A. Activates

B. Closes

C Enlarges.

D. Opens

O.3 Which of the following can be used to resize a group window?

A. Arrange Icons command on the Options menu

B. Resize command on the Window menu

C. Title bar

D. Window border

O.4 What are small pictures that represent an individual application or groups of applications?

A. Menu boxes

B. Icons

C. Option boxes

D. Scroll bars

O.5 Which keys are used to switch between applications on the desktop?

A. ALT, CTRL

B. ALT, TAB

C. ESC, CTRL

D. SHIFT, ALT

O.6 Which key is used when selecting a group of files?

A. ALT

B. CTRL

C. ESC

D. TAB

O.7 After selecting a group of files, what would you do to copy the files to a new drive or directory?

A. Click and shift

B. Double click

C. Click and drag

D. None of the above

O.8 Which menu allows you to format a diskette?

A. File Manager

B. Online Help

C. Paintbrush

D. Program Manager

O.9 Which of the following contains the directory structure of the current drive?

A. Contents list

B. Split bar

C. Directory tree

D. Status bar

O.10 An on-screen symbol consisting of a letter and > that indicates the operating system is ready for a command represents the.

A. DOS system

B. Line Feed

C. System Prompt

D. Game Console

O.11 Running two or more programs on a computer at once is

A. Parallel Programming

B. Gatekeeping

C. Forking

D. Multitasking

O.12 The operating system command which prepares a disk to receive data or programs.

A. Scandisk

B. Prepare

C. Format

D. Move

O.13 The routines that control the computer and gives the user control over hardware and software.

A. BIOS

B. Scandisk

C.Command.com

D. Operating System

The main directory of a disk from which other directories branch.

A. Folder

B. Root

C. Principal

D. Main

The process of loading the operating system into the main memory of a computer.

A. Reloading

B. Booting

C. Loading

D. Starting

Software

S.1 Which menu contains the commands that allow you to rename or delete a file?

A. Disk

B. File

C. Options

D. Window

S.2 When searching for help, which button displays a list of Help topics?

A. Topics

B. Go To

C. Search

D. Show Topics

S.3 A computer program that can prevent the infection of a computer by known viruses.

A. Anti-Virus

B. Operating System

C. Resident Program

D. Task Scheduler

S.4 In order to download some files, you need:

A. The Telnet Service

B. The Gopher Service

C. The FTP Service

D. The POP Service

S.5 The combined use of moving and still images, text, sound, or animation in communication.

A. HTML

B. Multimedia

C. Publishing

D. Internet

S.6 The combination of text and graphics in the creation of a professional looking document.

A. Desktop Publishing

B. Editing

C. Binding

D. Word Processing

S.7 A collection of related data fields that contain information about one subject.

A. Cell

B. Field

C. Database

D. Record

S.8 A subdivision of a record that holds a meaningful item of data.

A. Folder

B. Field

C. Database

D. Storage

S.9 The act of preparing documents and manipulating text electronically.

A. Text proofing

B. Database management

C. Morphing

D. Word Processing

S.10 Software written primarily to organize, process, and retrieve items of data.

A. Spreadsheet

B. Organizer

C. Data application

D. Database

S.11 Software written primarily to solve numeric problems using rows and columns..

A. Excel

B. Database

C. Spreadsheet

D. Matrix maker

S.12 Programs written for solving a specific user problem or for performing a specific task.

A. Games

B. Databases

C. Application Software

D. Custom operating system

S.13 A computer program that can destroy the contents of a hard or floppy disk.

A. Virus

B. Format

C. Command.com

D. Win32

S.14 A software that allows the user to connect to and navigate the Internet.

A. Explorer

B. Browser

C. Navigator

D. Searcher

Lecture 3. Matlab Introduction, Command line, Getting Help,

Exercise 3.1 Construct a matrix A[5 5] with random entries

Exercise 3.2 Change the values of all the entries in the submatrix consisting of the last 3 rows and the last 3 columns of A[5 5] to

.Use the end command. Do not use loops.

Exercise 3.3 Change the values of all the entries of A[5 5] in the first two rows to ones. Then change the values of all the entries of N in the last three columns to fives.

Exercise 3.4 Change the values of all the entries in the sub-matrix consisting of rows 4 to 6 and columns 4 to 6 of the matrix A[10 10] to ones. Can you find a way to do this without using the ones function (using a scalar)? Again, do not use loops.

Exercise 3.5 Create a 6x6 matrix, P, with some random values. Change the values in the upper left corner to the value in the upper right corner and change the value of the lower left corner to the value of the lower right corner in one Matlab statement.

Exercise 3.6 Create a matrix A[4 4] with random values. Reverse all the rows in A.

Exercise 3.7 Create a matrix A[10 10] with random values. In one line of code, switch A(1,1) and A(10,10).

Exercise 3.8 Write an m-file function to return the solutions of the equation zn-a=0, with n,a N.

Exercise 3.9 Construct a 9x9 matrix, M, of random entries between 0 and 100. Change the values of all the entries in the first 3 rows and 3 columns of M to zeros using colon notation. Use the zeros function. Do not use loops.

Exercise 3.10 Find out the values for sinus(2), sinus(0), cosinus(pi/3), tangent(p/2), 10100, 101101, 10011001, pe, ep, (1+i)10, (2+i*3/p)1/2

Exercise 3.11 Create a table with the values of the basic trigonometric functions (sinus, cosinus, tangent, cotangent) with the arguments the grades from 0º to 180º.

Exercise 3.12 Generate a matrix A[5 5] with random elements 0 or1.

Exercise 3.13 Build the vectors

a1=[100,95,90, ... ,-95,-100]

a2=[sin (pi),sin(2 pi), ... ,sin(10 pi)]

a=[0,1,1, ... ,1,1,0] with 10 elements

Exercise 3.14 Build the vector v=[1^2,2^2, ... ,10^2]

Exercise 3.15 Build the vector v=[2,4, ... ,2^20]

Exercise 3.16 Build the vector with complex number entries v=[1+i,1+2i,1+3i, ... ,1+50i].

Lecture 4. Matlab Script and Function Files, I/O Functions

Exercise 4.1 Write a script to find which number is bigger: 10199 or 99101?

Exercise 4.2 Write a function to verify that a number is prime. Use it to find out the first 10000 prime numbers.

Exercise 4.3 Define an array x with 100 elements, where xn+1= and x1=100. Why are the last elements equal? How much equal are they?

Exercise 4.4 How much is the determinant of

Why?

Exercise 4.5 Solve the equation x^25+2*x^4-3*x^2+x+1=0

Exercise 4.6 Solve the system

Exercise 4.7 Compute log10(5.2*7.3) and log10(5.2)+log10(7.3), and also verify that 10log10(e)=e

Exercise 4.8 Find out the values of sin(90°), cos (45°), tan(35°). The trigonometric functions assume the argument is given in terms of radians

Exercise 4.9 Plot the graph of 2*sin(x)+3*cos(x/2+2)-sin(x^3) for x in [0 10]. Which is the max and the min?

Exercise 4.10 Determine the eigenvalues for the matrix

Exercise 4.11 Determine the polynomial y of degree 5 that fits better the points

x(1 2 3 4 5 6 7) , y(2 3 1 4 5 6 7);

Exercise 4.12 Create a vector of the even integer numbers between 23 and 175.

Exercise 4.13 Create a vector of the even integer numbers between 23 and 175. The numbers must not be multiples of 5.

Exercise 4.14 Create a vector x with the elements, xn = (-1)n+1/(2n-1), with n=1:100. What is the sum of the elements of this vector?

Exercise 4.15 Write down the function that will compute the length of the hypotenuse of a right triangle given the lengths of the sides

Exercise 4.16 Compute the angles of a triangle given the lengths of the three sides, using the cosine rule c2 = a2 + b2 - 2abcos(), where t is the included angle between the given sides.

Exercise 4.17 Write a MATLAB function mat_max.m that finds the maximum (largest value) of a matrix and the location of this maximum. The input is the matrix A, and the outputs will be maxvalue: largest entry in A and rmax, cmax: integers specifying the (row,column) location of the max value.

Exercise 4.18 Given the dimension n, compute the matrix A[nxn] having the elements:

Exercise 4.19 Define a Matlab function that will implement:

Exercise 4.20 Write a function to find the first 10000 prime numbers using matlab predefined functions. Compare the execution time and number of operations with the solution from Exercise 4.2.

Lecture 5. Flow Control

Exercise 5.1 Write a script file that asks for the user's name Name and sex (M or F).

If the user is female - F, the program should return "Hello Miss [Name]!" and if the user is male - M, the program should return "Hello Mister [Name]!"

Exercise 5.2 Write a script file that asks the user for a positive integer, n, and returns the product of all positive even integers less than or equal to n. The user should be able to do this repeatedly as many times as the user agrees.

Exercise 5.3 Write a Matlab program that asks the user for an integer and returns a text indicating if the number is positive, negative, or zero.

Exercise 5.4 Write a short Matlab program to input an integer n and build a n by n matrix with the numbers 1,2,... ,n on the main diagonal and zeros everywhere else (hint: Look at the command diag .

Exercise 5.5 Write a short Matlab program to input an integer n and build the n by n matrix A with entries A(i.k)=i+k*ik.

Exercise 5.6 Write a short Matlab program to compute the first 100 Fibonnaci numbers: F(1)=1, F(2)=1, F(n)=F(n-1)+F(n-2)

Exercise 5.7 Write a program to introduce a matrix A with n lines and m columns element by element.

Exercise 5.8 Construct a square matrix A[n n] having as elements . Use loops. Do it again without using loops.

Exercise 5.9 Construct a square matrix A[n n] having as elements . Use loops. Do it again without using loops.

Exercise 5.10 Construct a square matrix A[n n] having as elements . Use loops. Do it again without using loops.

Exercise 5.11 Write a function to compute the greatest common divisor (GCD) of two numbers a and b, using the Euclid algorithm. The algorithm is:

read a, b

compute the remainder of a/b

replace a by b

replace b by the remainder computed in 2)

repeat the steps 1-4 until b is 0

the GCD is the final value of a

Exercise 5.12 Write the function pos_primes_f that will use a "for" cycle to find out the positions of prime numbers in a given array.

Lecture 6. Strings, Set Operations, Plotting

Exercise 6.1 Obtain the extended ASCII characters (codes from 0 to 255).

Exercise 6.2 What are the codes of the keyboard characters?

!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ [\]^_`abcdefghijklmnopqrstuvwxyz~

Exercise 6.3 What are the codes of the digits from 0 to 9?

0123456789

Exercise 6.4 What are the codes of the uppercase letters?

ABCDEFGHIJKLMNOPQRSTUVWXYZ

Exercise 6.5 What are the codes of the lowercase letters?

abcdefghijklmnopqrstuvwxyz

Exercise 6.6 Display the Bizarro characters (codes from 123 to 255)

¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß

àáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ

Exercise 6.7 Build a table of the numbers n, log(n)/n and 10^n*exp(n) with n=1 2 3 4 5 6 7 8 9 10. If you just do it without thought the output looks terrible. Try using fprintf to get a better look.

Exercise 6.8 Plot a sin function for values of the argument between 0 and 4*pi;

Exercise 6.9 Plot the functions x, x3, ex and , sin(x), tan(x), over the interval 0 < x < 5.

Exercise 6.10 Plot both y=x and y= x2 over the interval [0,10] and choose your own colors and symbols for each curve?

Exercise 6.11 Make a good-looking plot of the function f(x) = sin(1/x) for 0.01 < x < 0.1. What do you have to do such that the function looks good?

Exercise 6.12. Exercise Write a Matlab program that emulates the random selection of values for the "6 from 49" Romanian National Lottery game

Exercise 6.13 Plot on the same graph 3 sinusoidal functions with the phase difference of 2p/3 for values of t between 0 and 4*pi;

Exercise 6.14 Obtain the four graphs (in a 2*2 subplot) of a cosine, sine, tangent and cotangent function for values between 0 and pi/2;

Exercise 6.15 On the same axes plot sin(t*pi*x) for t=1..5. Use x=0:.1:2*pi.

Exercise 6.16 Plot sin(x)/x on -5*pi to 5*pi

Exercise 6.16 Plot x*cos(1/x-) on the interval 10 to 1000.

Exercise 6.17 Write a script that will draw a spiral. Use polar coordinates

Exercise 6.18 Write a script that will draw a spiral. Use complex number plots.

Lecture 2. Problems, Computer solving Problems, Algorithms.

Laboratory 2.

Lecture 7. File I/O Functions

Laboratory 7. File I/O Functions

Lecture 8. Functions

Laboratory 8.

Lecture 9. Recurrent Functions, Backtracking

Laboratory 9. Recurrent Functions, Backtracking

Lecture 10. Using Excel to solve mathematical, engineering Problems.

Laboratory 10. Excel Solving Problems

Lecture 11. Engineering Problems 1- Max/Min, Sorting.

Lecture 12. Engineering Problems 2 - Equations, Derivatives, Integrals, Monte Carlo

Lecture 13. Engineering Problems 3 - Differential Equations, Arrays, Optimizations

Lecture 14. GUIs in MATLAB -


Document Info


Accesari: 1567
Apreciat: hand-up

Comenteaza documentul:

Nu esti inregistrat
Trebuie sa fii utilizator inregistrat pentru a putea comenta


Creaza cont nou

A fost util?

Daca documentul a fost util si crezi ca merita
sa adaugi un link catre el la tine in site


in pagina web a site-ului tau.




eCoduri.com - coduri postale, contabile, CAEN sau bancare

Politica de confidentialitate | Termenii si conditii de utilizare




Copyright © Contact (SCRIGROUP Int. 2024 )