Showing posts with label Software. Show all posts
Showing posts with label Software. Show all posts

Dotnet Windows Forms interview questions and answers

  1. Write a simple Windows Forms MessageBox statement.
System.Windows.Forms.MessageBox.Show
 ("Hello, Windows Forms");
  1. Can you write a class without specifying namespace? Which namespace does it belong to by default??
    Yes, you can, then the class belongs to global namespace which has no name. For commercial products, naturally, you wouldn’t want global namespace.
  2. You are designing a GUI application with a window and several widgets on it. The user then resizes the app window and sees a lot of grey space, while the widgets stay in place. What’s the problem? One should use anchoring for correct resizing. Otherwise the default property of a widget on a form is top-left, so it stays at the same location when resized.
  3. How can you save the desired properties of Windows Forms application? .config files in .NET are supported through the API to allow storing and retrieving information. They are nothing more than simple XML files, sort of like what .ini files were before for Win32 apps.
  4. So how do you retrieve the customized properties of a .NET application from XML .config file? Initialize an instance of AppSettingsReader class. Call the GetValue method of AppSettingsReader class, passing in the name of the property and the type expected. Assign the result to the appropriate variable.
  5. Can you automate this process? In Visual Studio yes, use Dynamic Properties for automatic .config creation, storage and retrieval.
  6. My progress bar freezes up and dialog window shows blank, when an intensive background process takes over. Yes, you should’ve multi-threaded your GUI, with taskbar and main form being one thread, and the background process being the other.
  7. What’s the safest way to deploy a Windows Forms app? Web deployment: the user always downloads the latest version of the code; the program runs within security sandbox, properly written app will not require additional security privileges.
  8. Why is it not a good idea to insert code into InitializeComponent method when working with Visual Studio? The designer will likely throw it away; most of the code inside InitializeComponent is auto-generated.
  9. What’s the difference between WindowsDefaultLocation and WindowsDefaultBounds? WindowsDefaultLocation tells the form to start up at a location selected by OS, but with internally specified size. WindowsDefaultBounds delegates both size and starting position choices to the OS.
  10. What’s the difference between Move and LocationChanged? Resize and SizeChanged? Both methods do the same, Move and Resize are the names adopted from VB to ease migration to C#.
  11. How would you create a non-rectangular window, let’s say an ellipse? Create a rectangular form, set the TransparencyKey property to the same value as BackColor, which will effectively make the background of the form transparent. Then set the FormBorderStyle to FormBorderStyle.None, which will remove the contour and contents of the form.
  12. How do you create a separator in the Menu Designer? A hyphen ‘-’ would do it. Also, an ampersand ‘&\’ would underline the next letter.
  13. How’s anchoring different from docking? Anchoring treats the component as having the absolute size and adjusts its location relative to the parent form. Docking treats the component location as absolute and disregards the component size. So if a status bar must always be at the bottom no matter what, use docking. If a button should be on the top right, but change its position with the form being resized, use anchoring.

Asp.net Interview Questions and Answers

1.      Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process. inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among other things.When an ASP.NET request is received (usually a file with .aspx extension),the ISAPI filter aspnet_isapi.dll takes care of it by passing the request tothe actual worker process aspnet_wp.exe.
2.      What’s the difference between Response.Write() andResponse.Output.Write()? The latter one allows you to write formattedoutput.
3.      What methods are fired during the page load? Init() - when the pageis instantiated, Load() - when the page is loaded into server memory,PreRender() - the brief moment before the page is displayed to the user asHTML, Unload() - when page finishes loading.
4.      Where does the Web page belong in the .NET Framework class hierarchy?System.Web.UI.Page
5.      Where do you store the information about the user’s locale? System.Web.UI.Page.Culture
6.      What’s the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"? CodeBehind is relevant to Visual Studio.NET only.
7.      What’s a bubbled event? When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its constituents.
8.      Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do you add an event handler? It’s the Attributesproperty, the Add function inside that property. So btnSubmit.Attributes.Add("onMouseOver","someClientCode();")
9.      What data type does the RangeValidator control support? Integer,String and Date.
10.  Explain the differences between Server-side and Client-side code?  Server-side code runs on the server. Client-side code runs in the clients’ browser.
11.  What type of code (server or client) is found in a Code-Behind class? Server-side code.
12.  Should validation (did the user enter a real date) occur server-side or client-side? Why? Client-side. This reduces an additional request to the server to validate the users input.
13.  What does the "EnableViewState" property do? Why would I want it on or off?  It enables the viewstate on the page. It allows the page to save the users input on a form.
14.  What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other? Server.Transfer is used to post a form to another page. Response.Redirect is used to redirect the user to another page or site.
15.  Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?
·         A DataSet can represent an entire relational database in memory, complete with tables, relations, and views.
·         A DataSet is designed to work without any continuing connection to the original data source.
·         Data in a DataSet is bulk-loaded, rather than being loaded on demand.
·         There's no concept of cursor types in a DataSet.
·         DataSets have no current record pointer You can use For Each loops to move through the data.
·         You can store many edits in a DataSet, and write them to the original data source in a single operation.
·         Though the DataSet is universal, other objects in ADO.NET come in different versions for different data sources.
16.  Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?  This is where you can set the specific variables for the Application and Session objects.
17.  If I’m developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users? Maintain the login state security through a database.
18.  Can you explain what inheritance is and an example of when you might use it? When you want to inherit (use the functionality of) another class. Base Class Employee. A Manager class could be derived from the Employee base class.
19.  Whats an assembly?  Assemblies are the building blocks of the .NET framework. Overview of assemblies from MSDN
20.  Describe the difference between inline and code behind. Inline code written along side the html in a page. Code-behind is code written in a separate file and referenced by the .aspx page.
21.  Explain what a diffgram is, and a good use for one? The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML. For reading database data to an XML file to be sent to a Web Service.
22.  Whats MSIL, and why should my developers need an appreciation of it if at all? MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL.
23.  Which method do you invoke on the DataAdapter control to load your generated dataset with data? The .Fill() method
24.  Can you edit data in the Repeater control?  No, it just reads the information from its data source
25.  Which template must you provide, in order to display data in a Repeater control? ItemTemplate
26.  How can you provide an alternating color scheme in a Repeater control? Use the AlternatingItemTemplate
27.  What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control? You must set the DataSource property and call the DataBind method.
28.  What base class do all Web Forms inherit from?  The Page class.
29.  Name two properties common in every validation control? ControlToValidate property and Text property.
30.  What tags do you need to add within the asp:datagrid tags to bind columns manually? Set AutoGenerateColumns Property to false on the datagrid tag
31.  What tag do you use to add a hyperlink column to the DataGrid? <asp:HyperLinkColumn>
32.  What is the transport protocol you use to call a Web service? SOAP is the preferred protocol.
33.  True or False: A Web service can only be written in .NET? False
34.  What does WSDL stand for? (Web Services Description Language)
35.  Where on the Internet would you look for Web services? (http://www.uddi.org)
36.  Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box? DataTextField property
37.  Which control would you use if you needed to make sure the values in two different controls matched?  CompareValidator Control
38.  True or False: To test a Web service you must create a windows application or Web application to consume this service? False, the webservice comes with a test page and it provides HTTP-GET method to test.
39.  How many classes can a single .NET DLL contain?  It can contain many classes.


Technical Aptitude Test Questions - ebook

An excellent resource to prepare for technical aptitude tests.

Table of Contents

Data Structures Aptitude..........................................................................
C Aptitude..............................................................................................
C++ Aptitude and OOPS.........................................................................
Quantitative Aptitude...........................................................................
UNIX Concepts.....................................................................................
RDBMS Concepts................................................................................
SQL......................................................................................................
Computer Networks.............................................................................
Operating Systems.............................................................................

Network Engineer Interview Questions

§  General Knowledge Questions
o   Describe the OSI model.
o   What is the difference between a repeater, bridge, router?
§  relate this to the OSI model
o   Describe an Ethernet switch and where it fits into the OSI model.
§  What is a VLAN?
o   Relate WDM/ATM/SONET to the OSI model.
o   Explain how to configure a host network interface (e.g. IP address, netmask, broadcast address)?
o   Describe Ethernet packet contents: min./max. size, header.
o   Describe TCP/IP and its protocols.
o   Describe ATM and what are its current advantages and disadvantages.
§  Describe SONET
o   What are the maximum distances for CAT5 cabling?
o   Which contacts of an RJ-45 connector are used for 10BaseT? 100BaseT? 1000BaseT?
o   Describe UDP and TCP and the differences between the two.
o   What is your current IP address?
o   Describe what a broadcast storm is.
o   Describe what a runt, a giant, and a late collision are and what causes each of them.
o   How do you distinguish a DNS problem from a network problem?
o   Describe the Bandwidth Delay problem.
o   What is CDP?

§  Network Troubleshooting 
o   Explain how traceroute, ping, and tcpdump work and what they are used for?
§  Describe a case where you have used these tools to troubleshoot.
o   What is the last major networking problem you troubleshot and solved on your own in the last year?
o   What LAN analyzer tools are you familiar with and describe how you use them to troubleshoot and on what media and network types.

§  Routing
o   Explain the contents of a routing table (default route, next hop, etc.)
o   What routing protocols have you configured?
§  describe the commands to set up a route
§  what routing problems have you troubleshot
o   How do you display a routing table on a Cisco?  on a host?
§  How do you use a routing table and for what?
o   What is a route flap?
o   What is a metric?
o   When do you use BGP, IGRP, OSPF, Static Routes?

§  Network Security
o   What do you see as current networking security issues (e.g. NFS mounting, spoofing, one time passwords, etc.)?
o   Describe a routing filter and what it does.
o   Describe an access list and what it does.
o   What are some examples of protocols used for VPN connections?

§  Network Management
o   What is a network management system?
o   Describe how SNMP works.
o   What is a MIB?

§  Previous Work
o   Describe the working environment you are currently in, e.g. frequent
interruptions, frequent priority shifting, team or individual.
o   What do you use to write documentation?  Editor?  Mail reader?
o   What platform (s) do you currently work on at your desk?
o   How do you manage multiple concurrent high-level projects?
o   Describe a recent short-term stressful situation and how you managed it.
o   How do you manage a long term demanding stressful work environment?
o   Have you worked in an assignment-based environment, e.g. work request/
trouble-ticket system, and if so, describe that environment.

§  Programming 
o   What applications have you written in C, JAVA, PERL, or other languages.

§  Network Statistics and Measurement 
o   Describe what network statistics or measurement tools you are familiar with and how you have used them.

§  Wireless 
o   Describe how 802.11b works and the advantages and disadvantages of using it.
o   Describe how WEP works and its strengths and weaknesses
o   Describe what a VPN is and how it works.

§  VoIP 
o   Describe how VoIP works.
o   Describe methods of QoS.
o   Describe the difference between the Integrated Services and the Differentiated Services QoS models.
o   How does the ToS bit work?
o   What is a voice codec?
o   What is a dial plan and what does it do?
o   What is a Mean Opinion Score (MoS)?
o   Describe the basic boot up sequence for an IP phone."

§  Optical
o   Describe what WDM is and how it works.
o   What's the difference between DWDM and CWDM? Why would each be used?
o   What is an EDFA? What does it do? How does it work?
o   How many dB's of attenuation results in 50% of a signal is getting thru? 10%?
o   What's a typical attenuation for SM fiber at 1310 nM? 1550nM?
§  RAS
o   What is a RAS and how does it work?
o   Describe the current modem standard and how it works.
o   Describe what a PRI is and how it works.

§  Project Management 
o   Describe a long term, large scale project you managed.
o   What is your experience with scheduling and project management?
§  What computer packages have you used?
§  What tools have you used?
o   How many staff have you directly managed?

§  Training/Presentations
o   How would you train other engineers/technicians on network troubleshooting?
o   What is the last formal training you have had including seminars,
tutorials, classes, etc.?
o   What conferences have you attended in the last two years?
o   What periodicals do you read on a regular basis?
o   What professional organizations do you belong to and participate in?

COBOL Mainframe Interview Questions - Part 2

  1. What is the difference between CONTINUE & NEXT SENTENCE ?
    CONTINUE is like a null statement (do nothing) , while NEXT SENTENCE transfers control to the next sentence (!!) (A sentence is terminated by a period)
  2. What does EXIT do ?
    Does nothing ! If used, must be the only sentence within a paragraph.
  3. Can I redefine an X(100) field with a field of X(200)?
    Yes. Redefines just causes both fields to start at the same location. For example:

    01 WS-TOP PIC X(1)

    01 WS-TOP-RED REDEFINES WS-TOP PIC X(2).

    If you MOVE '12' to WS-TOP-RED,

    DISPLAY WS-TOP will show 1 while

    DISPLAY WS-TOP-RED will show 12.
  4. Can I redefine an X(200) field with a field of X(100) ?
    Yes.
  5. What do you do to resolve SOC-7 error?
    Basically you need to correcting the offending data.

    Many times the reason for SOC7 is an un-initialized numeric item. Examine that possibility first.

    Many installations provide you a dump for run time abends ( it can be generated also by calling some subroutines or OS services thru assembly language). These dumps provide the offset of the last instruction at which the abend occurred. Examine the compilation output XREF listing to get the verb and the line number of the source code at this offset. Then you can look at the source code to find the bug. To get capture the runtime dumps, you will have to define some datasets (SYSABOUT etc ) in the JCL.

    If none of these are helpful, use judgement and DISPLAY to localize the source of error.

    Some installtion might have batch program debugging tools. Use them.
  6. How is sign stored in Packed Decimal fields and Zoned Decimal fields?
    Packed Decimal fields: Sign is stored as a hex value in the last nibble (4 bits ) of the storage.

    Zoned Decimal fields: As a default, sign is over punched with the numeric value stored in the last bite.
  7. How is sign stored in a comp-3 field?
    It is stored in the last nibble. For example if your number is +100, it stores hex 0C in the last byte, hex 1C if your number is 101, hex 2C if your number is 102, hex 1D if the number is -101, hex 2D if the number is -102 etc...
  8. How is sign stored in a COMP field ?
    In the most significant bit. Bit is on if -ve, off if +ve.
  9. What is the difference between COMP & COMP-3 ?
    COMP is a binary storage format while COMP-3 is packed decimal format.
  10. What is COMP-1? COMP-2?
    COMP-1 - Single precision floating point. Uses 4 bytes.

    COMP-2 - Double precision floating point. Uses 8 bytes.
  11. How do you define a variable of COMP-1? COMP-2?
    No picture clause to be given. Example 01 WS-VAR USAGE COMP-1.
  12. How many bytes does a S9(7) COMP-3 field occupy ?
    Will take 4 bytes. Sign is stored as hex value in the last nibble.

    General formula is INT((n/2) + 1)), where n=7 in this example
  13. How many bytes does a S9(7) SIGN TRAILING SEPARATE field occupy ?
    Will occupy 8 bytes (one extra byte for sign).
  14. How many bytes will a S9(8) COMP field occupy ?
    4 bytes
  15. What is the maximum value that can be stored in S9(8) COMP?
    99999999
  16. What is COMP SYNC?
    Causes the item to be aligned on natural boundaries. Can be SYNCHRONIZED LEFT or RIGHT.

    For binary data items, the address resolution is faster if they are located at word boundaries in the memory. For example, on main frame the memory word size is 4 bytes. This means that each word will start from an address divisible by 4. If my first variable is x(3) and next one is s9(4) comp, then if you do not specify the SYNC clause, S9(4) COMP will start from byte 3 ( assuming that it starts from 0 ). If you specify SYNC, then the binary data item will start from address 4. You might see some wastage of memory, but the access to this computational field is faster.
  17. What is the maximum size of a 01 level item in COBOL I? in COBOL II?
    In COBOL II: 16777215
  18. How do you reference the following file formats from COBOL programs:
    Fixed Block File - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F, BLOCK CONTAINS 0 .

    Fixed Unblocked - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F, do not use BLOCK CONTAINS

    Variable Block File - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS V, BLOCK CONTAINS 0. Do not code the 4 bytes for record length in FD ie JCL rec length will be max rec length in pgm + 4

    Variable Unblocked - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS V, do not use BLOCK CONTAINS. Do not code 4 bytes for record length in FD ie JCL rec length will be max rec length in pgm + 4.

    ESDS VSAM file - Use ORGANISATION IS SEQUENTIAL.

    KSDS VSAM file - Use ORGANISATION IS INDEXED, RECORD KEY IS, ALTERNATE RECORD KEY IS

    RRDS File - Use ORGANISATION IS RELATIVE, RELATIVE KEY IS

    Printer File - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F, BLOCK CONTAINS 0. (Use RECFM=FBA in JCL DCB).
  19. What are different file OPEN modes available in COBOL?
    Open for INPUT, OUTPUT, I-O, EXTEND.
  20. What is the mode in which you will OPEN a file for writing?
    OUTPUT, EXTEND
  21. In the JCL, how do you define the files referred to in a subroutine ?
    Supply the DD cards just as you would for files referred to in the main program.
  22. Can you REWRITE a record in an ESDS file? Can you DELETE a record from it?
    Can rewrite(record length must be same), but not delete.
  23. What is file status 92?
    Logic error. e.g., a file is opened for input and an attempt is made to write to it.
  24. What is file status 39 ?
    Mismatch in LRECL or BLOCKSIZE or RECFM between your COBOL pgm & the JCL (or the dataset label). You will get file status 39 on an OPEN.
  25. What is Static,Dynamic linking ?
    In static linking, the called subroutine is link-edited into the calling program , while in dynamic linking, the subroutine & the main program will exist as separate load modules. You choose static/dynamic linking by choosing either the DYNAM or NODYNAM link edit option. (Even if you choose NODYNAM, a CALL identifier (as opposed to a CALL literal), will translate to a DYNAMIC call).

    A statically called subroutine will not be in its initial state the next time it is called unless you explicitly use INITIAL or you do a CANCEL. A dynamically called routine will always be in its initial state.
  26. What is AMODE(24), AMODE(31), RMODE(24) and RMODE(ANY)? ( applicable to only MVS/ESA Enterprise Server).

    These are compile/link edit options.

    AMODE - Addressing mode. RMODE - Residency mode.

    AMODE(24) - 24 bit addressing. AMODE(31) - 31 bit addressing. AMODE(ANY) - Either 24 bit or 31 bit addressing depending on RMODE.

    RMODE(24) - Resides in virtual storage below 16 Meg line. Use this for 31 bit programs that call 24 bit programs. (OS/VS Cobol pgms use 24 bit addresses only).

    RMODE(ANY) - Can reside above or below 16 Meg line.
  27. What compiler option would you use for dynamic linking?
    DYNAM.
  28. What is SSRANGE, NOSSRANGE ?
    These are compiler options w.r.t subscript out of range checking. NOSSRANGE is the default and if chosen, no run time error will be flagged if your index or subscript goes out of the permissible range.
  29. How do you set a return code to the JCL from a COBOL program?
    Move a value to RETURN-CODE register. RETURN-CODE should not be declared in your program.
  30. How can you submit a job from COBOL programs?
    Write JCL cards to a dataset with

    //xxxxxxx SYSOUT=(A,INTRDR) where 'A' is output class, and dataset should be opened for output in the program. Define a 80 byte record layout for the file.
  31. What are the differences between OS VS COBOL and VS COBOL II?
    OS/VS Cobol pgms can only run in 24 bit addressing mode, VS Cobol II pgms can run either in 24 bit or 31 bit addressing modes.

    Report writer is supported only in OS/VS Cobol.

    USAGE IS POINTER is supported only in VS COBOL II.

    Reference modification eg: WS-VAR(1:2) is supported only in VS COBOL II.

    EVALUATE is supported only in VS COBOL II.

    Scope terminators are supported only in VS COBOL II.

    OS/VS Cobol follows ANSI 74 stds while VS COBOL II follows ANSI 85 stds.

    Under CICS Calls between VS COBOL II programs are supported
  32. What are the steps you go through while creating a COBOL program executable?
    DB2 precompiler (if embedded sql used), CICS translator (if CICS pgm), Cobol compiler, Link editor.
    If DB2 program, create plan by binding the DBRMs
  33. Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?
    In non-CICS environment, it is possible. In CICS, this is not possible.

COBOL Mainframe Interview Questions - Part 1

Name the divisions in a COBOL program.
IDENTIFICATION DIVISION, ENVIRONMENT DIVISION, DATA DIVISION, PROCEDURE DIVISION.
1. What are the different data types available in COBOL?
Alpha-numeric (X), alphabetic (A) and numeric (9).
2. What does the INITIALIZE verb do? –
Alphabetic, Alphanumeric fields & alphanumeric edited items are set to SPACES.

Numeric, Numeric edited items set to ZERO.

FILLER , OCCURS DEPENDING ON items left untouched.
3. What is 77 level used for ?
Elementary level item. Cannot be subdivisions of other items (cannot be qualified), nor can they be subdivided themselves.
4. What is 88 level used for ?
For condition names.
5. What is level 66 used for ?
For RENAMES clause.

6. What does the IS NUMERIC clause establish ?
IS NUMERIC can be used on alphanumeric items, signed numeric & packed decimal items and usigned numeric & packed decimal items. IS NUMERIC returns TRUE if the item only consists of 0-9. However, if the item being tested is a signed item, then it may contain 0-9, + and - .
7. What does the IS NUMERIC clause establish ?
IS NUMERIC can be used on alphanumeric items, signed numeric & packed decimal items and usigned numeric & packed decimal items. IS NUMERIC returns TRUE if the item only consists of 0-9. However, if the item being tested is a signed item, then it may contain 0-9, + and - .
8. Can the OCCURS clause be at the 01 level?
No.
9. What is the difference between index and subscript?
Subscript refers to the array occurrence while index is the displacement (in no of bytes) from the beginning of the array. An index can only be modified using PERFORM, SEARCH & SET.

Need to have index for a table in order to use SEARCH, SEARCH ALL.
10. What is the difference between SEARCH and SEARCH ALL?
SEARCH - is a serial search.

SEARCH ALL - is a binary search & the table must be sorted ( ASCENDING/DESCENDING KEY clause to be used & data loaded in this order) before using SEARCH ALL

11. What should be the sorting order for SEARCH ALL?
It can be either ASCENDING or DESCENDING. ASCENDING is default. If you want the search to be done on an array sorted in descending order, then while defining the array, you should give DESCENDING KEY clause. (You must load the table in the specified order).
12. What is binary search?
Search on a sorted array. Compare the item to be searched with the item at the center. If it matches, fine else repeat the process with the left half or the right half depending on where the item lies.
13. My program has an array defined to have 10 items. Due to a bug, I find that even if the program access the 11th item in this array, the program does not abend. What is wrong with it?
Must use compiler option SSRANGE if you want array bounds checking. Default is NOSSRANGE.
14. How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning.
Syntax:

SORT file-1 ON ASCENDING/DESCENDING KEY key....

USING file-2

GIVING file-3.

USING can be substituted by INPUT PROCEDURE IS para-1 THRU para-2

GIVING can be substituted by OUTPUT PROCEDURE IS para-1 THRU para-2.

file-1 is the sort workfile and must be described using SD entry in FILE SECTION.

file-2 is the input file for the SORT and must be described using an FD entry in FILE SECTION and SELECT clause in FILE CONTROL.

file-3 is the outfile from the SORT and must be described using an FD entry in FILE SECTION and SELECT clause in FILE CONTROL.

file-1, file-2 & file-3 should not be opened explicitly.

INPUT PROCEDURE is executed before the sort and records must be RELEASEd to the sort work file from the input procedure.

OUTPUT PROCEDURE is executed after all records have been sorted. Records from the sort work file must be RETURNed one at a time to the output procedure.
15. How do you define a sort file in JCL that runs the COBOL program?
Use the SORTWK01, SORTWK02,..... dd names in the step. Number of sort datasets depends on the volume of data being sorted, but a minimum of 3 is required.
16. What are the two ways of doing sorting in a COBOL program? Give the formats.
See question 17.

17. Give the format of USING and GIVING in SORT statement. What are the restrictions with it?
See question 16. Restrictions - Cannot massage records, canot select records to be sorted.
18. What is the difference between performing a SECTION and a PARAGRAPH?
Performing a SECTION will cause all the paragraphs that are part of the section, to be performed.

Performing a PARAGRAPH will cause only that paragraph to be performed.
19. What is the use of EVALUATE statement?
Evaluate is like a case statement and can be used to replace nested Ifs. The difference between EVALUATE and case is that no 'break' is required for EVALUATE i.e. control comes out of the EVALUATE as soon as one match is made.
20. What are the different forms of EVALUATE statement?
EVALUATE EVALUATE SQLCODE ALSO FILE-STATUS

WHEN A=B AND C=D WHEN 100 ALSO '00'

imperative stmt imperative stmt

WHEN (D+X)/Y = 4 WHEN -305 ALSO '32'

imperative stmt imperative stmt

WHEN OTHER WHEN OTHER

imperative stmt imperative stmt

END-EVALUATE END-EVALUATE

EVALUATE SQLCODE ALSO A=B EVALUATE SQLCODE ALSO TRUE

WHEN 100 ALSO TRUE WHEN 100 ALSO A=B

imperative stmt imperative stmt

WHEN -305 ALSO FALSE WHEN -305 ALSO (A/C=4)

imperative stmt imperative stmt

END-EVALUATE END-EVALUATE
21. How do you come out of an EVALUATE statement?
After the execution of one of the when clauses, the control is automatically passed on to the next sentence after the EVALUATE statement. There is no need of any extra code.
22. In an EVALUATE statement, can I give a complex condition on a when clause?
Yes

23. What is a scope terminator? Give examples.
Scope terminator is used to mark the end of a verb e.g. EVALUATE, END-EVALUATE; IF, END-IF.
24. How do you do in-line PERFORM?
PERFORM ... ...

END PERFORM

25. When would you use in-line perform?
When the body of the perform will not be used in other paragraphs. If the body of the perform is a generic type of code (used from various other places in the program), it would be better to put the code in a separate para and use PERFORM paraname rather than in-line perform.

Advanced JAVA interview questions

1. What is RMI?
2. Explain about RMI Architecture?
3. What are Servelets?
4. What is the use of servlets?
5. Explain RMI Architecture?
6. How will you pass values from htm page to the servlet?
7. How do you load an image in a Servelet?
8. What is purpose of applet programming?
9. How will you communicate between two applets?
10. What IS the difference between Servelets and Applets?
11. How do you communicate in between Applets and Servlets?
12. What is the difference between applet and application?
13. What is the difference between CGI and Servlet?
14. In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify the same information whether it will connect to the database or it will be used previous information?
15. What are the difference between RMI and Servelets?
16. How will you call an Applet using Java Script Function?
17. How can you push data from an Applet to a Servlet?
18. What are 4 drivers available in JDBC? At what situation are four of the drivers used?
19. If you are truncated using JDBC , how can you that how much data is truncated?
20. How will you perform truncation using JDBC?
21. What is the latest version of JDBC? What are the new features added in that?
22. What is the difference between RMI registry and OS Agent?
23. To a server method, the client wants to send a value 20, with this value exceeds to 20 a message should be sent to the client . What will you do for achieving this?
24. How do you invoke a Servelet? What is the difference between doPost method and doGet method?
25. What is difference between the HTTP Servelet and Generic Servelet? Explain about their methods and parameters?
26. Can we use threads in Servelets?
27. Write a program on RMI and JDBC using Stored Procedure?
28. How do you swing an applet?
29. How will you pass parameters in RMI? Why do you serialize?
30. In RMI ,server object is first loaded into memory and then the stub reference is sent to the client. true or false?
31. Suppose server object not loaded into the memory and the client request for it. What will happen?
32. What is the web server used for running the servelets?
33. What is Servlet API used for connecting database?
34. What is bean? Where can it be used?
35. What is the difference between java class and bean?
36. Can we sent objects using Sockets?
37. What is the RMI and Socket?
38. What is CORBA?
39. Can you modify an object in corba?
40. What is RMI and what are the services in RMI?
41. What are the difference between RMI and CORBA?
42. How will you initialize an Applet?
43. What is the order of method invocation in an Applet?
44. What is ODBC and JDBC? How do you connect the Database?
45. What do you mean by Socket Programming?
46. What is difference between Generic Servlet and HTTP Servelet?
47. What you mean by COM and DCOM?
48. what is e-commerce?

Java Technical Interview Questions Colletion

1. What is the difference between an Abstract class and Interface?
2. What is user defined exception?
3. What do you know about the garbage collector?
4. What is the difference between java and c++?
5. In an htm form I have a button which makes us to open another page in 15 seconds. How will you do that?
6. What is the difference between process and threads?
7. What is update method called?
8. Have you ever used HashTable and Directory?
9. What are statements in Java?
10. What is a JAR file?
11. What is JNI?
12. What is the base class for all swing components?
13. What is JFC?
14. What is the difference between AWT and Swing?
15. Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times ? Where three processes are started or three threads are started?
16. How does thread synchronization occur in a monitor?
17. Is there any tag in htm to upload and download files?
18. Why do you canvas?
19. How can you know about drivers and database information ?
20. What is serialization?
21. Can you load the server object dynamically? If so what are the 3 major steps involved in it?
22. What is the layout for toolbar?
23. What is the difference between Grid and Gridbaglayout?
24. How will you add panel to a frame?
25. Where are the card layouts used?
26. What is the corresponding layout for card in swing?
27. What is light weight component?
28. Can you run the product development on all operating systems?
29. What are the benefits if Swing over AWT?
30. How can two threads be made to communicate with each other?
31. What are the files generated after using IDL to java compiler?
32. What is the protocol used by server and client?
33. What is the functionability stubs and skeletons?
34. What is the mapping mechanism used by java to identify IDL language?
35. What is serializable interface?
36. What is the use of interface?
37. Why is java not fully objective oriented?
38. Why does java not support multiple inheritance?
39. What is the root class for all java classes?
40. What is polymorphism?
41. Suppose if we have a variable 'I' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
42. What are virtual functions?
43. Write down how will you create a Binary tree?
44. What are the traverses in binary tree?
45. Write a program for recursive traverse?
46. What are session variable in servlets?
47. What is client server computing?
48. What is constructor and virtual function? Can we call a virtual function in a constructor?
49. Why do we use oops concepts? What is its advantage?
50. What is middleware? What is the functionality of web server?
51. Why is java not 100% pure oops?
52. When will you use an interface and abstract class?
53. What is the exact difference in between Unicast and Multicast object? Where will it be used?
54. What is the main functionality of the remote reference layer?
55. How do you download stubs from Remote place?
56. I want to store more than 10 objects in a remote server? Which methodology will follow?
57. What is the main functionality of Prepared Statement?
58. What is meant by Static query and Dynamic query?
59. What are Normalization Rules? Define Normalization?
60. What is meant by Servelet? What are the parameters of service method?
61. What is meant by Session? Explain something about HTTP Session Class?
62. In a container there are 5 components. I want to display all the component names, how will you do that?
63. Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
64. Tell some latest versions in JAVA related areas?
65. What is meant by class loader? How many types are there? When will we use them?
66. What is meant by flickering?
67. What is meant by distributed application? Why are we using that in our application?
68. What is the functionality of the stub?
69. Explain about version control?
70. Explain 2-tier and 3-tier architecture?
71. What is the role of Web Server?
72. How can we do validation of the fields in a project?
73. What is meant by cookies? Explain the main features?
74. Why java is considered as platform independent?
75. What are the advantages of java over C++?
76. How java can be connected to a database?
77. What is thread?
78. What is difference between Process and Thread?
79. Does java support multiple inheritance? if not, what is the solution?
80. What are abstract classes?
81. What is an interface?
82. What is the difference abstract class and interface?
83. What are adapter classes?
84. what is meant wrapper classes?
85. What are JVM.JRE, J2EE, JNI?
86. What are swing components?
87. What do you mean by light weight and heavy weight components?
88. What is meant by function overloading and function overriding?
89. Does java support function overloading, pointers, structures, unions or linked lists?
90. What do you mean by multithreading?
91. What are byte codes?
92. What are streams?
93. What is user defined exception?
94. In an htm page form I have one button which makes us to open a new page in 15 seconds. How will you do that?

Related Posts Plugin for WordPress, Blogger...