AS开发面试题
- 格式:docx
- 大小:12.00 KB
- 文档页数:4
as400面试题AS400是一种中小型机型号,广泛应用于企业的信息系统中。
面试中常常会涉及与AS400相关的问题,旨在考察面试者对AS400系统和相关技术的了解程度。
下面是一些常见的AS400面试题,供参考。
1. 请介绍一下AS400系统的特点及其应用领域。
AS400是由IBM公司推出的一种中小型计算机系统。
它的特点包括稳定性高、可靠性强、易于管理维护等。
AS400系统广泛应用于企业的信息系统中,如金融、制造、物流、供应链管理等领域。
2. 如何在AS400系统中创建一个文件?在AS400系统中,可以通过以下步骤创建文件:1)使用DLTF命令删除已存在的同名文件(可选);2)在CL或者RPG程序中使用CRTPF命令创建新的文件,指定文件名、字段定义、文件类型等参数。
3. 请介绍一下AS400系统中的库和成员的概念。
在AS400系统中,库(Library)类似于Windows中的文件夹,它用于组织和管理相关的对象。
成员(Member)则是库中的一个实体,可以是文件、程序等。
一个库可以包含多个成员,通过成员的名字可以在库中唯一标识一个对象。
4. 如何在AS400系统中查找一个对象?在AS400系统中,可以通过以下方式查找一个对象:1)使用DSPFD命令,指定文件名和库名,查看文件的属性信息;2)使用DSPLIB命令,指定库名,查看库中所有成员的信息;3)使用DSPSYSOBJ命令,指定对象名和类型,查找指定类型的对象。
5. 什么是AS400系统中的作业(Job)?在AS400系统中,作业是执行一个或多个相互关联的任务的单位。
一个作业可以包含多个任务,可以是批处理任务、交互性任务等。
每个作业都有一个唯一的标识符(Job ID),可以用来识别和管理作业。
6. 如何将AS400系统中的数据导出为Excel文件?在AS400系统中,可以通过以下步骤将数据导出为Excel文件:1)使用RUNSQLSTM命令,编写SQL脚本,查询所需的数据;2)使用CPYTOIMPF命令,将查询结果复制到临时文件中;3)使用IBM Data Studio等工具,将临时文件导出为Excel文件。
产品经理英文面试题以下是一些常见的产品经理英文面试题,以及它们的中文翻译和示范答案:1. Question (问题): What do you think are the key qualities of a successful product manager?Answer (答案): A successful product manager should possess strong communication and leadership skills, have a deep understanding of the market and customer needs, be analytical and data-driven, have a creative mindset, and be able to prioritize and make decisions effectively.中文翻译:你认为成功的产品经理应该具备哪些关键素质?示例回答:成功的产品经理应该具备良好的沟通和领导能力,深入了解市场和客户需求,注重数据分析,具有创造性思维,并且能够有效地进行优先级排序和决策。
2. Question (问题): Can you describe your product development process from ideation to launch?Answer (答案): My product development process starts with conducting market research and gathering customer feedback to generate ideas. Then, I prioritize these ideas based on their potential impact and feasibility. After that, I createproduct requirements, collaborate with cross-functional teams to design and develop the product, conduct user testing, iterate based on feedback, and finally launch the product.中文翻译:你能描述一下你的产品开发流程,从构思到发布?示例回答:我的产品开发流程始于市场调研和收集客户反馈,以产生创意。
[EIGRP协议]EIGRP面试问题1. 什么是EIGRP协议?EIGRP(Enhanced Interior Gateway Routing Protocol)是一种基于距离矢量的路由协议,用于在自治系统(AS)内部的路由选择。
它由思科公司开发,是一种高度可靠和高性能的路由协议。
2. EIGRP协议有哪些主要特点?- 快速收敛:EIGRP使用可靠的、基于DUAL算法的快速收敛机制,能够更快地将路由信息传播到整个网络。
快速收敛:EIGRP使用可靠的、基于DUAL算法的快速收敛机制,能够更快地将路由信息传播到整个网络。
- 低资源消耗:EIGRP通过增量更新,只传递网络拓扑的变化信息,减少了带宽占用和内存消耗。
低资源消耗:EIGRP通过增量更新,只传递网络拓扑的变化信息,减少了带宽占用和内存消耗。
- 支持VLSM:EIGRP能够实现可变长度子网掩码(VLSM),允许对每个子网分配不同长度的掩码。
支持VLSM:EIGRP能够实现可变长度子网掩码(VLSM),允许对每个子网分配不同长度的掩码。
- 自适应:EIGRP会自动调整路径的带宽和延迟,以提供最佳路径选择。
自适应:EIGRP会自动调整路径的带宽和延迟,以提供最佳路径选择。
3. EIGRP协议的路由计算是如何进行的?EIGRP使用DUAL(Diffusing Update Algorithm)算法进行路由计算。
该算法基于距离矢量计算,以提供最佳路径选择。
DUAL 算法考虑了多个因素,包括距离、带宽和延迟,以确定最佳的下一跳路径。
4. 如何配置EIGRP协议?在思科路由器上配置EIGRP协议的步骤如下:1. 进入全局配置模式:`configure terminal`2. 启动EIGRP协议:`router eigrp <AS号>`3. 配置路由器的网络接口:`network <网络地址>`4. (可选)配置其他参数,如带宽限制、延迟等:`metric weights <参数>`5. 保存配置并退出:`end`, `write`5. EIGRP协议中的可靠性和高性能是如何实现的?EIGRP通过以下方式实现可靠性和高性能:- 可靠性:EIGRP使用可靠的邻居协议(Neighbor Protocol)和Hello协议,以建立和维护网络邻居关系。
第1篇Introduction:As a global leader in home appliances and smart living solutions, Haier has always been at the forefront of innovation and quality. To ensure that their team is composed of the best talents, Haier often conducts online interviews to assess candidates' skills, experience, and cultural fit. This guide provides a comprehensive list of potential online interview questions in English, along with detailed answer tips to help you prepare effectively for your Haier interview.Part 1: Common Interview Questions1. Tell me about yourself.- Answer Tip: Start with your educational background, professional experience, and then transition to your personal interests and values. Highlight any relevant skills or experiences that make you a good fitfor the position.- Example Answer: "I am a graduate from [University Name] with a degree in [Major]. Throughout my academic and professional journey, I have developed strong skills in [Relevant Skills], which I have applied in [Previous Experiences]. Outside of work, I am passionate about [Hobbies or Interests]."2. What are your greatest strengths?- Answer Tip: Choose strengths that are relevant to the job and support your claims with examples. Avoid overused strengths like "hardworking" or "team player."- Example Answer: "One of my greatest strengths is my ability to adapt quickly to new environments and learn new skills. For instance, in my previous role at [Company Name], I was tasked with implementing a new software system, and I successfully managed to learn and master itwithin a month."3. What are your greatest weaknesses?- Answer Tip: Choose a genuine weakness, but one that you areactively working to improve. Explain how you are addressing this weakness.- Example Answer: "I sometimes struggle with time management, especially when juggling multiple tasks. To improve, I have startedusing project management tools and setting specific deadlines for each task."4. Why did you quit your last job?- Answer Tip: Avoid negative comments about your previous employer. Focus on your reasons for leaving and how they align with your career goals.- Example Answer: "I left my last job to pursue a new opportunitythat aligned more closely with my career aspirations. I was excitedabout the chance to work in a dynamic industry and contribute to the growth of the company."5. Why do you want to work for Haier?- Answer Tip: Research the company's culture, values, and recent achievements. Explain how your skills and experiences make you a goodfit.- Example Answer: "Haier is a global leader in the home appliances industry, known for its innovative products and strong corporate culture.I am particularly impressed by your commitment to sustainability and smart living solutions. I believe my background in [Relevant Field] aligns well with the challenges and opportunities presented by this role."6. What do co-workers say about you?- Answer Tip: Ask a colleague or mentor for a reference or quote that highlights your work ethic and skills.- Example Answer: "My colleagues often say that I am a reliable team player who always goes the extra mile to ensure the success of our projects."7. Would you be willing to relocate if required?- Answer Tip: Be honest about your willingness to relocate, but also express your openness to new experiences.- Example Answer: "I am open to relocation if it is necessary for the role. I believe that change can be a positive opportunity for growth and development."8. What do you know about us?- Answer Tip: Research the company's history, mission, products, and recent news articles. Show your enthusiasm for the company and its values.- Example Answer: "I have been following Haier for several years and am particularly interested in your smart home appliances and commitment to innovation. I have read about your recent partnership with [Partner Company], which I believe is a testament to your forward-thinking approach."Part 2: Industry-Specific Questions1. For Sales and Marketing Positions:- What is your experience with sales and marketing strategies?- Can you give an example of a successful marketing campaign you have led?- How do you handle customer complaints and feedback?2. For Technical Positions:- Describe a technical project you have worked on and the challenges you faced.- What programming languages or tools are you proficient in?- How do you stay updated with the latest industry trends and technologies?3. For HR and Recruitment Positions:- What are your experiences in talent acquisition and retention?- How do you ensure a positive candidate experience during the recruitment process?- Can you share an example of a successful hiring decision you made?Part 3: Tips for Online Interviews1. Technical Setup:- Ensure a stable internet connection and a quiet environment.- Test your camera, microphone, and speakers before the interview.- Dress professionally, as you would for an in-person interview.2. Body Language:- Maintain eye contact with the camera.- Sit up straight and maintain good posture.- Avoid fidgeting or slouching.3. Communication:- Listen carefully to the interviewer's questions.- Speak clearly and concisely.- Take a moment to think before answering a question.4. Follow-Up:- Send a thank-you email to the interviewer after the interview.- Express your gratitude for the opportunity and reiterate your interest in the position.By following these tips and preparing thoroughly for your Haier online interview, you will be well-equipped to showcase your skills, experience, and enthusiasm for the role. Good luck!Conclusion:Haier's online interview process is designed to assess your qualifications, cultural fit, and ability to contribute to their team.By understanding the common interview questions, preparing thoughtful answers, and following the tips provided in this guide, you will be well on your way to a successful interview with Haier.第2篇IntroductionAs a global leader in home appliances and smart living solutions, Haier offers a diverse and dynamic work environment. To ensure that candidates are well-prepared for the online interview process, we have compiled a comprehensive list of potential questions along with detailed answers. These questions cover various aspects, including personal background, professional experience, skills, and company culture. Let’s dive into the world of Haier and explore the questions that might be asked during your online interview.Section 1: Personal Background1. Tell me about yourself.Answer: “My name is [Your Name], and I am originally from [YourCity/Country]. I hold a [Your Degree] in [Your Major] from [Your University]. Throughout my academic journey, I have developed a strong interest in [Your Field of Interest]. My previous work experience includes [Your Relevant Experience], where I gained valuable skills in [List Key Skills].”2. What are your greatest strengths?Answer: “I believe my greatest stre ngths are [List Strengths, suchas teamwork, problem-solving, adaptability, and communication skills].These qualities have enabled me to excel in my previous roles and contribute positively to the teams I have been a part of.”3. What are your greatest weaknesses?Answer: “I acknowledge that I have room for improvement in [List Weakness, such as time management or public speaking]. However, I am committed to addressing this weakness by seeking feedback, practicing regularly, and taking relevant courses.”4. Why did you quit your last job?Answer: “I left my previous job for [Reason, such as a better career opportunity, a more challenging role, or to work for a company with a stronger corporate culture]. I am confident that Haier’s values and growth op portunities align with my career aspirations.”5. Why do you want to work here?Answer: “I am drawn to Haier because of its innovative approach to technology, commitment to sustainability, and global presence. The company’s reputation as a leader in the industry, coupled with the opportunity to work on cutting-edge projects, makes Haier an ideal place for my career growth.”Section 2: Professional Experience6. What do co-workers say about you?Answer: “My co-workers have often commented on my [List Positive Qualities, such as teamwork, dedication, and reliability]. They appreciate my ability to work collaboratively and contribute to a positive work environment.”7. Would you be willing to relocate if required?Answer: “Yes, I am open to relocation if it is necessary for therole and aligns with my career goals. I am willing to adapt to new environments and embrace the challenges that come with them.”8. What do you know about us?Answer: “I have thoroughly researched Haier and am aware of its global presence, commitment to innovation, and focus on customer satisfaction. I am particularly impressed by Haier’s efforts in sustainability and its dedication to creating smart living solutions.”9. What kind of salary are you looking for?Answer: “I w ould like to discuss my salary expectations during the interview process, as I believe it is important to align compensation with my experience and the value I can bring to the team.”10. What were you earning at your last job?Answer: “I earned [Your Salary] at my last job. However, I am open to discussing a competitive salary package that reflects my experience and the responsibilities of this new role.”Section 3: Skills and Abilities11. What have you learned from mistakes on the job?Answer: “I have learned that making mistakes is a natural part of growth. From my previous experiences, I have learned the importance of being proactive in identifying potential issues, seeking feedback, and learning from my mistakes to improve my futu re performance.”12. Why should we hire you?Answer: “I believe I am the ideal candidate for this role because of my [List Relevant Skills and Experience]. I am a highly motivated individual who is eager to learn and contribute to the success of Haier. My dedication to excellence and commitment to the company’s values make me a valuable asset to your team.”13. What Is Your Dream Job?Answer: “My dream job would be a role that allows me to leverage my skills and experience to contribute to the success of a company like Haier. I am excited about the opportunity to work on innovative projects and be part of a team that values creativity and collaboration.”Section 4: Company Culture and Values14. How do you handle stress and pressure in the workplace?Answer: “I believe that stress and pressure are inevitable in any workplace. To handle them, I focus on maintaining a positive attitude, setting realistic goals, and prioritizing my tasks effectively. I also find that taking short breaks and engaging in physical activity helps me to stay focused and productive.”15. How do you contribute to a positive work environment?Answer: “I contribute to a positive work environment by being respectful and supportive of my colleagues, actively participating in team activities, and maintaining open communication. I believe that a positive work environment is essential for teamwor k and productivity.”16. What is your preferred work style?Answer: “I am a team player who enjoys collaborating with others to achieve common goals. However, I also appreciate the opportunity to work independently on certain tasks. My preferred work style is a blend of both teamwork and individual responsibility.”17. How do you approach problem-solving?Answer: “I approach problem-solving by first understanding theissue and gathering relevant information. Then, I brainstorm potential solutions, evaluate their feasibility, and select the most effective approach. Throughout the process, I maintain open communication with my team members to ensure we are aligned and moving in the right direction.”ConclusionPreparing for an online interview with Haier requires a comprehensive understanding of the company, its values, and the role you are applying for. By addressing the questions outlined in this guide, you can present yourself as a well-prepared and enthusiastic candidate. Remember to showcase your skills, experience, and passion for the role, and goodluck with your interview!第3篇IntroductionWelcome to the海尔线上英文面试题目及解答指南。
英文面试题1. Why do you want to work for our company?为什么你想要加入我们公司?Answer: I am impressed with your company's reputation for innovation, customer service, and commitment to sustainability. I believe that this is a company where I can make a meaningful contribution and grow my career.答案:我对贵公司的创新、客户服务和可持续发展承诺印象深刻。
我相信这是一家我可以做出有意义贡献并发展自己职业生涯的公司。
2. What experience do you have related to this job?你与这份工作有何相关经验?Answer: In my previous job, I was responsible for managing social media accounts and creating content for promotions and campaigns. I also conducted market research and analyzed data to measure the success of these campaigns. This experience has prepared me to take on similarresponsibilities in this role.答案:我之前的工作职责包括管理社交媒体账号并创作促销和营销活动的内容。
我也负责市场调研和分析数据来衡量这些活动的成功程度。
这些经验准备了我可以承担类似的职责。
3. How do you handle a difficult situation or challenge at work?你如何处理工作中的困难情况或挑战?Answer: I believe in approaching difficult situations with a calm and positive attitude. I try to remain objective and consider different perspectives before making a decision. I also make sure to communicate effectively with my team members and manager to address any challenges and find solutions.答案:我相信以冷静和积极的态度去面对困难的情况。
常见⾯试题及答案(130题)1. 简述 private、 protected、 public、 internal 修饰符的访问权限。
答 . private : 私有成员, 在类的内部才可以访问。
protected : 保护成员,该类内部和继承类中可以访问。
public : 公共成员,完全公开,没有访问限制。
internal: 在同⼀命名空间内可以访问。
2 .列举 页⾯之间传递值的⼏种⽅式。
答. 1.使⽤QueryString, 如....?id=1; response. Redirect()....2 .使⽤Session变量3.使⽤Server.Transfer4.C#中的委托是什么?事件是不是⼀种委托?答:委托可以把⼀个⽅法作为参数代⼊另⼀个⽅法。
委托可以理解为指向⼀个函数的引⽤。
是,是⼀种特殊的委托5.override与重载的区别答:重载是⽅法的名称相同。
参数或参数类型不同,进⾏多次重载以适应不同的需要Override 是进⾏基类中函数的重写。
为了适应需要。
6.如果在⼀个B/S结构的系统中需要传递变量值,但是⼜不能使⽤Session、Cookie、Application,您有⼏种⽅法进⾏处理?答: this.Server.TransferResponse. Redirect()---QueryString9.描述⼀下C#中索引器的实现过程,是否只能根据数字进⾏索引?答:不是。
可以⽤任意类型。
11.⽤.net做B/S结构的系统,您是⽤⼏层结构来开发,每⼀层之间的关系以及为什么要这样分层?答:⼀般为3层:数据访问层,业务层,表⽰层。
数据访问层对数据库进⾏增删查改。
业务层⼀般分为⼆层,业务表观层实现与表⽰层的沟通,业务规则层实现⽤户密码的安全等。
表⽰层为了与⽤户交互例如⽤户添加表单。
优点:分⼯明确,条理清晰,易于调试,⽽且具有可扩展性。
缺点:增加成本。
13.什么叫应⽤程序域?答:应⽤程序域可以理解为⼀种轻量级进程。
※什么是三层交换,说说和路由的区别在那里?三层交换机和路由器都可工作在网络的第三层,根据ip地址进展数据包的转发〔或交换〕,原理上没有太大的区别,这两个名词趋向于统一,我们可以认为三层交换机就是一个多端口的路由器。
但是传统的路由器有3个特点:基于CPU的单步时钟处理机制;能够处理复杂的路由算法和协议;主要用于广域网的低速数据链路在第三层交换机中,与路由器有关的第三层路由硬件模块也插接在高速背板/总线上,这种方式使得路由模块可以与需要路由的其他模块间高速的交换数据,从而突破了传统的外接路由器接口速率的限制(10Mbit/s---100Mbit/s)。
※对路由知识的掌握情况,对方提出了一个开放式的问题:简单说明一下你所了解的路由协议。
路由可分为静态&动态路由。
静态路由由管理员手动维护;动态路由由路由协议自动维护。
路由选择算法的必要步骤:1、向其它路由器传递路由信息;2、接收其它路由器的路由信息;3、根据收到的路由信息计算出到每个目的网络的最优路径,并由此生成路由选择表;4、根据网络拓扑的变化及时的做出反响,调整路由生成新的路由选择表,同时把拓扑变化以路由信息的形式向其它路由器宣告。
两种主要算法:距离向量法〔Distance Vector Routing〕和链路状态算法〔Link-State Routing〕。
由此可分为距离矢量〔如:RIP、IGRP、EIGRP〕&链路状态路由协议〔如:OSPF、IS-IS〕。
路由协议是路由器之间实现路由信息共享的一种机制,它允许路由器之间相互交换和维护各自的路由表。
当一台路由器的路由表由于某种原因发生变化时,它需要及时地将这一变化通知与之相连接的其他路由器,以保证数据的正确传递。
路由协议不承当网络上终端用户之间的数据传输任务。
※简单说下OSPF的操作过程①路由器发送HELLO报文;②建立邻接关系;③形成链路状态④SPF算法算出最优路径⑤形成路由表※OSPF路由协议的根本工作原理,DR、BDR的选举过程,区域的作用及LSA的传输情况〔注:对方对OSPF的相关知识提问较细,应着重掌握〕。
AS3面试题1.请问你知道loader,URLLoader,URLStream这个三种动态加载资源的具体使用场合,以及有什么区别2.如何把MouseEvent 的localX 和localY 属性转化成全局坐标?3.请问condenseWhite 这个属性在TextInput里是表示什么意思?4.我想获取系统里的字体,请问怎么办?5.substring( ),substr( ), slice(),请说下3种解析字符串的不同之处,以及适用场合?6.FileReference 请说下此对象的几个相关事件7.as2与as3.的最主要区别是什么?8.as3.0垃圾回收器是如何工作的9.flex和后台语言是如何交互的?10.请说下你理解AS3的事件机制是什么机制?你认为正确的就可以说出来?11.请问a ddEventListener里面有几个参数,你能说出具体的使用方法?12.请问undefined 和null 是否一样,如果不一样能否说出其中的区别呢?13.有三种基本数字类型:number, int, 和uint 请问有什么区别.具体说一下.14.请问一个数组里可以放不同的类型嘛?1、请问你知道loader,URLLoader,URLStream这个三种动态加载资源的具体使用场合,以及有什么区别嘛?答案(1) LoaderLoader 类可用于加载SWF 文件或图像(JPG、PNG 或GIF)文件。
使用load() 方法来启动加载。
被加载的显示对象将作为Loader 对象的子级添加。
(2) URLLoaderURLLoader 类以文本、二进制数据或URL 编码变量的形式从URL 下载数据。
在下载文本文件、XML 或其它用于动态数据驱动应用程序的信息时,它很有用。
URLLoader 对象会先从URL 中下载所有数据,然后才将数据用于ActionScript。
它会发出有关下载进度的通知,通过bytesLoaded 和bytesT otal 属性以及已调度的事件,可以监视下载进度。
和舰科技英语面试题目Introduction:As an international company in the field of naval technology, Andromeda Naval Technologies requires employees who possess exceptional English language skills. The interview process at Andromeda consists of a series of questions designed to assess the candidates' proficiency and suitability for the job. This article provides a sample of common interview questions candidates may encounter during an English interview at Andromeda Naval Technologies.1. Tell us about your background and experience in naval technology.In this segment, the interviewer aims to understand the candidate's knowledge and experience in naval technology. Expect questions related to education, previous work experience, and any specialized training or certifications in the field.2. How do you stay updated with the latest advancements in naval technology?This question assesses the candidate's commitment to continuous learning and staying informed about advancements in the industry. The interviewer may gauge your familiarity with industry publications, conferences, professional networks, or online resources you rely on for staying updated.3. Can you describe a challenging project related to naval technology that you have worked on?The interviewer wants to evaluate the candidate's problem-solving abilities, resilience, and experience handling complex situations. Prepare to share a specific project, discussing the challenges faced, steps taken to overcome them, and the outcomes achieved.4. How do you ensure effective communication within a multidisciplinary team?Effective teamwork and communication are essential in any job. The interviewer wants to identify your collaboration skills and ability to work with colleagues from diverse backgrounds. Share examples of how you have coordinated with team members, resolved conflicts, and ensured efficient communication.5. Describe a situation when you faced tight deadlines and how you managed to meet them.This question evaluates your time management, prioritization, and ability to work efficiently under pressure. Provide an example of a project with demanding deadlines, explaining the strategies and techniques you implemented to meet them successfully.6. How would you handle a situation where you receive conflicting instructions from multiple superiors?This question assesses your ability to handle ambiguity and make decisions autonomously. Describe a scenario where you received conflicting instructions, the steps you took to clarify the situation, and the resolution you reached.7. Have you ever encountered a workplace conflict? How did you resolve it?The interviewer wants to assess your conflict resolution skills and ability to maintain a harmonious work environment. Narrate an experience where you encountered a workplace conflict, emphasizing your ability to handle the situation diplomatically and find a resolution that benefited all parties involved.8. How do you ensure compliance with industry regulations and best practices in your work?This question determines your understanding of the importance of compliance and adherence to industry standards. Discuss your approach to staying updated with regulations, ensuring compliance, and implementing best practices in your work processes.Conclusion:The interview process at Andromeda Naval Technologies is designed to evaluate candidates' English language proficiency, as well as their knowledge, skills, and experiences in the field of naval technology. By preparing thoughtful responses to these sample questions, candidates can showcase their qualifications and increase their chances of success.。
A S3.0开发面试题整理
首先证明有些公司是不必做笔试题的有些则需要。
多会一些术语很有帮助,可能HR只会提到看我们是否有了解并不需要很深
先看U族的比较少未做面试题只是技术关口头问的(以下为部分试题)
1. AStar有用过吗? 说下它的实现思路
2. 二叉树有用过吗? 说下基本思路
3. 游戏中性能怎么控制?
4. 说下AS中有几种循环?分别是什么? 说下switch?
5. 你做过哪些系统或者项目?
总结:大公司注重经验,问题一般不难…..
千禾面试题, 感觉:注重实际,公司技术实力应该还OK
1.
private function test(v:int):int
{
return v%2==0? 1 : test(v+1);
}
trace(test(17));
输出值 _ ;
2.
在AS事件中一共有3个阶段,它们分别是 _ _ _;
function addEventListener(type:String, listener:Function, useCapture:Boolean=false, priority:int=0, useWeakReference:Boolean=false):void
useCapture 是什么意思 _ ; useWeakReference是什么意思 _ ;
3.
说出至少5种设计模式;
简单说下你所熟悉的2种设计模式;
4.排序以下4种渲染性能的效率( 按效率排序 )
setVector setPixels copyPixels draw
5.找出以下程序错误(至少5个)
Test(非主文档类)
public class Test implements ITest
{
public function test()
{
this.stage.addEventListener(Event.ADDED_TO_STAGE, onAdded);
addEventListener(MouseEvent.CLICK,onClick);
addEventListener(MouseEvent.MOUSE_MOVE,onMove);
}
protected function onMove():void
{
trace("onMove");
protected function onClick(event:MouseEvent):void
{
trace("onClick");
}
protected function onAdded(event:Event):void
{
this.gotoAndPlay(1);
}
public function printf(s:String):void
{
trace(s);
}
}
public interface ITest()
{
function destroy():void;
function printf(b:Boolean):void
}
6.说出 Array和 Vector在性能和用法上的区别;
7.UML 是什么?
8.Alchemy 是什么?
9. 以下这样写法会被AS垃圾回收机制所回收吗?为什么?
var objA:Object = {code:1};
var objB:Object = {code:2};
objA = objB;
objB = objA;
objA = objB = null;
10.as3是单线程吗;flash player是单线程吗?
11.as是如何使用 EnterFrame 执行帧频的? (提示:回答flash player跑道相关)
12.在项目中你遇到过哪些困难?你做过哪些?哪些是至今无法解决的?
13.PureMVC JSON ASWING (还有等等不记得了)你用过哪些?
还有大概10题我不记得了后面几题是选做题
简单的大家自己百度谷歌找下答案,说下不好查到的题目
U族
1,2题问老姚
3. 我回答了
(1).老高的部分 ,关于 MovieClip 和 Bitmap 的区别(矢量内存重用内存和cup转换),
(2).部分动画可以根据需求执行降帧处理,也就是间隔多久绘制下一帧
(3).有关经常new的对象,对象池的重用
(4).内存和CPU的转换,如果一个动作地址没有任何引用了,那么可以设置间隔多少时间清除这个地址,以释放内存,但是下次遇到会重新加载,(加载耗CPU 保存耗内存权衡就好)
其他我也不知道回答什么,应该还有很多
第4题答案 (测试代码见最后 test 方法)
copyPixels > draw > setVector > setPixels
第9题答案
如果外部不存在引用则会被回收,因为符合标记清除的条件
垃圾回收机制回收方法分为2种引用计数为0和标记清除法
引用计数为0:外部不存在任何引用
标记清除法: 和程序主层级无任何关联的对象,例如一个对象圆形链互相引用却不和主层次结构做任何
交互
第10题答案是是
第11题我的答案..
flashplayer 首先执行此帧的代码部分,然后执行渲染工作,代码执行和帧渲染的工作是相平衡
的,每个执行阶段都会根据实际需求增加执行时间来执行更多代码或做更多的渲染工作,
而跑道的总长度也将相应增长,也就是我们所看到的游戏卡了,假设1秒执行30帧由于某
些帧执行时间长了,则将低于30帧;
/**
* 测试 4种复制位图方法效率
*
* 将 bmd2的一个矩形范围复制到 bmd1的 (10,10) 点开始
*
*/
public function test():void
{
var bmd1:BitmapData = new BitmapData(200,200,true,0xffffffff);
var bmd2:BitmapData = new BitmapData(300,300,true,0xff000000);
var start:int = getTimer();
for (var j:int = 0; j < 9999; j++)
{
var arr1:Vector.<uint> = bmd2.getVector(new Rectangle(10, 20, 80, 80));
bmd1.setVector(new Rectangle(10, 10, 80, 80), arr1);
}
trace("setVector", getTimer() - start);
start = getTimer();
for (j = 0 ; j < 9999; j++)
{
var arr2:ByteArray = bmd2.getPixels(new Rectangle(10, 20, 80, 80));
arr2.position = 0;
bmd1.setPixels(new Rectangle(10, 10, 80, 80), arr2);
}
trace("setPixels", getTimer() - start);
start = getTimer();
for (j = 0; j < 9999; j++)
{
bmd1.copyPixels(bmd2, new Rectangle(10, 20, 80, 80), new Point(10, 10));
}
trace("copyPixels", getTimer() - start);
start = getTimer();
// var ma:Matrix = new Matrix(1,0,0,1,10,10); 为确保测试准确每种测试都是2次 new
for (j = 0; j < 9999; j++)
{
bmd1.draw(bmd2,new Matrix(1,0,0,1,10,10),null,null,new Rectangle(10, 10,80,80));
}
trace("draw", getTimer() - start);
addChild(new Bitmap(bmd1));
}。