一套Java+软件工程的面试题

匿名网友 匿名网友 发布于: 2015-08-30 00:00:00
阅读 119 收藏 0 点赞 0 评论 0

1.    String s = new String(‘xyz’); 请问产生几个String Object?
2.    软件工程可以分为几个阶段?请问各个阶段的作用是什么?
3.    值类型与引用类型的区别?用C#事例说明?
4.    编写一个冒泡排序的程序。
6    举例说明你所熟悉几种设计模式,说明各种模式在何种情况下使用?
7  你如何理解委托,一般在什么情况下用?
8  你做过的C/S结构程序中你用的是几层架构,为什么要用,各层间的关系是什么?
9:请问此程序的输出结果:
using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{

public class A
{
public A()
{
Fun();
}

public virtual void Fun()
{

}

}

class B : A
{
int x = 1;
int y;
public B()
{
y = 1;
}

public override void Fun()
{
Console.WriteLine(“x={0},y={1}”, x, y);
}
}
class Program
{
static void Main(string[] args)
{
B a = new B();
Console.ReadKey();
}
}
}
10.
Student学生信息表
Id(primary key) name sex class
Sch科目表
ID(primary key) name
Score成绩表
ID Uid(foreign key references Student(Id)) Sid(foreign key references Sch (ID)) num

A求各个班的总人数
B求1班的男生和2班的女生的平均成绩
C求各个班“数据类型”课不及格的学生数量

应用存储过程写个交叉表。

评论列表
文章目录