🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

Unsolved Final Bank Computer Programming.pdf

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Full Transcript

Faculty of Engineering Program : CCE Course : Computer Systems Programming Code : CCE 343 Lecture: Ass. Prof. Ali E. Takieldeen Date : 3 / 6 / 2024 Time: 120 m...

Faculty of Engineering Program : CCE Course : Computer Systems Programming Code : CCE 343 Lecture: Ass. Prof. Ali E. Takieldeen Date : 3 / 6 / 2024 Time: 120 min Exam 1 1 - A …… is the imitation of the operation of a real world process or system over time. a) Simulation b) Imagination c) Rotation d) None 2 - A model can be a) Analytic b) Simulation c) Experimental d) All of the above 3 - Simulation can be used as …. a) Analysis Tool b) Design Tool c) Both A and B d) None 4 - Which of the following is not a simulation language a) Python b) Java c) CQL d) C++ 5 - Which of the following is an example for systems that can be simulated. a) Crowd Flow b) road traffic. c) Manufacturing Applications d) all of the above 6 - What is a system? a) An organized relationship among functioning units or components b) A group of objects joined in interaction towards a common objective c) An arrangement of ideas or constructs d) A group of entities with interrelated attributes and activities 7 - The complexity of....... systems is of the highest order. a) Cascaded b) Physical system c) Esoteric system d) hydraulic systems 8 - Which of the following doesn't involve GPS? a) Road Traffic b) high way junctions c) Train Stations d) Gas Stations 9 - Which of the following statements is most likely NOT true about the applications of modeling and Simulation? a) They can be used to optimize traffic flow in cities. b) They can be used to design and test new airport layouts. c) They can be used to predict customer behavior in a bank. d) They can be used to create realistic video games. 10 - A model can be........ When a mathematical approach is feasible. a) Analytic b) Simulation c) Experimental d) None of these 11 - What are the two components of the interaction described in the text? a) In and out b) Left and right c) Top and bottom d) Input and output 12 - What is an exogenous event in a system? a) An event that occurs within the system b) An event that has no impact on the system c) An event that occurs outside the system d) an event that is unpredictable 13 - In the context of a bank study, what type of event is the arrival of a customer? a) Exogenous event b) Endogenous event c) a and b d) None of the above 14 - In which stage is the model validated by comparing simulation results with actual data? a) Validation stage b) Prediction stage c) Explanation stage d) Design stage 15 - What is the most common type of models used in general simulation? a) Probabilistic models b) Process-based models c) Rule-based models d) Entity-based models 16 - …… is the process of representing a system with a specific tool to study its behavior. a) Model b) Modeling c) Analytic d) none of them 17 - Examples of Simulation Language a) MATLAB b) Python c) C/C++ d) All of them 18 - Examples of Simulation Software a) Kaggle b) AnyLogic c) GitHub d) None of them 19 - What is the boundary between a system and its environment compared to in living systems? a) Skin b) Organs c) Cells d) Blood vessels 20 - What is the purpose of a simulation study? a) To analyze the advantages and disadvantages of simulation. b) To determine the appropriate tool for a given system. c) To model and understand the behavior of a system. d) To identify the components of a system. 21 - What is an advantage of Simulation? a) Model building requires special training. b) Insight can be obtained about the interaction of variables. c) Simulation results can be difficult to interpret. d) Simulation modeling and analysis can be time consuming and expensive. 22 - Which of the following is an example for systems that can be simulated. a) Crowd Flow b) road traffic c) Manufacturing Applications d) all of the above 23 - What is the fundamental building block of a system? a) Environment b) Attribute c) Component d) Entity 24 - How are living organisms classified in terms of systems? a) Closed systems b) Static systems c) Open systems d) Isolated systems 25 - What defines the state of a system at any given time? a) The system environment b) The number of entities within the system c) The collection of variables describing the system d) The rate of interactions with the environment 26 - Which of the following pairs of topics likely discuss similar applications of modelling and simulation? a) (Crowd Flow) and (Airport) b) (Car Garage) and (Banking) c) (Highway Junction) and (Gas Station) d) (Trains Stations) and (Automated Guided Vehicles) 27 - Which term describes an immediate occurrence that could change the system's state a) Attribute b) Activity c) Event d) Subsystem 28 - What distinguishes a hybrid system from discrete and continuous systems? a) It only includes discrete components b) It has both continuous and discrete dynamic behavior c) It has a static boundary d) It interacts with multiple environments 29 - What is the definition of a system? a) A group of unrelated components working together b) A combination of objects with random interactions c) A set of interrelated components acting together to achieve a common objective d) An arrangement of ideas without purpose 30 - Which term is used to describe activities and events occurring within a system? a) Endogenous b) Exogenous c) Environmental d) Isogenous 31 - What kind of system changes state variables continuously over time? a) Discrete system b) Static system c) Hybrid system d) Continuous system 32 - Is combination of continuous and discrete dynamic system behavior.............? a) Continuous system b) discrete system c) hybrid system d) none of the above 33 - Represents time period of specified length........... a) System b) attribute c) entity d) activity 34 - How are systems and their components defined in the context of computer system programming? a) Independently functioning units b) Interrelated components with common objectives c) Entities isolated from their environment d) Variables with static properties 35 - What distinguishes an entity from an attribute in a computer system? a) Entities represent time periods, while attributes are properties b) Entities are objects of interest, while attributes are properties c) Entities are immediate occurrences, while attributes are variables d) Entities describe system interactions, while attributes define system boundaries 36 - What components are typically part of a cluster system? a) Nodes (master + computing), Database, and Network b) Servers, Cloud Storage, and Virtual Machines c) Routers, Firewalls, and Application Software d) Nodes (master + computing), Operating System (OS), and Middleware 37 -...... Is a system at a particular point in time? a) Static components b) Deterministic components c) Stochastic components d) dynamic components 38 - What is the main goal of relying on simulation in theoretical analysis a) Validating the model b) Analyzing system behavior and identifying potential issues c) Identifying important inputs and data d) Providing a safe environment for experiments 39 - What is the purpose of deciding on the boundary between a system and its environment in modeling systems? a) To complicate the study b) To confuse students c) To make the system more complex d) To clarify the study's focus 40 - What is a mathematical model for system components based on? a) Fundamental laws of chemistry b) Fundamental laws of biology c) Fundamental laws of physics d) Fundamental laws of mathematics 41 - Example for systems can be simulated a) Networks b) Military Applications c) Manufacturing Applications d) All of them 42 - In a simulation study, what is the output of a system generally a result of? a) Random factors b) External interference c) Given input d) Unpredictable events 43 - What is the key characteristic of a discrete system in terms of state variables? a) They change continuously b) They change at random intervals c) They change only at discrete points in time d) They change based on external factors 44 - What kind of system changes state variables continuously over time? a) Discrete system b) Static system c) Hybrid system d) Continuous system 45 - When simulation is the appropriate tool a) if cost exceed savings b) if resource not available c) if time not available d) plan can be visualized with animated simulation 46 - How is the state of system defined a) Status of machine (busy, idle, down) b) In the study of a bank, the number of busy tellers c) Speed and capacity d) Making deposits 47 - how is an activity defined in a system context a) welding and stamping b) making deposits c) speed and capacity d) balance in customer accounts 48 - Separating the system and its environment is by a/an: a) Boundary b) open system c) surrounding d) Model 49 - Queuing systems, are Example on a : a) discrete system b) continuous system c) hybrid system d) all of the above 50 - Making deposits are Examples for: a) Entity b) Attribute c) Activity d) both a and b 51 - A system is characterized by the following attributes: a) System boundary b) System components and their interactions c) environment d) all the above 52 - Systems can be classified based on. a) Time frame b) Type of measurements taken c) Type of interactions d) all the above 53 - Classification of systems based on time frame include... a) discrete b) continuous c) hybrid d) All the above 54 - An event can be defined as.. a) An immediate occurrence that might change the state of the system. b) collection of variables necessary to describe system at any time, relative to the objectives of study. c) a fundamental building block of the system. d) none of the above 55 - An entity in a system refers to: a) A potential system component b) A property of an entity within the system c) An object of interest in the system d) A future state variable of the system 56 - What does a system environment consist of? a) Only system components b) System boundary and components c) Only the environment outside the system d) Components of a system 57 - What of this are advantage of simulation a) Model building requires special training b) Simulation results can be difficult to interpret c) Simulating modeling are expensive d) None of the above 58 - What is a system defined as? a) A single unit with no relationship to other components b) A group of unrelated components c) A set of interrelated components working together towards a common goal d) An individual piece of equipment 59 - What is the primary purpose of simulation in computer system programming? a) To replace actual system testing b) To visualize system components c) To predict system performance d) To analyze system architecture 60 - A/An ….. is a property of an entity. a) attribute b) feedback c) overflow d) underflow 61 - Which of the following is NOT an advantage of using simulation as a tool in computer system programming? a) Cost-effective b) Time-efficient c) Real-world representation d) Limited scalability 62 - What is the key characteristic of a discrete system in terms of state variables? a) They change continuously b) They change at random intervals c) They change only at discrete points in time d) They change based on external factors 63 - What is the system boundary? a) The area where the system components interact with each other b) The area where the system interacts with its environment c) The area where the system components are located d) The area where the system objectives are defined 64 - How are systems and their components defined in the context of computer system programming? a) Independently functioning units b) Interrelated components with common objectives c) Entities isolated from their environment d) Variables with static properties 65 - Which type of cluster aims to enhance the availability of services and eliminate single points of failure by providing redundancy? a) High Availability Clusters (HA). b) Network Load Balancing Clusters. c) Parallel/Distributed Processing Clusters. d) Beowulf Clusters. 66 - What are the advantages and disadvantages of simulation? a) It allows for accurate representation of real-world systems. b) It can be time-consuming and expensive. c) It is not suitable for complex systems. d) It does not provide realistic results 68 - When is simulation the appropriate tool? a) When studying a subset of a larger system b) When studying input-output relations of system components c) When studying the effects of changes in the system environment d) When studying the interaction between system components 69 - What is an endogenous event? a) An event that occurs within the system b) An event that occurs in the system environment c) An event that changes the state of the system d) An event that has an immediate occurrence 70 - What is the output of the following Python code? a = 200 b = 33 c = 500 if a > b and c > a: print ("A B") a) A b) B c) A B d) B A 71 - What is the output of the following Python code? a=2 b = 330 print("A") if a>b else print("B") a) A b) B c) A B d) B A 72 - To specify the data type of a variable nam to string we use a) string nam="Ahmed" print(nam) b) str nam="Ahmed" print(nam) c) nam=string("Ahmed") print(nam) d) nam=str("Ahmed") print(nam) 73- What is the output of the following Python code? for x in range(5, 30, 10): print(x) a) 0 5 15 25 b) 5 15 25 c) 5 15 25 30 d) 0 5 15 25 30 74 – What is the output of the following Python code? i=1 while i < 6: print(i) if i == 3: break i += 1 a) 1 2 b) 1 2 3 c) 1 2 3 4 5 d) 1 2 3 4 5 6 75 – What is the output of the following Python code? i=0 while i < 6: i += 1 if i == 3: continue print(i) a) 1 2 4 5 6 b) 0 1 2 4 5 6 c) 0 1 2 3 4 d)1 2 3 4 5 76 - What is the output of the following Python code? colorlist = ["red", "green", "blue"] colorlist.insert(2, "black") print(colorlist) a) ['red', 'green', 'blue'] b) ['red', 'black', 'green', 'blue'] c) ['red', 'green', 'black', 'blue'] d) ['red', 'green', 'blue', 'black'] 77 - What is the output of the following Python code? colorlist = ["red", "green", "blue"] colorlist.insert("black") print(colorlist) a) Error b) ['red', 'black', 'green', 'blue'] c) ['red', 'green', 'black', 'blue'] d) ['red', 'green', 'blue', 'black'] 78 - What is the output of the following Python code? colorlist = ["red", "green", "blue"] colorlist.append("black") print(colorlist) a) Error b) ['red', 'black', 'green', 'blue'] c) ['red', 'green', 'black', 'blue'] d) ['red', 'green', 'blue', 'black '] 79 - Which line number has error in the following Python code? def add: x=(int)(input("Enter first number:")) y=(int)(input("Enter second number:")) sum=x+y print("Sum=",sum) add() a) 1 b) 4 c) 5 d) 6 80 - Which line has error in the following Python code? def add2() x=(int)(input("Enter first number:")) y=(int)(input("Enter second number:")) sum=x+y print("Sum=",sum) add2() a) 1 b) 4 c) 5 d) 6 81 - What is the output of the following Python code if the inputs 10, 2 ? def calculate(): x=(float)(input("Enter first number:")) y=(float)(input("Enter second number:")) sum=x+y div=x/y return sum,div r1,r2=calculate(): print(r1,r2) a) 10 b) 2 c) 10 2 d) Error 82 - What is the output of the following Python code? scores = [[12, 15, 13, 35], [9, 10, 10, 20], [20, 19, 17, 40]] print(scores) a) 12 b) 15 c) 9 d) 10 83 - What is the output of the following Python code? scores = [[12, 15, 13, 35], [9, 10, 10, 20], [20, 19, 17, 40]] print(len(scores)) a) 4 b) 3 c) 0 d) Error 84 - -------- is a python collection which is ordered and unchangeable. a) list b) Tuple c) Set d) Dictionary 85 - What is the output of the following Python code? months={'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'} print(months) a) Feb b) Mar c) 0 d) Error 86 - How does the probability of an event change if more outcomes are added to the sample space? A) Increases B) Decreases C) Remains the same D) Cannot be determined 87 - Which measure indicates the average value of a random variable? A) Median B) Mode C) Mean D) Range 88 - What role does the probability mass function play in the analysis of discrete random variables? A) Describing the spread of the distribution B) Calculating the cumulative probabilities C) Assigning probabilities to specific outcomes D) Estimating the variance of the distribution 89 - What is the range of values for a probability of an event? A) 0 to 1 B) -1 to 1 C) 0 to ∞ D) -∞ to ∞ 90 - In a fair six-sided dice roll, what is the probability of rolling an even number? A) 1/2 B) 1/3 C) 1/6 D) 2/3 91 - Which term describes the likelihood of an event occurring based on subjective judgment? A) Empirical probability B) Theoretical probability C) Subjective probability D) Conditional probability 92- What is the probability of an event that includes all outcomes in the sample space? A) 0 B) 1 C) 0.5 D) 2 93 - What is the purpose of the cumulative distribution function? A) To calculate the mean of a distribution B) To summarize probabilities up to a certain point C) To generate random numbers D) To describe discrete outcomes 94 - Which type of random variable can take on an infinite number of possible values within a given range? A) Discrete B) Continuous C) Categorical D) Nominal 95 - What is the key characteristic of a probability mass function? A) It can take on any real value B) It is continuous C) It assigns probabilities to discrete values D) It is used for continuous random variables 96 - What does the notation P (X ≤ 2) represent in the context of probability mass functions? A) Probability of X being less than or equal to 2 B) Probability of X being greater than 2 C) Probability of X being exactly 2 D) Probability of X being negative 97 - Which term is used to describe a function that satisfies the properties of a probability mass function? A) Cumulative Distribution Function B) Probability Density Function C) Probability Mass Function D) Random Variable Function 98 - What is the main purpose of using probability distributions in simulation modeling? A) To eliminate randomness B) To ensure deterministic outcomes C) To model uncertainty and variability D) To guarantee accurate predictions 99 - What is the primary benefit of using probability in simulation modeling? A) Ensuring 100% accuracy B) Capturing real-world uncertainty C) Eliminating all risks D) Guaranteeing deterministic outcomes 100 - How can probability mass functions be utilized in the context of discrete random variables? A) To predict continuous outcomes B) To model deterministic events C) To assign probabilities to specific values D) To eliminate randomness 101 - What is the formula for calculating the probability of an event in a discrete sample space? A) P(E) = sum of outcomes in E B) P(E) = total outcomes in E C) P(E) = product of outcomes in E D) P(E) = difference of outcomes in E 102 - What is the sample space for flipping a coin two times? A) {HH, HT, TH, TT} B) {H, T} C) {H, H} D) {HH, TT} 103 - What is the focus of Lecture 4 in the PDF? A) Data Structures B) Probability in Simulation C) Networking Concepts D) Software Development 104 - Which type of random variable is characterized by a probability mass function? A) Discrete B) Continuous C) Both D) Neither 105 - What does the probability density function describe in the context of continuous random variables? A) Probability of specific outcomes B) Probability distribution over a range C) Mean of the distribution D) Variance of the distribution

Use Quizgecko on...
Browser
Browser