考试大纲
高级语言程序设计(双语)
首页
| 负责人 | 课程介绍 | 教学大纲 | 教案 | 课件 | 考试大纲 | 实训内容


高级语言程序设计(双语)

THE C ROGRAMMING LANGUAGE

课程性质:Professional Basic Course

适用专业:Electronic and Information Engineering

 

一、课程的目的与任务

An introduction to the "C" language and to the use of structured programming techniques. Emphasis is on the solution of complex computational problems by their analysis into smaller, sub-problems that can be solved independently and then combined to form a complete solution. Other topics relevant to OS will be introduced. There is no assumption of any previous study or use of computers.

二、课程考试的内容

1Getting started

Basics of programming

Introduction to C

Variables

Identifiers

 

2Data Type,Declarations,and Displays

Basic Data Types

Expressions

Operators

Modularity

Functions

 

3Assignments,Addresses,and Interactive Input

“main” Functions

printf

Assignments

Symbolic Constants, #define

Memory

Addresses

Function declaration, call

scanf

 

4Selection

scanf review, examples

relational (==, !=, <, <=, >, >=) and logical (&&, ||) expressions review

if, if-else

compound statement

nested if (if-else if-else if …)

switch

 

5Repetition

flowchart notation and loops

while loops

do-while loops

for loops

 

6Writing Your Own Functions

scope of variables

temporary variables

compound statements (blocks) and variables

arguments, "pass by value"

extracting a block into a function

Local and global variables

Storage classes: automatic, static, external, register.

 

7Arrays

Single-Dimensional Arrays

  Input and Output of Array Values

  Array Initialization

  Passing Arrays

  Two-Dimensional Arrays

  Larger Dimensional Arrays

  Search Algorithms

  Linear Search

  Sort Algorithms

  The Selection Sort

 

8Arrays,Addresses,and Pointers

Array Names as Pointers

  Pointer Arithmetic

  Pointer Initialization

  Passing and Using Array Addresses

  Advanced Pointer Notation

 

9Character Strings

strings

string.h & ctype.h

library routines

structures

files

typedef

structures

code examples

 

三、课程成绩评定标准

Attendance 10% lab 20% Final 70%

 

四、期末考试的题型

Part I. Answer the following questions. (in total 20 marks.)

Part II. The following multiple choice questions have only one correct answer.

   (in total 40 marks.)

Part writing program (in total 40 marks.)