今天做了一下Morgan Stanley 的IKM assessment,我选择的是java方向,26分钟,没有规定有少道题,都是多选题,5个选项,最多可以选三个。

感觉这个系统好特别,比如说有好几个选项都是对的,但是判断不同选项正确与否的难易程度不一样,正确选择到那些比较有含金量的选项,最后的得分会高些。

回忆一下其中的一些题。

1.Java 异常处理

public class Test {

public static void main(String args[]) {

int x = 5;

int y = 0;

int z = 3;

try {

try {

System.out.println(x);

System.out.println(x / y);

System.out.println(z);

} catch (ArithmeticException ae) {

System.out.println("Inner Arithmetic Exception");

throw ae;

} catch (RuntimeException re) {

System.out.println("Inner Runtime Exception");

throw re;

} finally {

System.out.println("Finally");

}

} catch (Exception e) {

System.out.println("Outer Exception");

}

}

}

运行结果:

5

Inner Arithmetic Exception

Finally

Outer Exception

第二句打印中,产生除零异常,这时捕获异常的catch块,首先捕获到算术异常,打印出Inner Arithmetic Exception。捕获到异常后,还可以再次抛出异常之,如代码中所示。

在同一个try中,异常被捕获后不会再往下传递,所以内部的第二个异常捕获块没有捕获到Runtime Exception。

在异常捕获之后,finally语句是一定会执行的,一般情况下在finnaly中做一些善后处理工作。这里打印出Finally。

在外层还有catch块捕获异常,这里所捕获的就是刚才又throw出来的异常,所以会打印出Outer Exception。

如果没有代码中的throw语句,外层try{}catch(){}将不会捕获到异常。

2. Math的各种用法

public class Test {

public static void main(String args[]) {

double d = -27.2345;

System.out.println(Math.round(d));

System.out.println(Math.abs(d));

System.out.println(Math.floor(d));

System.out.println(Math.ceil(d));

}

}

运行结果:

-27

27.2345

-28.0

-27.0

这题考查的是对Math各种用法的使用。

(1)long java.lang.Math.round(double a)  对a四舍五入

Returns the closest long to the argument, with ties rounding up.

Special cases:

If the argument is NaN, the result is 0.

If the argument is negative infinity or any value less than or equal to the value of Long.MIN_VALUE, the result is equal to the value of Long.MIN_VALUE.

If the argument is positive infinity or any value greater than or equal to the value of Long.MAX_VALUE, the result is equal to the value of Long.MAX_VALUE.

(2)double java.lang.Math.abs(double a)  求a的绝对值

Returns the absolute value of a double value. If the argument is not negative, the argument is returned. If the argument is negative, the negation of the argument is returned. Special cases:

If the argument is positive zero or negative zero, the result is positive zero.

If the argument is infinite, the result is positive infinity.

If the argument is NaN, the result is NaN.

(3)double java.lang.Math.floor(double a)  求不大于a小的最大值

Returns the largest (closest to positive infinity) double value that is less than or equal to the argument and is equal to a mathematical integer. Special cases:

If the argument value is already equal to a mathematical integer, then the result is the same as the argument.

If the argument is NaN or an infinity or positive zero or negative zero, then the result is the same as the argument.

(4)double java.lang.Math.ceil(double a)  求不小于a的最小值

Returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer. Special cases:

If the argument value is already equal to a mathematical integer, then the result is the same as the argument.

If the argument is NaN or an infinity or positive zero or negative zero, then the result is the same as the argument.

If the argument value is less than zero but greater than -1.0, then the result is negative zero.

floor是“地板”,向下取数;ceil是“天花板”,向上取数。

3. OSI体系结构中的网络通信模型,physical layer的功能属性

隐约记得选项有:比特同步;将package拆分成frame;与Session相关balalala。。。其他的记不清楚了。

由于时间本身就不长,加上全英文的题,读题加上理解都得半天,最后好像就做了15题左右,感觉肯定要悲剧了。

果然像大摩这样的地方来者不善啊,被小小的打击了一下。考的内容总体来说比较基础,也很细致,还有一些设计模式的题,由于没有接触过太多,基本都skip掉了。这应该是根据大摩项目特点有关系,金融IT项目要求健壮性和维护性高,需要准确的细节和良好的设计作为支撑。

ikm java_2013Morgan Stanley IKM assessment相关推荐

  1. Morgan Stanley IT笔试面试经验

    转自http://blog.csdn.net/wqfhenanxc/article/details/20965039 Morgan Stanley IT笔试题部分回忆版 特点: 1. 题量大,43页的 ...

  2. 应聘Morgan Stanley(转)

    虽然应聘Morgan Stanley IT 已经告一段落了,但应聘过程中所经历的一切我想我永远都不会忘记,故写下此文,留作纪念. [前言]         第一次听说Morgan Stanley 还是 ...

  3. 刚做了Morgan Stanley IT部门Summer Intern的online test

    今天天气不错,不想浪费这种大好时光,最近找实习是有点小stress,得去宣泄下,于是跑到公园去烧烤了,其间焦肉黑炭百出丑态暂且不提,带着一身肉味和疲惫回到寝室,打开电脑,猛灌了一袋牛奶.风萧萧兮易水寒 ...

  4. 拿到了摩根斯坦利IT部门offer(2018 Morgan Stanley Technology Summer Analyst)

    这次校招我技术产品混投了,大摩投了Technology技术部门.最后结果看来,我又能做产品又能做技术哈哈! 从笔试到电话面试再到AC面,第一次全程英文面试的体验,宝贵的经历,决定记录下来. 笔试 IK ...

  5. IAB303 Data Analytics Assessment Task

    Assessment Task IAB303 Data Analytics for Business Insight Semester I 2019 Assessment 2 – Data Analy ...

  6. Comparative assessment of long-read error correction software applied to Nanopore RNA-sequencing dat

    Comparative assessment of long-read error correction software applied to Nanopore RNA-sequencing dat ...

  7. Comparative assessment of long-read error-correction software applied to RNA-sequencing data

    Comparative assessment of long-read error-correction software applied to RNA-sequencing data 用于RNA测序 ...

  8. 【机器学习】 - 关于图像质量评价IQA(Image Quality Assessment)

    图像质量评价(Image Quality Assessment,IQA)是图像处理中的基本技术之一,主要通过对图像进行特性分析研究,然后评估出图像优劣(图像失真程度). 主要的目的是使用合适的评价指标 ...

  9. [2020-ECCV]PIPAL-a Large-Scale Image Quality Assessment Dataset for Perceptual Image Restoration论文简析

    [2020-ECCV] PIPAL: a Large-Scale Image Quality Assessment Dataset for Perceptual Image Restoration 论 ...

最新文章

  1. bootsrap+jquery+组件项目引入文件的常见报错
  2. Windows消息机制(MFC)
  3. RabbitMq链接
  4. figma 安装插件_我制作Figma插件的经验
  5. oracle导入dmp清除之前,oracle导入dmp遇到的有关问题
  6. 50%企业数据治理失败!这9大要素才是成功关键
  7. Gitter - 高颜值GitHub小程序客户端诞生记 1
  8. java毕设_java毕业设计选题?
  9. 谷雨,微信公众号图文排版必备素材集锦
  10. 如何解决竞价推广中的恶意点击?
  11. 红蓝对抗-红队打点的那些事
  12. 【佳学基因人工智能】在ANACOND3下如何安装NUMPY
  13. 微信小程序开发者工具怎么使用Less、Sass
  14. python搜索关键词的公众号文章标题和路径_按关键字搜索并爬去微信公众号文章...
  15. 原来你是这样的鱼骨图?
  16. CTF-线下AWD-PHP大马
  17. 动态规划--股票(一次买入卖出和两次买入卖出)
  18. autocad vba从excel表格插入单条多段线
  19. NetApp3120存储数据恢复_RAID数据恢复过程
  20. almost unreal歌词翻译_综英1第八单元答案

热门文章

  1. HALCON Progress
  2. 基于ZF网络的Faster RCNN网络结构详解(非常详细版)
  3. KMP的c语言实现和学习
  4. lnmp 一键安装包部署ThinkPHP5
  5. css—盒子模型理解
  6. Nginx基础入门之nginx基础配置项介绍(2)
  7. IIS_FastCGI+php5.3+wincache+memcached+ZendLoader
  8. Java ME游戏开发中,碰撞检测算法在Java?ME中的实现(
  9. 页面瘦身之压缩viewState和保存viewState到服务器
  10. 百度外卖接口调试 C#版