銀行資料庫筆試程式設計題

2021-09-30 23:04:16 字數 1139 閱讀 2919

一、寫乙個演算法對1,8,5,2,4,9,7進行順序排列並給出所使用方法。

我所用的方法:

int a=;

for(int i=0;ia[j])

}system.out.print(a[i]+",");}

程式設計思想:看到題目上的數字,首先應該想到迴圈輸出,自然想到for迴圈了,接下來就要思考輸出的順序了。對於新手來說順序輸出應該有點難度,通過比較數字大小來排序輸出,利用陣列順序輸出並在控制台列印出。

在網上蒐集到的方法:

//用連性表的 形式 這樣可以做到釋放記憶體 同時高速排序數量小的情況 用樓上的 數量多 用這種 高速高效

treemap demo = new  treemap();

demo.put("1",null);

demo.put("8",null);

demo.put("5",null);

demo.put("2",null);

demo.put("4",null);

demo.put("9",null);

demo.put("7",null);

iterator it= demo.keyset().iterator();

while(it.hasnext())

it.remove();

demo.clear();

二、乙個簡單的銀行賬務系統,其資料大致涉及:

客戶(客戶名、身份證號,年齡,性別,住址,**);

存款賬戶(賬號,類別,餘額);

存款帳分錄(交易日期,借貸標誌,金額)。

1.採用任一主流資料庫(oracle,db2,mssqlserver,mysql)等ddl寫出表的定義。

2.列出某客戶(張三)之所有賬戶號;

3.李四是一位新開戶的客戶,新增所涉及的資料庫表;

4.列出客戶(李四)在2012/3/1到2012/3/7期間發生的交易金額記錄。

如果是去涉及到銀行開發的公司第二題這種型別的資料庫題目是必考的,迄今為止,本人還沒能全部寫出,希望it大神不吝賜教,寫出您的思考方法,好讓以後

面試

此類題的人能得心應手。   

mysql資料庫銀行專案題 銀行資料庫筆試程式設計題

1 建表 create table customer cid int identity 1,1 not null,customername nvarchar 100 not null,客戶名 idcard nvarchar 18 null,身份證號 age int null,年齡 gender sm...

筆試 程式設計題

1.class a class b public a int main 2.int main 3.int func int a int main little endian int main char p char a 2 printf 0x x,0x x,0x x p 1 p,short p re...

騰訊筆試程式設計題

題目需求 對於乙個十進位制的正整數,定義f n 為其各位數字的平方和,如 f 13 1 2 3 2 10 f 207 2 2 0 2 7 2 53 下面給出三個正整數k,a,b,你需要計算有多少個正整數n滿足a n b,且k f n n 輸入 第一行包含3個正整數k,a,b,k 1,a,b 10 1...