MUM Entry Sample

本文提供Maharishi University of Management计算机科学硕士预科项目的样题解析,包括去除重复元素的Java方法实现、整数数组中满足特定条件的三数之和判断、自定义链表操作、递归排列整数数组、限制实例数量的自定义类等技术挑战。帮助潜在学生评估自身准备情况。

 

 

http://mscs.mum.edu/direct-entry-sample-exam.html

 

 

Blog for Master of Science (MS/MSC) in Computer Science / Software Engineering with paid internship training. Computer Professionals Program at Maharishi University of Management, USA facebook icon. Masters (MS/MSC) in Computer Science / Software Engineering. Computer Professionals at MUM LinkedIn icon. Masters (MS/MSC) in Computer Science / Software Engineering. Computer Professionals at MUM Twitter icon. Chinese Computer Professionals at MUM LinkedIn icon YouTube Channel for Computer Professionals at MUM

Attention: open in a new window.E-mail

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.

 
back to top
 

Site Map

<noscript></noscript>
### 如何打开 MUM 文件格式或关联的软件工具 MUM 文件通常是由 Windows 更新机制生成的一种元数据文件,主要存储有关更新包的信息。这类文件本身并不是设计给最终用户直接查看的内容,而更多用于系统内部处理。然而,在某些特定情况下,可以采用以下方式对其进行解析和分析。 #### 使用 PowerShell 查看 MUM 文件中的信息 PowerShell 提供了一种便捷的方式来查询与显示 MUM 文件所包含的数据。通过调用 `Get-WindowsPackage` 命令,可获取关于已安装更新的具体详情。 ```powershell Get-WindowsPackage -Online | Where-Object { $_.PackageName -like "*.mum" } | Select-Object PackageName, ReleaseType, InstallTime ``` 此命令会列出所有在线模式下可用的更新包名称、发布类型以及安装时间等重要属性[^1]。 #### 运用第三方库 WIMLib 解析 MUM 文件 对于需要更深层次挖掘 MUM 文件内容的情况,推荐使用 **WIMLib** 工具。这是一个功能强大的开源项目,支持多种微软镜像及相关文件格式(如 WIM、SWM 和 ESD),同时也涵盖了对 MUM 文件的支持。它允许开发者编写自定义脚本来提取所需信息。 例如,利用 Python 结合 WIMLib 库读取 MUM 文件: ```python import wimlib def read_mum_file(mum_path): with open(mum_path, 'rb') as f: metadata = wimlib.parse_metadata(f.read()) return metadata['update_id'], metadata['title'] update_id, title = read_mum_file('/path/to/update.mum') print(f'Update ID: {update_id}, Title: {title}') ``` 上述代码展示了如何加载并打印某个具体 MUM 文件内的更新标识符及其标题[^2]。 #### 通过组策略编辑器间接操作 MUM 文件 虽然组策略对象 (GPO) 主要是针对注册表设置和其他配置项进行管理,但它也可能涉及到了解码部分类型的 POL 文件的过程,这些文件有时会被视为广义上的“容器”,里面包含了类似 MUM 的结构化数据。因此,当涉及到复杂的定制部署方案时,可能需要用到高级别的 GPO 编辑技巧来调整相关参数[^3]。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值