Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Software Development Fundamentals Exercises and Questions, Exams of Biology

A series of exercises and questions related to software development fundamentals, covering topics such as object-oriented programming, data structures, and database design. It provides practical examples and scenarios to test understanding of key concepts and principles.

Typology: Exams

2024/2025

Available from 11/02/2024

tutor-lee-1
tutor-lee-1 🇺🇸

5

(1)

2.6K documents

1 / 9

Toggle sidebar

Related documents


Partial preview of the text

Download Software Development Fundamentals Exercises and Questions and more Exams Biology in PDF only on Docsity!

MTA Software

Development

Fundamentals

(supplemental)

public Class ANumber { private int _number=7; public ANumber() { } public ANumber (int number) { _number = number; } } If the code is executed with

ANumber mynumber = new ANumber(3);, what is the value of _number after the code is executed? - answer 3 You are creating an editor in C# for video game characters. You need to be able to expose the level value of the characters so other objects may access them at any time. What should you do to code the object? - answer Mark the level variable as public You have a stack that contains integer values. The values are pushed onto the stack in the following order: 2,4,6,8. The following sequence of operations is executed: Pop Pop Push 3 Pop Push 4 Push 7 Pop Pop Pop

What is the value of the top element after these operations are executed? - answer 2 You need to create an application that processes data on a first-in, first-out (FIFO) basis. Which data structure should you use? - answer Queue You are translating software specifications into code components. The specifications require a class that cannot be instantiated but can specify methods that must be implemented in concrete inherited classes. Which type of class should you build? - answer abstract Which term is used to describe the process of preserving user data during a session? - answer State Managment You need to ensure the data integrity of a database by resolving insertion, update, and deletion anomalies. Which term is used to describe this process in relational database design? - answer Normalization You need to debug a Windows Service application by using breakpoints

What should you do? - answer Set the Windows Service status to PAUSED Your database administrators will not allow you to write SQL code in your application. How should you retrieve data in your application? - answer Script a SELECT statement to a file. You have a base class named Tree with a friend property named color and a protected property named NumberOfLeaves. In the same project, you also have a class named Person. Methods in the Person class can access the color property - answer Yes You have a base class named Tree with a friend property named color and a protected property named NumberOfLeaves. In the same project, you also have a class named Person. Methods in the Person class can access the NumberOfLeaves property - answer No You have a base class named Tree with a friend property named color and a protected property

named NumberOfLeaves. In the same project, you also have a class named Person. Methods in the Tres class can access all private properties in Person - answer No You are translating software specifications into code components. The specification require a class that cannot be instantiated but can specify methods that must be implemented in concrete inherited classes. Which type of class should you build? - answer Abstract You are developing an application that tracks tennis matches. A match is represented by the following class: Public class match { Pubilc Match() { Location = "unknown"; } Public string Location {get; set;}

Public DateTime MatchDate {get; set;} } A match is created by the following code Match myMatch = new Match(); myMatch.Location= "north region; myMatch.MatchDate = new DateTIme (2013, 4, 14); How many times is the Location property on the newly created Match class assigned? - answer 2 You are developing an application that displays a list of race results. The race results are stored in the following class: public class RaceSpeedRecord { public RaceSpeedRecord Faster; public RaceSpeedRecord Slower; public string Race; public double Time; }

The code that manages the list is as follows: public class Results { public Results() { CurrentOlympicRecord = new RaceSpeedRecord(); } public RaceSpeedRecord CurrentOlympicRecord; public void AddRace( string raceName, double time) { } } You need to implement the AddRace method. Match the code segment to its location. current.Faster

current.Slower current.Time current.Race - answer while (current.Time) current=current.slower The default entry point for a console application is the Class method. Is the above underlined word correct? If so, mark "no change." If not, give the correct answer. - answer Main Console applications use files such as stdin and stdout to process data. Is the above underlined word correct? If so, mark "no change." If not, give the correct answer. - answer streams You need to implement an application requirement to specify that unrelated objects must support a common method. You should use AN INTERFACE to achieve this goal. Look at the capitalized text, and change if incorrect. Otherwise select No change is needed. - answer No Change is Needed

You are building an application to store results for an exam. You need to record whether the answer is correct or incorrect. You also need to minimize the amount of memory that is used. Which data type should you use? - answer boolean