click below
click below
Normal Size Small Size show me how
VU C+
VU C+ Programming Test 1
| Question | Answer |
|---|---|
| CPU | Central Processing Unit |
| I/O | Input Output |
| RAM | Random Access Memory |
| LAN | Local Area Network |
| ROM | Read Only Memory |
| ASCII | American Standard Code for Imformation Interchange |
| Name 3 peripheral Devices | Printer Scanner Disk-Drive |
| Machine Language | A system of instruction and data executed by a systems CPU |
| Name 3 high-level languages | Basic C+ Pascal |
| What does a compiler do? | Transforms source code typically written in high-level language to a target code typically written in low-language code |
| 3 bits can label how many things? | 8 items -- 0-7 |
| Hexadecimal digits | 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F |
| Negative Numbers | 0=positive |
| MSB and LSB | MSB is the digit furthest left |
| vi | invokes the editor |
| vcc | compiles |
| ls | lists items in the directory |
| cd | changes the directory |
| cp | copy |
| Real numbers | float |
| integers | int |
| <stdio.h> | standard input output |
| Stop a running program | ctrl c or z |
| new line | \n |
| tab over | \t |
| display \ | \\ |
| execute program | ./program_name |
| display " | \" |
| x^y | pow(x,y) |
| inverse tan | atan(x) |
| scan function | written as scanf("%d,%f",&integer_variable_name,&real_variable_name); |
| star/end programing code | { |
| top of program | #include<stdio.h> |
| print function | printf("Random text and number such as, month=%2d and income=%3.2f",integervariable,realvariable); |
| dont forget to look at conversions | fool |