0% found this document useful (0 votes)
177 views7 pages

Theory Questions: 5. Above All

1. An assembly can consist of four main elements: the MISL, assembly manifest, type metadata, and resources. 2. System.Threading provides classes and interfaces that enable multithreaded programming and reference objects created on the .NET managed heap. 3. The main differences between a namespace and an assembly are that a namespace logically groups classes while an assembly is a physical grouping, and a namespace cannot span multiple assemblies.

Uploaded by

Anandh Babu
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
177 views7 pages

Theory Questions: 5. Above All

1. An assembly can consist of four main elements: the MISL, assembly manifest, type metadata, and resources. 2. System.Threading provides classes and interfaces that enable multithreaded programming and reference objects created on the .NET managed heap. 3. The main differences between a namespace and an assembly are that a namespace logically groups classes while an assembly is a physical grouping, and a namespace cannot span multiple assemblies.

Uploaded by

Anandh Babu
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 7

Theory Questions

1. 1. An assembly can consist of the following four elements:

1. MISL
2. The assembly manifest
3. Type metadata
4. Resources
5. Above all

2. System.Threading provides :

1. class & interfaces that are enable multithreading progs.


2. only MSIL code of those methods that are called at the runtime.
3. extended the PE format with features which support the Common Language Runtime.
4. refernce to objects and created on .net managed heap.

3. Differences between namespace and assembly are:


1. Assembly is a physical grouping of logical units whereas namespace logically groups classes
2. Namespace can not span multiple assemblies.
3. Assembly is a logical grouping of physical units whereas namespace physically groups classes

4. Which is used to add event code(on C# Code) for TextBox control in Source view
1. MsgSent.Text = Msg.Text;
2. MsgSent.Text = Msg.Text
3. Both
4. None

5. How you can change the page title by changing the using C#

1. void buttonSet_Click(Object sender, EventArgs earg)


{
Header.Title :Msg.Text;
}

2. void buttonSet_Click(Object sender, EventArgs earg) {


Msg.Text= Header.Title;
}

3. void buttonSet_Click(Object sender, EventArgs earg)


{
Msg.Text: Header.Title;
}

4. None
6. ASP stands for?
1. Active Server Pages
2. Advance Server Pages
3. Active Service Pages
4. None

7. Which of the following are correct controls in ASP.NET Source View?()

1. <asp:textbox runat="server" id="Msg" text="Hello, R4R" />

2. <asp:button runat="server" id="Send" text="Send" onclick="Send_Click" />

3. None

4. Both

8. Which is used for code-in-line model?


1. < script runat="server">
2. < script javascript="server">
3. Both
4. None

9. Which is not used into @Page attributes


1. Async ,CodeFile
2. EnableTheming, MasterPageFile
3. MaintainScrollPositionOnPostback Theme
4. None
5. All

10. Which is true to bind a method by setting the Master attribute in the <pages>?

1. < configuration>
< system.web>
< pages masterpagefile="r4r.co.in.MasterPage" />
</system.web>
</configuration>
2. < pages>
< system.web>
< pages masterpagefile="r4r.co.in.MasterPage" />
</system.web>
</ pages>
3. Both
4. None

11. @Page directive

1. <%@ MasterType VirtualPath="~/MasterPage.master" %>

2. The above syntax is used to make the Master property typed to the class that is stored in the
referenced master on ASP page.
3. Yes
4. No

12. ASP.NET Supports “Nested Master Page”


1. Yes
2. No

13. Which is true ?


1. Page Class is a derivative of the Control class.
2. Page Class inherits all properties, methods, and events exposed by the Control class.
3. Both
4. None

14. Which of the following properties are not expose by Page Class?

1.Cache, IsPostBack
2 ErrorPage3,IsValid, Trace, and Validators
3.Both
4.None

15. Choose all true options only


1. HtmlImage is HTMLControl for image and it used for html tag <img>
2.HtmlInputHidden Used for hidden just like form fields <input type="hidden">
3. HtmlInputImage is HTMLControl for Image and it used for html input tag <input type="image">

16. Correct syntax of ASP.NET directive:

1.<%@ directive [attribute=value] %>.

2.<% directive [attribute=value] %>.

3.<@ directive [attribute=value] %>.

4.<@ directive [attribute=value] >.

17. The namespaces that are automatically imported into all ASP.NET pages

1.System,System.Collections, System.IO
2.System.Web,System. Web.UI
3.System.Web.UI.HtmlControls,System. Web.UI.WebControls

A.1
B. 1,2,3
C. 2,3
D. None
18. The ASP.NET pages directives are

1. @ Page,@ Control,@ Import,@ Register


2. @ Assembly, @ OutputCache
3. System.Web.UI.HtmlControls,System. Web.UI.WebControls

A . 1,2
B. 1,2,3
C, 2,3
D. None

19. Syntax for Assembly directive specifies


1. < Assembly runat="server" [language="language"]>

//code……………….</ Assembly >

2. <%@ Assembly Name="r4r" %>

3. 1 and 2

4. None

20. Syntax for Import directive specifies

1. <%@ Import Namespace="System.Data.OlDb" %>


2. <%@ Import Namespace="System.Data" %>
3. 1 and 2
4. None

21. Syntax for Code Declaration Blocks

1. < script runat="server" [language="language"]>

//code……………….
</script>

2. <asp runat="server" [language="language"]>

//code……………….
</asp>

3. 1 and 2

4. None

22. Syntax for Register directive specifies


1. < Register runat="server" [language="language"]>
//code……………….
</ Register >

2. <%@ Register Tagprefix="r4r" TagName="CustomControl Src="CustomControl.ascx"


%>
3. 1 and 2

4. None

SQL:

1. SQL stands Structured Query Language?


1. true
2. false

2. Choose correct answers:


1 SQL can execute system applications like java ,c# .
2 SQL can delete or update or retrieve or create records from a database
3.SQL never permanently change database recodes .
4 All
5 None

3.Choose correct options


1. MS Access, SQL Server, MySQL are database
2. MS Access, SQL Server, MySQL are vendor company.
3 MS Access, SQL Server, MySQL are programming language
4. All
5. None.

4.Choose correct statements for fallowing sql statement


SELECT * FROM r4r_emp;

1.used to select all records from table


2.used to select all columns name from table
3.used to select all rows from tables
4.None.

5.SELECT * FROM r4r_emp;


Above is part of DML in SQL?

1.true
2.false
3.no such query into sql.
4.None.
6. DDL statements in SQL are:
1.SELECT,UPDATE, DELETE,ALTER , CREATE, ALTER , DROP
2.SELECT, DELETE,ALTER , CREATE, ALTER , DROP
3.SELECT,ALTER , CREATE, ALTER , DROP
4 None.

7.SELECT DISTINCT column_name(s) FROM table_name is used for:

1.Select all records including NULL values


2.Select All records with different values only.
3.Select no any records.
4. None

8. SELECT * column_name(s) FROM table_name is used for:


1.Select all records including with duplicate values
2.Select All records with different values only.
3.Select no any records.
4.None

9. SELECT * FROM r4r_team WHERE office=’Lucknow’ is used for:


1.Select all records including with duplicate values from r4r_team table.
2.Select All records with different values only from r4r_team table.
3.Select no any records.
4.select all records whose has office is ‘Lucknow’ from r4r_team table
5.None

10.SELECT * FROM r4r_team WHERE office=Lucknow is used for:


1.Select all records including with duplicate values from r4r_team table.
2.Select All records with different values only from r4r_team table.
3.Select no any records.
4.select all records whose has office is ‘Lucknow’ from r4r_team table
5.Error

12. Which is not used into SQL =,<>,> ,<,>=,<=,>>>


1.all are used
2.only >>> not used
3.only <>
4.None

13. <> and != both are same operator into SQL


1. true.
2 false.
3. both are not used into SQL.
4. Both are used assembly languages only.

14. Choose true option

1. BETWEEN -->>Used for range with in values


2. LIKE -->>Used for Search a pattern
3. IN -->>return east one of the columns in given set of values
4.1,2,3
5. None

15. Which is true for AND & OR


1.These are Operators .Which are used to filter records based on more than one
conditions.
2.These Operators are used to join two tables.
3.Never used in SQL
4.None

16. What is true for following DML SQL statement


SELECT username, exp, salary FROM r4r_team ORDER BY username DESC;

1.Used to select username,exp, salary from r4r_team which is decreasing order by


username.
2.Used to select username,exp, salary from r4r_team which is increasing order by
username.
3.Used to select username,exp, salary from r4r_team which is decreasing order by exp.
4. None

17. Choose correct syntax to insert values into r4r_team table

1. INSERT INTO r4r_team (id, username, exp) VALUES (1, ‘r4r01’, ‘2’);

2. INSERT INTO r4r_team VALUES (1, ‘r4r01’, ‘2’);

3. INSERT INTO r4r_team (id, username, exp) VALUE (1, ‘r4r01’, ‘2’);

4. INSERT INTO table r4r_team (id, username, exp) VALUE (1, ‘r4r01’, ‘2’);

You might also like