Showing posts with label papers. Show all posts
Showing posts with label papers. Show all posts
1. Differences between DLL and EXE?
.exe
1.These are outbound file.
2.Only one .exe file exists per application.
3. .Exe cannot be shared with other applications.
.dll
1.These are inbund file .
2.Many .dll files may exists in one application.
3. .dll can be shared with other applications.
2. Can an assembly have EXE?
Assembly is nothing but single deployment and self describing. Yes Assembly can have dll/exe.
3. Can a DLL be changed to an EXE?
In short, the answer is no. Unlike an EXE file which contains a single entry point (typically WinMain() or simply main() depending on the type of exe file), a DLL file is a library of functions intended to be linked into a running application. A DLL file can have a nearly infinite (it’s based on file size and such) possible entry points.
4. Compare & contrast rich client (smart clients or Windows-based) & browser-based Web application
When implementing a client/server architecture you need to determine if it will be the client or the server that handles the bulk of the workload. By client, we mean the application that runs on a PC or workstation and relies on a server to perform some operations.
In last week’s Did You Know article we discussed the differences between thick clients (also called fat clients) and thin clients in terms of hardware. The terms thick client and thin client, however, have double meanings, as thick and thin also are used to describe the applications or software. In this article we take a look at the terms thick and thin as related to client application software.
5. Compare Client server application with n-Tier application
All web applications are N-Tier architectures. An N-Tier architecture is really a Client-Server architecture combined with the Layered architecture. The reason why I combine Client-Server and N-Tier here is because they are very much related.
A Client-Server system is one in which the server performs some kind of service that is used by many clients. The clients take the lead in the communication. The basic Client-Server architecture has 2 tiers (Client and Server).
6. Can a try block have more than one catch block?
Yes, It can have as many as you want. It allows you to catch very specific exceptions.
7. Can a try block have nested try blocks?
Yes perfectly legal, but not always it is useful.
8. How do you load an assembly at runtime?Here is the sample code, hope it will help
Loader.AssemblyLoader assLoader = null;
object[] parms = { AssemblyName }; // string AssebmlyName
assLoader = (Loader.AssemblyLoader)domain.CreateInstanceFromAndUnwrap(
“yourAssemply.dll”, “Loader.AssemblyLoader”, true, bindings, null, parms,
null, null, null);
9. If I am writing in a language like VB or C++, what are the procedures to be followed to support .NET?
If you want your VB6 or C++ code to be used with .NET code your code should be CLS compliant….
What is CLS-Compliant?
One of the greatest advantages of .net is that you can write code in a variety of different languages and it all translates to MSIL at the end and is run by the CLR. That’s a wonderful feature, however languages themselves differ in the kind of features that they support. For example C# supports operator overloading while some languages do not.
To resolve this Microsoft introduced the Common Language Specification. Basically, if your code is CLS Compliant it means that all your code is guaranteed to be callable by any .Net module. You can accomplish this by using the CLSCompliant assembly attribute:
1: [assembly: CLSCompliant(true)]
CLS is a subset of the Common Type System / Common Language Runtime. For more information on making your assemblies CLS Compliant check out this article on MSDN http://msdn2.Microsoft.com/en-us/library/bhc3fa7f(VS.71).aspx
10. How do you view the methods and members of a DLL?
Go to visual studio 2003/2005 command prompt and type “ildasm”. It will open a window. In that window load ur dll, it will show all the methods and members.
11. What is shadowing?
Shadowing is either through scope or through inheritance. Shadowing throughinheritance is hiding a method of a base class and providing a new implementation for the same. This is the default when a derived class writes an implementation of a method of base class which is not declared as overridden in the base class. This also serves the purpose of protecting an implementation of a new method against subsequent addition of a method with the same name in the base class.’shadows’ keyword is recommended although not necessary since it is the default.
12. What are the collections you’ve used?
.Net collections that you have used.
(Q) How many types we can write the css style sheets?
(A) There are three types we can write style sheets.
Inline style sheet
Internal style sheet
External style sheet
 (Q) What is  Css Hack Code  for ie8, ie7?
(A)  Css hack code for ie8 is \9
Ex:  .class{ padding-top:10px\9;} – It effects only in ie8 browser
Css hack code for ie7 is *+html
Ex:  *+html .class{ padding-top:10px;} – It effects only in ie8 browser
(Q) How can we write margin and padding format in css code?
(A) Margin : top right bottom left
Padding : top right bottom left
(Q) How many types of CSS rules and what are they?
(A) There are two types of CSS rules: ruleset and at-rule. Ruleset identifies selector or selectors and declares style which is to be attached to that selector or selectors. For example P {text-indent: 10pt} is a CSS rule. CSS rulesets consist of two parts: selector, e.g. P and declaration, e.g. {text-indent: 10pt}.
P {text-indent: 10pt} – CSS rule (ruleset)
{text-indent: 10pt} – CSS declaration
text-indent – CSS property
10pt – CSS value
At-rule is a rule that applies to the whole style sheet and not to a specific selector only (like in ruleset). They all begin with the @ symbol followed by a keyword made up of letters a-z, A-Z, digits 0-9, dashes and escaped characters, e.g. @import or @font-face.
(Q) What is shorthand property?
(A) Shorthand property is a property made up of individual properties that have a common “addressee”. For example properties: font-weight, font-style, font-variant, font-size, font property font, e.g.:
H1 .    {font-weight: bold;
font-style: italic;
font-variant: small-caps;
font-size: 160%;
font-family: serif}
Can be all shorthanded to a space separated list:
H1 {font: bold italic small-caps 160% serif}
Note: To make things even simpler the line-height property can be specified together with the font-size property:
H1 {font: bold italic small-caps 160%/170% serif}
(Q) Can I attach more than one declaration to a selector?
(A) Yes. If more than one declaration is attached to a selector they must appear in a semi colon separated list, e.g.;
Selector {declaration1; declaration2}
P {background: white; color: black}
(Q) What is cascade?
(A) Cascade is a method of defining the weight (importance) of individual styling rules thus allowing conflicting rules to be sorted out should such rules apply to the same selector.
Declarations with increased weight take precedence over declaration with normal weight:
P {color: white ! important}  /* increased weight */
P (color: black} /* normal weight */
(Q) What is the difference between css2 and css3?
(A) The biggest difference between CSS2 and CSS3 is that CSS3 has been split up into different sections, called modules. Each of these modules is making it’s way through the W3C in various stages of the recommendation process.
(Q) What is Embedded Style?
(A) Embedded Style Sheets are preset within the web page. This is very useful in making the collection of all the styles applied to the page and making them appear in a common place under the element or tag which is placed in the page header.
An embded style which can be written with in the head tag see below
<html>
<head>
<style type= “text/css”>
embded style goes here
body elements
</body</html>
 (Q) What are the issues encountered with IE z-index?
(A) z-index is used to show the order of the object
(Q) What is the default margin and padding of h1,h2,h3,h4,h5,h6?
(A) heading 1 (h1)
margin-left: 0px margin-right: 0px; margin-top: 8px; margin-bottom: 8px;
heading 2 (h2)
margin-left: 0px margin-right: 0px; margin-top: 10px; margin-bottom: 10px;
heading 3 (h3)
margin-left: 0px margin-right: 0px; margin-top: 12px; margin-bottom: 12px;
heading 4 (h4)
margin-left: 0px margin-right: 0px; margin-top: 16px; margin-bottom: 16px;
heading 5 (h5)
margin-left: 0px margin-right: 0px; margin-top: 20px; margin-bottom: 20px;
heading 6 (h6)
margin-left: 0px margin-right: 0px; margin-top: 28px; margin-bottom: 28px;
(Q) What are the rules to be followed for CSS-names?
(A) The name can contain characters a-z, A-Z, digits 0-9, period, hyphen, escaped characters, Unicode characters 161-255, as well as any Unicode character as a numeric code, however, they cannot start with a dash or a digit.
(Q) How do you display hyperlinks without underlines?
(A) A:link { text-decoration: none } —– for normal, unvisited links, no underline;
A:active { text-decoration: none } — active is for link appearance while you’re clicking
A:visited { text-decoration: none } — visited is for previously visited links
(Q) What is syntax for Grouping in CSS?
(A) For example One can use grouping syntax as below:
H1 { font: bold 10pt/16pt helvetica }
In the above the properties font-weight, font-size, font-family are combined by using grouping syntax.
(Q)  What is floating elements in CSS?
(A) The question is not entirely correct in its sense. There are HTML elements which you can float with the help of CSS e.g. a DIV element or text/image inside an HTML element. You can use float:[left | right]; property to float HTML elements inside its own container (i.e. its parent element).
(Q) What is the use of Contexual Selector?
(A) Contextual selects are merely strings of two or more selectors seperated by white space. These selectors can be assigned normal properties ,and due to the rules of cascading order, they will take precedence over simple selectors. For example , the contextual selectors in
p em {background: blue} is p em.
This rule says that emphasized text within a paragraph should have blue background.
(Q)  How do you rate CSS types as per priority and what are the reasons liked Embedded, External and Inline? Which one gets top priority and why?
(A) Choosing between External, Embedded and Inline CSS is critical. It is always advisable to think long term. Even when you are working on a smaller module, you never know its future. Moreover, one must remember that CSS is all about ‘look and feel’ (style) while HTML is content; so better keep they separate.
As far as possible, avoid Inline styles. If you are very sure that particular CSS classes are relevant only to the current web page, it might be a good idea to opt for Embedded under certain circumstances. And of course, there are no cons while considering External stylesheet.
One thing is very important while using External stylesheets is the nomenclature. There are no fixed set of rules to follow but if you consider a broader view, you can easily work out a fair plan for CSS class names.
To start with, one can study some popular websites.
(Q) What is the first-line pseudo-element in CSS?
(A) The “first-line” pseudo-element is used to add special styles to the first line of the text in a selector:
Syntax:
selector:pseudo-element {property: value}

 CSS classes can also be used with pseudo-elements:

selector.class:pseudo-element {property: value}
(Q) What is grouping in CSS?
Grouping is gathering (1) into a comma separated list two or more selectors that share the same style or (2) into a semicolon separated list two or more declarations that are attached to the same selector (2).
(Q) The selectors LI, P with class name .first and class .footnote share the same style, e.g.:
LI {font-style: italic}
P.first {font-style: italic}
.footnote {font-style: italic}
To reduce the size of style sheets and also save some typing time they can all be grouped in one list.
LI, P.first, .footnote {font-style: italic}
2. The declarations {font-style: italic} and {color: red} can be attached to one selector, e.g.:
H2 {font-style: italic}
H2 {color: red}
and can also be grouped into one list:
H2 {font-style: italic; color: red}
(Q) List out the tags those are mostly used  in HTML?
(A) <a href=”URL”>Link</a> – Used for linking another page.
<h1> – heading1 tag
<b> – Used for Bold
<img src=”imageurl”> – To insert a image
(Q) What is the difference between html and xhtml?
(A)   XHTML stands for Extensible Hyper Text Markup Language
XHTML is almost identical to HTML 4.01
XHTML is a stricter and cleaner version of HTML
XHTML is HTML defined as an XML application
XHTML is supported by all major browsers.
XHTML is case sensitive
Tags must be closed
(Q) In how many types we include CSS style sheet?
(A) There are three types to write CSS in html
Inline style sheet
Internal style sheet
External style sheet
(Q) Who is making the Web standards?
(A) The World Wide Web Consortium (w3c Consortium)
(Q) Write a background color in HTML?
(A) <body style=”background-color:yellow”>
(Q) What is the correct HTML for creating a hyperlink with title?
(A) <a href=http://neeedanyhelp.blogspot.in/ title=”thestudentdaily”>Thestudentdaily</a> Sample: http://neeedanyhelp.blogspot.in/ (Over your mouse on this link)
(Q) Write an HTML code to create an e-mail link?
(A) <a href=”mailto:xxx@yyy”>
(Q) How can we call the external style sheet in HTML for referring?
(A) <link rel=”stylesheet” type=”text/css” href=”mystyle.css”>
(Q) How do we comment a CSS file?
(A) /* include your comment here*/
(Q) How can we make each word in a text start with a capital letter?
(A) With this one in css   —– text-transform: capitalize
(Q) Why we use ‘clear ‘in HTML?
(A) We use the clearance in HTML code for separating the content from one <div> content after floating the position of other<div> content.
(Q) How many types of graphics?
(A) There are two types of graphics
Raster Graphics –pixels (photoshop)
Vector Graphics – Lines & Curves( Illustrator)
(Q) What is a Layer in photoshop?
(A) Layer is a component which holds the object. Without affecting the other content, we can modify the object in it.
(Q) What is Gradient? How to apply gradient?
(A) Gradient is a mixing of two or more colors.
(Q) What is DHTML?
(A) DHTML is a combination of HTML, XHTML, Javascript, Jquery and CSS.
DHTML is a TERM describing the art of making dynamic and interactive web pages.
(Q) What is XML?
(A) XML stands for extensible Markup Language.
XML is designed to transport and store data.
(Q)  What is CSS?
(A) CSS stands for Cascading Style Sheets
Styles define how to display HTML elements
Styles were added to HTML 4.0 to solve a problem
External Style Sheets can save a lot of work
External Style Sheets are stored in CSS files
(Q) What is HTML5?
(A) HTML5 will be the new standard for HTML, XHTML, and the HTML DOM.
HTML5 is still a work in progress. However, most modern browsers have some HTML5 support.
(Q) Are HTML tags case sensitive?
(A) No HTML tags are not case sensitive.
(Q) What is most used email form script?
(A) PHP
(Q) Which operator used to convert 00110011 into 11001100?
(A) ~ operator is used convert 00110011 into 11001100.