Vous êtes sur la page 1sur 7

1

Software Developer Assessment Test

Name: Dated: Max Time: 30m

Q1: Which of the following keyword is used to change data and behaviour of a base class by
replacing a member of the base class with a new derived member?
a) Overloads
b) Overrides
c) new
d) base

Q2: Wrong statement about run time polymorphism is?


a) The overridden base method should be virtual,abstract or override
b) An abstract method is implicitly a virtual method
c) An abstract inherited property cannot be overridden in a derived class
d) Both override method and virtual method must have same access level modifier

Q3: The capability of an object in Csharp to take number of different forms and hence display
behaviour as according is known as:
a) Encapsulation
b) Polymorphism
c) Abstraction
d) None of the mentioned

Q4: Select the output for the given set of code?

1. public class sample


2. {
3. public static int x = 100;
4. public static int y = 150;
5.
6. }
7. public class newspaper :sample
8. {
9. new public static int x = 1000;
10. static void Main(string[] args)
11. {
12. console.writeline(sample.x + " " + sample.y + " " + x);
13. }
14. }
a) 100 150 1000
b) 1000 150 1000
c) 100 150 1000
d) 100 150 100

Q5: Which among the following cannot be used as a datatype for an enum in C#.NET?
a) short
b) double
c) int
d) all of the mentioned
2
Q6: “A mechanism that binds together code and data in manipulates, and keeps both safe from
outside interference and misuse. In short it isolates a particular code and data from all other codes
and data. A well-defined interface controls the access to that particular code and data.”
a) Abstraction
b) Polymorphism
c) Inheritance
d) Encapsulation

Q7: Correct way of declaration of object of the following class is ?


class name
a) name n = new name();
b) n = name();
c) name n = name();
d) n = new name();

Q8: The ‘ref’ keyword can be used with which among the following?
a) Static function/subroutine
b) Static data
c) Instance function/subroutine
d) All of the mentioned

Q9: Which statement is correct about following c#.NET code ?


int[] a= {11, 3, 5, 9, 6};
a) ‘a’ is a reference to the array created on stack
b) ‘a’ is a reference to an object created on stack
c) ‘a’ is a reference to an object of a class that compiler drives from ‘System.Array’ class
d) None of the mentioned

Q10: Which of these is used as a default specifier for a member of the class if no access specifier is
used for it?
a) private
b) public
c) public, within its own class
d) protected

Q11: Accessibility modifier defined in a class are?


a) public, private, protected
b) public, internal, protected internal.
c) public, private, internal, protected internal.
d) public, private, protected, internal, protected internal

Q12: Choose the statements which are false in nature:


a) The base class member functions can access public member functions of derived class
b) An object of a derived class cannot access private member of the base class
c) Private members of the base class cannot be accessed by derived class member functions or
objects of derived class
d) None of the mentioned
3

Q13: The basic data type char(n) is a _____ length character string and varchar(n) is _____ length
character.
a) Fixed, equal
b) Equal, variable
c) Fixed, variable
d) Variable, equal

Q14: All aggregate functions except _____ ignore null values in their input collection.
a) Count(attribute)
b) Count(*)
c) Avg
d) Sum

Q15: Dates must be specified in the format


a) mm/dd/yy
b) yyyy/mm/dd
c) dd/mm/yy
d) yy/dd/mm

Q16: Which of the following is used to store movie and image files ?
a) Clob
b) Blob
c) Binary
d) Image

Q17: Explanation: SQL therefore provides large-object data types for character data (clob) and
binary data (blob). The letters “lob” in these data types stand for “Large OBject.” .

The user defined data type can be created using


a) Create datatype
b) Create data
c) Create definetype
d) Create type

Q18: Which of the following statements creates a new table temp instructor that has the same
schema as instructor.
a) create table temp_instructor;
b) Create table temp_instructor like instructor;
c) Create Table as temp_instructor;
d) Create table like temp_instructor;

Q19: A __________ is a special kind of a store procedure that executes in response to certain action
on the table like insertion, deletion or updation of data.
a) Procedures
b) Triggers
c) Functions
d) None of the mentioned
4
Q20: What are the after triggers ?
a) Triggers generated after a particular operation
b) These triggers run after an insert, update or delete on a table
c) These triggers run after an insert, views, update or delete on a table
d) All of the mentioned

Q21: The format for compound statement is


a) Begin ……. end
b) Begin atomic……. end
c) Begin ……. repeat
d) Both Begin ……. end and Begin atomic……. End

Q22: A stored procedure in SQL is a___________


a) Block of functions
b) Group of Transact-SQL statements compiled into a single execution plan.
c) Group of distinct SQL statements.
d) None of the mentioned

Q23: Which of the following real world scenarios would you associate with a stack data structure?
a) piling up of chairs one above the other
b) people standing in a line to be serviced at a counter
c) offer services based on the priority of the customer
d) all of the mentioned

Q24: Which is not feature of OOP in general definitions?


a) Code reusability
b) Modularity
c) Duplicate/Redundant data
d) Efficient Code

Q25: How many classes can be defined in a single program?


a) Only 1
b) Only 100
c) Only 999
d) As many as you want

Q26: You need to write X++ code that is common to both the Cust Table table and the Vend Table
table. The solution must minimize the duplication of code.

What should you do?

a) Modify Cust Table to add all the fields in Vend Table. Write X* + code that uses Cust Table.

b) Create a view that includes the fields in both Cust Table and Vend Table. Write X+ + code that uses
the view.

c) Create a table that extends from Cust Table and Vend Table. Write X+ + code that uses the new
table.

d) Create a map that links Cust Table and Vend Table. Write X++ code that uses the map.
5
Q27: You need to provide users with the ability to open a Microsoft SQL Server Reporting Services
(SSRS) report from a form.

What should you use?

a) A data source.

b) A form part.

c) An output menu item.

d) A display method.

Q28: You develop a Microsoft SQL Server Reporting Services (SSRS) report for a customer.

You need to ensure that the report is available in Dynamics AX.

Where should you save the report?

a) The Dynamics AX model store.

b) The SSRS server.

c) The Application Object Server (AOS).

d) The Dynamics AX clients.

Q29: You have two tables named Table l and Table2. There is a relationship between the tables.

You need to display data from both tables in a form.

How should you create the data source for the form?

a) Add both tables to a perspective and use the perspective as the data source.

b) Create a new table named Table3 that is related to Table l and Table2. Use Tables as the data
source.

c) Add both tables to a map and use the map as the data source.

d) Add both tables to a query and use the query as the data source.

Q30: Which three types of components can be customized by using the Morph X development
environment?

Each correct answer presents a complete solution.

a) Dynamics AX security roles.

b) Dynamics AX Enterprise Portal panes.

c) Dynamics AX client forms.

d) Microsoft SQL Server Reporting Services (SSRS) reports.

e) Dynamics AX tables.

Q31: Which three statements accurately describe views in Dynamics AX?

Each correct answer presents a complete solution.

a) A view can be created from a query.


6
b) You can update a view by using the Table Browser.

c) Views can be used to display a subset of the data from the source tables.

d) The data for the view is refreshed periodically by using a batch job.

e) The definition of the view is stored in the database when the view is synchronized.

Q32: Is XDS applicable on Administrator; Yes: ___ Or No: ___?

Q33: Write a C# code to swap the value of following variables without using third variable.

a=30 & b= 50.

Q34: Which of the following elements are not available in Data Dictionary;

a) Tables.

b) Views.

c) Queries.

d) Base Enum

e) Display Menus

Q35: Is following statement is true for updating Custtable data? ____.

Select forupdate Custtable where Custtable.accountnum == ‘00001’;

Custtable.currency == ‘PKR’;

Custtable.update();

Q36: Is following statement is true? _____

select firstOnly it where subStr(it. ItemId,1,3) == '121';

Q37: Which of the following method call first when Form open?

a) init()

b) run()

Q38: Is following statement is true? ____.

Inventtable it; Itemid _id; _id = ‘000%’;

While it where it.itemid like _id

/*Statement*/

}
7
Q39: Is Primary Key in a table can be null? ____.

Q40: Write a query that return Purchid PO-0001 from Purchtable but currency code in table can not
be PKR.

Q41:

Table: - Product Table: - SalesLine

ProdId ProdName SalesId ItemId IsDeleted


0001 A SO-0001 A No
0002 B SO-0002 A Yes
0003 C SO-0003 C No
0004 D SO-0004 H No
0005 E SO-0005 B No
0006 G SO-0001 H No
0007 H SO-0002 D No
SO-0001 B No
SO-0005 G Yes
SO-0003 D No
SO-0005 A No
SO-0003 H Yes

a) Write an inner join query by using above tables.

b) Write an outer join query that return all products by using above tables.

c) Write a query that return products from product table & those products not from salesline table.

d) Write a query that return products from product table & those products from salesline table but
isdeleted treated as No.

Vous aimerez peut-être aussi