http://mscs.mum.edu/direct-entry-sample-exam.html
Requirements
Upcoming Events
Sample Qualifying Exam for Direct Entry Track
This exam is posted for prospective students of the Master of Science in Computer Science Program at Maharishi University of Management (Computer Professionals Program). In order to qualify for the DIRECT ENTRY track, incoming students must pass an exam similar to the one given below upon arrival at the University. If students are not able to pass this exam, they may enter the PREPARATORY TRACK only if they pass the PREPARATORY TRACK EXAM. Actual exam questions will differ from those below. The sample exams are posted here in order to help prospective students assess their readiness for study in the program.
1. [Tests problem solving and a little bit of Java language] Write a Java method removeDuplicates that removes all duplicates in a given list. Assume the following:
a. The method accepts an object of type List
b. The return type of the method is void
c. Duplicates are determined using the equals() method (rather than by the == operator)
Your implementation of removeDuplicates should handle, in an appropriate way, the case in which a null List is passed in to the method.
Test your method by writing code in a main method, which does the following:
a. It creates an instance of List and loads it with the following String values:{“good”, “better”, “best”, “best”, “first”, “last”, “last”, “last”,”good”}
b. It invokes the removeDuplicatesMethod, passing in this instance of List
c. It outputs the modified list to the console
2. [Tests Java language and prob solving] Write a Java method testForSum which determines whether a given array of integers contains three entries whose sum is equal to a given integer. Assume the following:
a. The method accepts an array intArr of int’s and an int testInt as its two arguments
b. The return type of the method is boolean
c. The method returns true if and only if there are distinct integers i, j, k such that intArr[i] + intArr[j] + intArr[k] equals testInt.
Test your method in a main method, which passes the following input values
{5, 1, 23, 21, 17, 2, 3, 9, 12}, 22
into the method testForSum, and which outputs the return value to the console.
3. [Tests knowledge of data structures] Create your own linked list (do not use any of the classes provided in the Collections API). Implement the following two operations:
If you are using jdk1.4 or before:
void add(Object ob);
boolean find(Object ob);
String toString();
If you are using j2se5.0 and you know generic programming:
void add(T ob);
boolean find(T ob);
String toString()
The toString method should arrange the elements of the list in a comma-separated sequence, in the following format:
[elem0, elem1, elem2, …, elemN]
Test your linked list in a main method which does the following:
a. Creates an instance of your list and adds the following Strings to it:
“Straight”, “Bent”, “Equals”, “Well”, “Storm”
b. Uses your find function to search for the keys “Well” and “Strength”
c. Outputs both the input list and the search results to the consoleand output the results to the consoleby repeatedly using your add function to populate a new instance of your linked list with Strings, and then outputting to console the boolean result of searching for some String in this list.
4. [Tests basic knowledge of recursion] Write a recursive static Java method that accepts an array arr of integers argument returns a list of all permutations of these integers.
(A permutation of a sequence of integers is a re-arrangement of the integers. For example, one permutation of 1, 3, 4, 8, 2 is 3, 1, 2, 8, 4.) For this problem, you may assume that the input array contains no duplicate entries. Your method should return an ArrayList of int arrays.
Next, test your method using a main method; the main method should pass in the following array: [1, 5, 4, 2]; then, it should print to the console the resulting list of permutations.
5. [Tests knowledge of concept of static] Create a Java class that allows at most 5 instances of itself to be created. Call your class JustFive. Provide a main method in your class that attempts to create 6 instances of your class.
相关推荐
Aliens ate my mum
MUM素材7.ai
外研一起小学英语五下《Module9Unit 2 Mum bought new chopsticks for you.》word教案.docx
要打开版本1或版本2,请在包含mum.h之前定义宏MUM_V1或MUM_V2 与版本2相比,版本3具有更高质量的哈希 尽管版本2通过了appleby-smhasher的所有测试,但未通过严格的demerphq-smhasher的雪崩测试 版本3解决了此问题...
I-helped-mum.教学设计与反思-王佳瑶.doc
Xeranthemum
2015春四年级英语下册 Module 7 Unit 1 I helped Mum教案 外研版(三起)
基于Kappa-muM分布的联合多用户分集与并行中继继选择RFFSO系统性能研究.docx
外研版五年级(上册)M4-U1-Mum-bought-a-new-T-shirt-for-me.ppt
广东省博罗县泰美中学七年级英语上册 Module 2 Unit 1 Is this your mum导学案(无答案)(新版)外研版
A 3-10 GHz bandwidth low-noise and low-power amplifier for full-band UWB communications in 0.25- s mum SiGe BiCMOS technology
We present a 1.5-\mum continuous-wave (CW) single-frequency intracavity singly resonant optical parametric oscillator (SRO) based on periodically poled lithium niobate (PPLN). The SRO is placed inside...
采用php的源码实现,这是一个用php脚本语言写的影音娱乐,迅雷云点播网页版源码 v1.2,迅雷云点播网页版源码可直接支持的格式如下: ——... ——电驴格式,例如:ed2k开头的网址;...
The 0.532-\mum laser conditioning of HfO2/SiO2 third harmonic separator fabricated by electron-beam evaporation (EBE) was studied. The laser induced damage threshold (LIDT) of the separator determined...
We present a 3~5 \mum optical parametric oscillator (OPO) based on ZGP pumped by KTP OPO 2.1-\mum laser. The tuning curves of ZGP OPO are calculated. The 8 \times 6 \times 18 (mm) ZGP crystal, whose ...
由于最新的 ... U3-MuM(以前称为 udev.rules Maker)是一个应用程序,它通过为调制解调器创建 udev 规则来帮助您的 Linux 识别 USB 3G 调制解调器。 Internet 连接由用户根据其服务提供商的 APN 手动设置。
cd gw-mobile-hello-mum git init git remote add origin git@github.com:GhostWording/gw-mobile-platform.git git fetch origin git reset --hard origin/master 安装应用程序代码(第 3 层) rm -r -f .git ...
A periodically poled lithium niobate (PPLN) optical parametric generator (OPG) pumped by a laser diode (LD)-pumped Q-switched Tm,Ho:GdVO4 laser operated at 2.048 \mum with pump pulse of 25 ns and ...
A thin film plate polarizer (TFP) is used as the output coupler to obtain linearly polarized 2.12 \mum laser. A maximum output power of 2.2 W at 2.12 \mum is obtained from a near-degenerate, type-II ...
妈妈-cs490 从 code.google.com/p/mum-cs490 自动导出 来自 MUM 大学的 Micheal Zilstra,@Credit 转到教授。 齐尔斯特拉。