Practice Midterm Flashcards

1
Q

When using the command line on a computer, what does PWD mean in UNIX and PowerShell?

A

Print Working Directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When using the command line on a computer, what command will tell me my computer’s network name ?

A

hostname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When using the command line on a computer, what command do you use to make a directory in UNIX and PowerShell?

A

mkdir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When using the command line on a computer, what command is used to changed directory in UNIX and PowerShell?

A

cd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

When using the command line on a computer, what command is used to list a directory in UNIX and PowerShell?

A

ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

When using the command line on a computer, what command is used to make a directory in UNIX and PowerShell?

A

mkdir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When using the command line on a computer, what does the command RMDIR used for in UNIX and PowerShell?

A

Remove directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When using the command line on a computer, what command is used to become super user root in UNIX and PowerShell?

A

runas (Windows) or sudo (UNIX)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When using the command line on a computer, what command is used to read a manual page in UNIX and PowerShell?

A

help (Windows) man (UNIX)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When using the command line on a computer, what command is used to print some arguments in UNIX and PowerShell?

A

echo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When done with the SHELL, what command do you use to exit the program?

A

exit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When using the command line on a computer, what command is used to make an empty text file called Test Doc in UNIX and PowerShell?

A

New-Item Test_Doc.txt (Windows) OR touch Test_Doc.txt (UNIX)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

In python, how you code a Hello, World program?

A

print “Hello World!”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In python, can we write x=100 instead of x = 100?

A

yes, but it is bad form

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In computer programming, what is the # symbol called

A

Octothorpe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

In python, comments are proceeded with;

A

#

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

In python, the comma ( , ) is used to break lines of code that are longer than 80 characters. Do you have to use the comma?

A

You do not have to use a comma, but it is considered bad form

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

When coding in python %r is for what?

A

debugging

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

When coding in python the “”” is what kind of command

A

Multi-line string

20
Q

In python, there are a number of built in math functions. What does the % symbol represent

21
Q

true or false: Python is a scripting language and therefore uses an interpreter and not a compiler

22
Q

True or false: The main advantages of primary batteries are their high energy density, long storage life, and ease of disposal

23
Q

True or False: One convenient alternative from to the lead-acid battery is the gel cell, which contains a semisolid electrolyte that prevents spillage.

24
Q

What does this circuit represent?

looks like H

25
What does this circuit represent? | Looks like a triangle person.
Operational Amplifier
26
What does MTTF stand for?
Mean Time to Failure
27
What is the advantage of using Lead Acid batteries in robotics applications?
Cheap Easily rechargeable High power output capability
28
What is the advantage of Alkaline batteries?
Popular and well-known Relatively safe Long shelf-life
29
What is the advantage of NiCad batteries?
Inexpensive Rugged Come in "standard" sizes and are easy to recharge
30
What is the advantage of NiMH batteries?
Good alternative to Alkalines in most situations High power density, "standard" size, not as rugged Better capability than alkalines and pretty easy to recharge
31
What is the advantage of Lithium Ion and Lithium Polymer Batteries?
Ultra-light weight High power and high capability High cell voltage
32
What is the advantage of Lithium Coin Cell batteries?
Light, high-density, small, and inexpensive High cell voltage Easy to stack for higher voltages
33
Which Battery has the highest power density? 2
Lithium Coin Cell
34
The human brain has what advantage over the modern computer?
Humans make faster descisions when the brain stores more information
35
Microprocessors/Microcontrollers typically operate at what voltage?
5 volts
36
What would be the challenge of using an AI to control an UE prosthesis?
The AI would need in excess of a billion memories to learn a small environment
37
Proprio, C-leg, and Rheo use what type of battery?
Lithium-Ion
38
In February 2003 by the European Union adopted what directive that restricts the use of six hazardous materials in the manufacture of various types of electronic and electrical equipment?
Restriction of Hazardous Substances Directive (RoHS)
39
Which battery has the disadvantage of being very heavy, and tend to be very large bricks because power density is very low?
Lead Acid
40
Which battery is known for being Non-rechargeable, low-capability costs about $1 and has up to 3000 mAh of charge capacity
Alkaline
41
Which statement is true regarding NiMH batteries?
More expensive than Ni-Cads, service life isnt as long, don't like to be used in a high-drain system, self-discharges quickly. Good alternative to Alkalines in most situations, high power density, "standard" size, better capability than alkalines, pretty easy to recharge but not as rugged.
42
Which of the following are characteristics of the C-Leg?
Initial Stance Phase Flexion, Stumble Recovery, Swing Resistance Self Adjusts to Incline Change, Stairs and Ramp Safety, Programmable On-board microprocessor (PIC16C74B)
43
Which statement is true regarding the Rheo Knee?
Provides the user with Initial Stance Phase Flexion, Stumble Recovery, and Resistance Self Adjusts to Incline Change, Stairs and Ramp Safety, Programmable, and Artificial Intelligence (AI) Embedded microprocessor (Motorola 68HC11)
44
Which battery is known to be Lower power density, requires "full discharge/recharge" cycles every once in a while to reduce memory effect' (the growth of crystals on the battery plates), contains toxic metal?
Ni-Cad
45
What type of architecture has physically separate storage and signal pathways for instructions and data?
Harvard architecture
46
What computer architecture is faster for a given circuit complexity because instruction fetches and data access do not contend for a single memory pathway?
Harvard architecture