الجمعة، 30 أغسطس 2013

How To Set Up Facebook Like Button in a Blogger?

Facebook Like Button

In this tutorial you can get simple steps for How to set up a Facebook Like Button on your bloggers blog. By adding this on your blog you get more likes for your Facebook Fan Page from the visitors of your blog. It can help to get more likes and to share your post updates to your subscribers. You can pull your Facebook Page subscribers to your blog and can increase your blogs page views, as a result you can be more benefited from your blog.

If you want to place Facebook Like Box / Fan Box instead of like button you can visit: How To Set Up Facebook Like Box in a Blog?

By adding Facebook Like Button your blog readers can
  • See how many users already liked your Facebook Page.
  • Directly like your Page without going to the Page.
  • See some faces of the friends who already liked your blog if you activated that.



Steps to be followed To Set Up Facebook Like Box in a Blog


1. Get your Facebook Page URL at first.

facebook-page-url

  • Visit Facebook and go to your page
  • Copy the URL from the Address bar on the clipboard.

2. Configure the setting for your Like Box.

facebook-like-box-config

  • At first go to Facebook Developers Page.
  • Paste the copied URL on the Facebook Page URL Text box.
  • Change width,  layout style, font, color scheme as you like or as matches to your blog.
  • Check or Uncheck on the Send button check box to show or hide Send button.
  • Check or Uncheck on the Show faces check box to show or hide the faces.
  • At last click on Get code button. You can see the code like below from HTML 5 tab.
facebook-like-box-code


3. Add Code on the Blogger widget.


add gadget on blog


  • At first go to your blogger dashboard Layout option.
  • Click on Add Gadget option.
  • Choose HTML/JavaScript option.
  • Paste HTML code and click on save and view your blog.

الخميس، 29 أغسطس 2013

How To Set Up Facebook Like Box in a Blog?


In this tutorial you can get know about How to set up a Facebook Like Box or Fan Box on your blog. By adding this on your blog you share your Facebook Fan Page to get more likes and to share your post updates to your subscribers. You can pull your Facebook Page subscribers to your blog and can increase your blogs page views, as a result you can be more benefited from your blog.

If you want to set up Facebook like Button instead of like Box you can visit: How To Set Up Facebook Like Button in a Blogger?


By adding Facebook Like Box or Fan Box your blog readers can
  • See how many users already liked your Facebook Page.
  • Directly like your Page without going to the Page.
  • See some faces of the friends who already liked your blog if you activated that.
  • See recent post on your page if your activated that.


Steps to be followed To Set Up Facebook Like Box in a Blog


1. Get your Facebook Page URL at first.


Facebook page URL


  • Visit Facebook and go to your page
  • Copy the URL from the Address bar on the clipboard.

2. Configure the setting for your Like Box.


Facebook page configuration


  • At first go to Facebook Developers Page.
  • Paste the copied URL on the Facebook Page URL Text box.
  • Change width, height, and color schema as you like or as matches to your blog.
  • Check or Uncheck on the Show header check box to show or hide the header.
  • Check or Uncheck on the Show faces check box to show or hide the faces.
  • Check or Uncheck on the Show stream check box to show or hide the recent post on the page.
  • Check or Uncheck on the Show border check box to show or hide the border of the box.
  • At last click on Get code button. You can see the code like below from HTML 5 tab.
Facebook like box code


3. Add Code on the Blogger widget.


add gadget on blog


  • At first go to your blogger dashboard Layout option.
  • Click on Add Gadget option.
  • Choose HTML/JavaScript option.
  • Paste HTML code and click on save and view your blog.

الثلاثاء، 27 أغسطس 2013

MCQ of Management Information System With Answer set-2


1. Which of the following is a computer based system that stores and manipulates data that are viewed from a geographical point or reference?

A) Geographical Information System (GIS)

B) Database System (DS)

C) Geographic System (GS)

D) Software System (SS)



2. What are the three general components of IRM?
Information Management Framework
Information Management Framework (Photo credit: Wikipedia)


i) Data Processing

ii) Telecommunications


iii) Office automation

iv) Transaction Processing

A) Only i, ii, and iii

B) Only ii, iii and iv

C) Only i, iii and iv

D) All i, ii, iii, and iv



3. The different types of decisions while decision making in MIS are

i) Programmed decisions

ii) Programmable decisions

iii) Semi Programmed decisions

iv) Non Programmed decisions

A) Only i, ii, and iii

B) Only ii, iii and iv

C) Only i, iii and iv

D) All i, ii, iii, and iv



4. Which of the following statements are the disadvantages of Expert System?

i) They cannot handle inconsistent knowledge

ii) They cannot apply judgement and intuition recognized as important ingredients of problem solving.

A) Only i

B) Only ii

C) Both i and ii

D) None






5. Which of the following system ensures that proper stock of each item are maintained in an organization?

A) Human resource information system

B) An inventory control system

C) Manufacturing information system

D) Marketing information system




6. Which of the following is a program that models the pattern recognition capabilities of the human brain.

A) An expert system

B) Artificial Intelligence

C) Neutral network

D) Development engine



7. Which of the following are the main software components of DSS?

i) database management system (DBMS)

ii) model management system

iii) support tools

iv) internet

A) Only i, ii, and iii

B) Only ii, iii and iv

C) Only i, iii and iv

D) All i, ii, iii, and iv



8. Which of the following are the inputs of Marketing Information System?

i) Marketing research data

ii) Marketing intelligence data

iii) External environment data

iv) Strategic plan

A) Only i, ii, and iii

B) Only ii, iii and iv

C) Only i, iii and iv

D) All i, ii, iii, and iv



9. ........................... is the process of defining the current problem, determining why a new system is needed, identifying the objectives of the proposed system.

A) Feasibility analysis

B) System Analysis

C) System definition

D) System requirements




10. The accounting system is .................. whereas the demand forecasting system is .................

A) deterministic, probabilistic

B) probabilistic, deterministic

C) open, close

D) close, open



Answers:

1.   A) Geographical Information System (GIS)
2.   A) Only i, ii, and iii
3.   C) Only i, iii and iv
4.   C) Both i and  ii
5.   B) An inventory control system
6.   C) Neutral network
7.   A) Only i, ii, and iii
8.   D) All i, ii, iii, and iv
9.   C) System definition
10. A) deterministic, probabilistic


You Might also view the following Related Posts

الجمعة، 23 أغسطس 2013

How to Create Simple JavaScript Fade Effect Animation?


Now a days most of the websites or blogs are using image slideshow or animation on their pages using JavaScript codes. Such image animations make websites more attractive looking and smart. Here I have placed codes for creating a simple JavaScript fade effect animation. It may help you a lot.

Code for Creating Simple JavaScript Fade Effect Animation


Just copy and paste the code below where you want to place slideshow and change the location of the images.

<script type="text/javascript" 
src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js"></script>
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?
load=effects"></script>

<script type="text/javascript">

function ShowEffect(element){
new Effect.Appear(element,
{duration:1, from:0, to:1.0});
}
function FadeEffect(element){
new Effect.Fade(element,
{duration:1, from:1.0, to:0});
}

var i = 0;
var path = new Array();

// LIST OF IMAGES
path[0] = "/image_1.gif";
path[1] = "/image_2.gif";
path[2] = "/image_3.gif";

function swapImage_0()
{
document.slide.src = path[i];
if(i < path.length - 1) i++; else i = 0;

setTimeout("FadeEffect('hideshow')",4000);

setTimeout("ShowEffect('hideshow')",5000);

setTimeout("swapImage_0()",5000);


}
window.onload=swapImage_0;

</script>

<div id="hideshow">

<img height="200" name="slide" src="/image_1.gif" width="400" />

</div>



You Might also view the following Related Posts

    الخميس، 22 أغسطس 2013

    MCQ of JavaScript with Answer set-2


    1. You can redirect the webpage in JavaScript by using ..................... method.

    A) window. reload

    B) window.location

    C) page.location

    D) url.newlocation



    2. ....................... is a built - in JavaScript function which can be used to execute another function after a given time interval.

    A) Timeout( )

    B) TimeInterval( )

    C) setTimeout ( )

    D) All of the above



    3. You can refresh the webpage in JavaScript by using ................ method.

    A) window.reload

    B) location. reload

    C) window. refresh

    D) page.refresh



    4. The different types of dialog boxes supported by JavaScript are
    Titel WikiBook JavaScript
    Titel WikiBook JavaScript (Photo credit: Wikipedia)

    i) Alert dialog box

    ii) Information dialog box

    iii) Conformation dialog box

    iv) Prompt dialog box

    A) i, ii and iii only

    B) i, iii and iv only

    C) i, ii and iv only

    D) All i, ii, iii, and iv



    5. A ..................... mostly used to take users choice on any option and displays a dialog box with two buttons Ok and Cancel.

    A) Alert dialog box

    B) Information dialog box

    C) Prompt dialog box

    D) Conformation dialog box



    6. Match the following with their description.

    a) Encapsulation     i) The capability to write on function or method that works variety of different ways.

    b) Aggregation       ii) The capability of a class to relay upon another class.

    c) Inheritance         iii) The capability to store one object inside of another object.

    d) Polymorphism    iv) The capability to store related information.

    A) i-d, ii-c, iii-b, iv-a

    B) i-b, ii-c, iii-a, iv-d

    C) i-c, ii-d, iii-a, iv-b

    D) i-a, ii-c, iii-d, iv-b



    7. ...................... are usually variables that are used internally in the objects methods, but can also be globally visible variables that are used through the page.

    A) Object properties

    B) Variable properties

    C) Method properties

    D) Internal properties



    8. State True or False.

    i) We can refresh a web page using JavaScript location.reload method.

    ii) The function page.print( ) will print the current web page.

    iii) With no arguments, the Date( ) constructor creates a Date object set to the current date and time.

    A) i- True, ii- False, iii-True

    B) i- False, ii- True, iii-True

    C) i-True, ii-True, iii-False

    D) i- False, ii- False, iii-True



    9. The JavaScript ........................ class represents regular expressions, and both string and .................... define methods that use regular expressions.

    A) RegExpObj

    B) RegExpClass

    C) RegExp

    D) StringExp



    10. The different variant of Date( ) constructor to create date object is/are.

    i) new Date(date)

    ii) new Date(milliseconds)

    iii) new Date(date string)

    iv) new Date (year, month, date [, hour, minute, second, millisecond])

    A) i, ii and iii only

    B) ii, iii and iv only

    C) i, ii and iv only

    D) All i, ii, iii, and iv



    Answers:

    1.   B) window.location
    2.   C) setTimeout ( )
    3.   B) location. reload
    4.   B) i, iii and iv only
    5.   D) Conformation dialog box
    6.   A) i-d, ii-c, iii-b, iv-a
    7.   B) Variable properties
    8.   A) i- True, ii- False, iii-True
    9.   C) RegExp
    10. B) ii, iii and iv only


    You Might also view the following Related Posts

    الأربعاء، 21 أغسطس 2013

    Solved MCQ of Management Information System set-1


    1. Which of the following is NOT an objective of MIS?

    A) Facilitate the decisions-making process

    B) Provide requisite information at each level of management

    C) Support decision-making

    D) recruit people for system



    2. In MIS system design, the sources of information may be categorized as ............... and ...............

    A) internal, external

    B) personal, organizational

    C) useful, unuseful

    D) constructive, destructive



    3. What among the following are the primary characteristics that information must process?
    English: Business Process Reengineering Cycle
    English: Business Process Reengineering Cycle (Photo credit: Wikipedia)


    i) Relevance             ii) Availability


    iii) Timeliness          iv) Accuracy


    A) Only i, ii, and iii

    B) Only ii, iii and iv

    C) Only i, iii and iv

    D) All i, ii, iii, and iv



    4. Which of the following models are developed on the principles of business management, accounting and econometrics?

    A) Behavioral model

    B) Management science models

    C) Operations research models

    D) Policy making models



    5. An ...................... is a set of processes and procedures that transform data into information and knowledge.

    A) information system

    B) Knowledge system

    C) Database system

    D) Computer system



    6. A system is called ..................... when the inputs, process and the outputs are known with certainty.

    A) Probablistics

    B) Deterministic

    C) Open

    D) Close



    7. Which of the following steps is/are the implementation plans involved in MIS?

    i) Preparing organizational plans

    ii) Planning of work flow

    iii) Training of personnel

    iv) Development of software

    v) Acquiring computer hardware

    A) i, ii and iii only

    B) i, ii, iii and iv only

    C) i, ii, iv and v only

    D) All i, ii, iii, iv and v



    8. Which of the following is included in the Office automation systems?

    i) Word processing

    ii) Electronic mail

    iii) Voice mail

    iv) Electronic calendaring

    v) Audio conferencing

    A) i, ii, iii and v only

    B) i, ii, iii and iv only

    C) i, ii, iv and v only

    D) All i, ii, iii, iv and v



    9. In a typical ................ network, application processing is shared between clients and one more servers.

    A) client server computing

    B) cloud computing

    C) mobile computing

    D) data computing



    10. The .................... is defined as a set of activities performed across the organization creating as output of value to the customer.

    A) development process

    B) business process

    C) quality process

    D) customer focus


    Answers:

    1.   D) recruit people for system
    2.   A) internal, external
    3.   A) Only i, ii, and iii
    4.   B) Management science models
    5.   A) information system
    6.   B) Deterministic
    7.   D) All i, ii, iii, iv and v
    8.   D) All i, ii, iii, iv and v
    9.   A) client server computing
    10. B) business process


    You Might also view the following Related Posts

    السبت، 17 أغسطس 2013

    Solved MCQ of JavaScript set-1


    1. State whether the following statements are True or False.

    i) JavaScript ignores spaces, tabs and newlines that appear in JavaScript program.

    ii) Semicolons are necessary while writing JavaScript statements.

    iii) JavaScript is a case-sensitive language.

    A) i- True, ii- False, iii-True

    B) i- False, ii- True, iii-True

    C) i-True, ii-True, iii-False

    D) i- False, ii- False, iii-True



    2. Which of the following are the advantages of JavaScript?

    i) Less server interaction

    Titel WikiBook JavaScript
    Titel WikiBook JavaScript (Photo credit: Wikipedia)
    ii) Immediate feedback to visitors

    iii) Reading or writing of files

    iv) Increased interactivity

    A) i, ii and iii only

    B) i, iii and iv only

    C) i, ii and iv only

    D) All i, ii, iii, and iv



    3. Which of the following is NOT an operator used in JavaScript?

    A) Arithmetic Operator

    B) Comparison Operator

    C) Conditional Operator

    D) Static Operator



    4. JavaScript For Loops contains the following important parts.

    i) The loop initialization to start value.

    ii) The test statement to test if the given condition is True or not.

    iii) The iteration statement to increase or decrease counter.

    iv) The end statement to finish the loop.

    A) i, ii and iii only

    B) i, iii and iv only

    C) i, ii and iv only

    D) All i, ii, iii, and iv



    5. In JavaScript, a ............................ is simply an identifier followed by a colon that is applied to a statement or block of code.

    A) bookmark

    B) label

    C) break

    D) continue



    6. A JavaScript function which can be defined dynamically along with the new operator using ..........

    A) Nested Function

    B) Function Literals

    C) Function ( ) Constructor

    D) None of the above



    7. A function literal is an expression that defines unnamed function. The syntax for function literal is ......

    A) var variable name=function (Argument list){Function Body};

    B) variable name=function (Argument list){Function Body};

    C) var variable name =new function(Arg1, Arg2, ......,"function body");

    D) variable name =new function(Arg1, Arg2, ......,"function body");



    8. Match the following JavaScript function with their description.

    i) onblur             a) script runs when element changes

    ii) onmouseup     b) script runs when the form is reset

    iii) onchange       c) script runs when the element lost focus.

    iv) onreset          d) script runs when mouse button is released.

    A) i-d, ii-c, iii-a, iv-b

    B) i-b, ii-c, iii-a, iv-d

    C) i-c, ii-d, iii-a, iv-b

    D) i-a, ii-c, iii-d, iv-b



    9. Cookies are a plain text data record having the following variable length fields.

    i) Expires                  ii) Starts            iii) Domain             iv) Secure

    A) i, ii and iii only

    B) i, iii and iv only

    C) i, ii and iv only

    D) All i, ii, iii, and iv



    10. While reading Cookies, the ................ string will keep a list of name = value pairs separated by semicolons, where name is the name of a cookie and value is its string value.

    A) document.cookie

    B) read.cookie

    C) cookie.string

    D) name.cookie

    Answers:

    1.   A) i- True, ii- False, iii-True
    2.   C) i, ii and iv only
    3.   D) Static Operator
    4.   A) i, ii and iii  only
    5.   B) label
    6.   C) Function ( ) Constructor
    7.   A) var variable name=function (Argument list){Function Body};
    8.   C) i-c, ii-d, iii-a, iv-b
    9.   C) i, ii and iv only
    10. A) document.cookie


    You Might also view the following Related Posts

    Enhanced by Zemanta

    الجمعة، 16 أغسطس 2013

    MCQ of Computer Organization and Architecture with Answer set-3


    1. An exception condition in a computer system caused by an event external to the CPU is called ........

    A) Interrupt

    B) Halt

    C) Wait

    D) Process



    2. When the CPU detects an interrupt, it then saves its .............

    A) Previous State

    B) Next State

    C) Current State

    D) Both A and B
    English: A photo of three 32-bit PCI slots.
    English: A photo of three 32-bit PCI slots. (Photo credit: Wikipedia)



    3. A microprogram is sequencer perform the operation...

    A) read

    B) write

    C) read and write

    D) read and execute



    4. A computer program that converts an entire program into machine language at one time is called

    A) interpreter

    B) simulator

    C) compiler

    D) commander



    5. The unit which decodes and translates each instruction and generates the necessary enable signals for ALU and other units is called ..

    A) arithmetic unit

    B) logical unit

    C) control unit

    D) CPU



    6. State whether the following statement is True or False for cache memory.

    i) Cache memories are high-speed buffers which are inserted between the processors and main memory.

    ii) They can also be inserted between main memory and mass storage.

    iii) It can be used as secondary memory.

    A) i- True, ii- False, iii-True

    B) i- False, ii- True, iii-True

    C) i-True, ii-True, iii-False

    D) i- False, ii- False, iii-True



    7. The channel which handles the multiple requests and multiplexes the data transfers from these devices a byte at a time is known as .....

    A) multiplexor channel

    B) the selector channel

    C) block multiplex channel

    D) both A and C



    8. The address mapping is done, when the program is initially loaded is called ......

    A) dynamic relocation

    B) relocation

    C) static relocation

    D) dynamic as well as static relocation



    9. State whether the following statement is True or False for PCI bus.

    i) The PCI bus tuns at 33 MHZ and can transfer 32-bits of data(four bytes) every clock tick.

    ii) The PCI interface chip may support the video adapter, the EIDE disk controller chip and may be two external adapter cards.

    iii) PCI bus deliver the different throughout only on a 32-bit interface that other parts of the machine deliver through a 64-bit path.

    A) i- True, ii- False, iii-True

    B) i- False, ii- True, iii-True

    C) i-True, ii-True, iii-False

    D) i- False, ii- False, iii-True



    10. The I/O processor has a direct access to ....................... and contains a number of independent data channels.

    A) main memory

    B) secondary memory

    C) cache

    D) flash memory

    Answers:

    1.   A) Interrupt
    2.   C) Current State
    3.   D) read and execute
    4.   C) compiler
    5.   C) control unit
    6.   C) i-True, ii-True, iii-False
    7.   A) multiplexor channel
    8.   C) static relocation
    9.   C) i-True, ii-True, iii-False
    10. A) main memory


    You Might also view the following Related Posts

    الخميس، 15 أغسطس 2013

    Solved MCQ of JDBC and JSP set-1

    English: JDBC type 3 driver (Network Protocol ...
    English: JDBC type 3 driver (Network Protocol driver) (Photo credit: Wikipedia)

    1. What is JDBC?

    A) java compiler

    B) Java API

    C) Java interpreter

    D) Both A and B



    2. JDBC is a ..................... interface, which means that it is used to invoke SQL commands directly

    A) low-level

    B) middle-level

    C) higher-level

    D) user



    3. ODBC is not appropriate for direct use from java because it uses a ..............

    A) C interface

    B) C# interface

    C) java interface

    D) Both A and C



    4. Java Soft provides ................. JDBC product components as part of the java Developer's Kit (JDK)

    A) three

    B) two

    C) four

    D) single



    5. Kind of driver converts JDBC calls on the client API for Oracle, Sybase, Informix, DB2, or other DBMS is known as

    A) JDBC-Net pure Java driver

    B) JDBC-ODBC Bridge plus ODBC driver

    C) Native-API partly-Java driver

    D) Both A and B



    6. JSP stands for ..........................

    A) Java server Pages

    B) Java server Programming

    C) Java Server Process

    D) Java Socket Programming



    7. JSP includes a mechanism for defining ............................... or custom tags.

    A) static attributes

    B) local attributes

    C) dynamic attributes

    D) global attributes



    8. JSP is not governed by the syntax and semantics defined by the ................... specifications.

    A) Java 2

    B) Java 2.4

    C) Java 1

    D) Java 1.2
     


    9. JSP containers are required to support ..................... different formats of JSP syntax.

    A) Two

    B) Three

    C) Four

    D) Only One



    10. The difference between Servlets and JSP is the ................

    A) translation

    B) compilation

    C) syntax

    D) Both A and B


    Answers:

    1.   B) Java API
    2.   A) low-level
    3.   A) C interface
    4.   A) three
    5.   C) Native-API partly-Java driver
    6.   A) Java server Pages
    7.   C) dynamic attributes
    8.   A) Java 2
    9.   A) Two
    10. C) syntax

    You Might also view the following Related Posts

    Enhanced by Zemanta

    الأربعاء، 14 أغسطس 2013

    MCQ of C# with Answer set-3


    MCQs in C#
    MCQs in C#
    1. The general syntax for declaring an enumeration in C# is .

    A) <enum_name> enum {enum list};

    B) enum <enum_name> {enum list};

    C) <enum_type> enum <enum_name> {enum list};

    D) None of the above


    2. State True or False for the difference between classes and structures.

    i) Structures do not support inheritance

    ii) Structure can have default constructor

    iii) Classes are reference types and structures are value types.

    A) i- True, ii- False, iii-True

    B) i- False, ii- True, iii-True

    C) i-True, ii-True, iii-False

    D) i- False, ii- False, iii-True


    3. The various techniques provided by C# to implement static polymorphism is/are

    i) Function overloading

    ii) Static overloading

    iii) Operator overloading

    A) i and ii only

    B) i and iii only

    C)  ii and iii only

    D) All i, ii, iii


    4. Operator overloading is creating functions with special names, the keyword ........................ operator followed by the symbol for the operator being defined.

    A) Overload

    B) Update

    C) Operator

    D) Implement


    5. Match the following operators in C# with their description for the operator overload property.

    i) +, -, !, ~, ++, --            a) cannot be overloaded

    ii) ==, !=, <, >, <=, >=    b) cannot be overloaded directly

    iii) &&, ||                         c) take one operand and can be overloaded

    iv) =, ., ? :, ->                  d) can be overload

    A) i-d, ii-c, iii-a, iv-b

    B) i-b, ii-c, iii-a, iv-d

    C) i-c, ii-d, iii-b, iv-a

    D) i-a, ii-c, iii-d, iv-b


    6. Match the following preprocessor directives in C# with their description?

    i) #elif                      a) specifies the end of conditional directive

    ii) #endif                   b) allows to undefine a symbol.

    iii) #undef                  c) allows creating compound conditional directive

    A) i-b, ii-c, iii-a

    B) i-b, ii-c, iii-a

    C) i-c, ii-a, iii-b

    D) i-a, ii-c, iii-b


    7. The operator symbols can be used for the conditional directives in C# is/are.

    i) = = (equality)         ii) ! = (inequality)            iii) && (and)

    iv) || (or)                   v) >= (grater than or equal to)

    A) i, ii  iii and iv only

    B) i, iii and iv only

    C) i, ii, iii and v only

    D) All i, ii, iii, iv and v


    8. Conditional directives are beginning with a ...................... directive and must be terminated with ....................... directive and must be terminated with .............. directive.

    A) #if, #endif

    B) #start, #end

    C) #elif, #endelif

    D) Both A and B


    9. The keywords provided by C# for exception handling are.

    i) try             ii) catch             iii) finally             iv) tryif             v) throw

    A) i, ii and iii and iv only

    B) ii, iii and iv and v only

    C) i, ii and iii and v only

    D) All i, ii, iii and iv


    10. The ................... block is used to execute a given set of statement, whether the exception is thrown or not.

    A) try

    B) tryif

    C) finally

    D) throw


    Answers:

    1.   B) enum <enum_name> {enum list};
    2.   A) i- True, ii- False, iii-True
    3.   B) i and iii only
    4.   C) Operator
    5.   C) i-c, ii-d, iii-b, iv-a
    6.   C) i-c, ii-a, iii-b
    7.   A) i, ii and iii and iv only
    8.   A) #if, #endif
    9.   C) i, ii and iii and v only
    10. C) finally


    You Might also view the following Related Posts

    الثلاثاء، 13 أغسطس 2013

    Objective Questions of C# with Answer set-2

    C# MCQs
    Objective Questions in C#

    1. In C# variables are categorized into ..........

    i) Value types          ii) Reference types              iii) initial types             iv) pointer types

    A) i, ii and iii only

    B) ii, iii and iv only

    C) i, ii and iv only

    D) All i, ii, iii and iv


    2. Value type variables can be assigned a value directly which are derived from the class

    A) System.value

    B) System.ValueType

    C) General.ValueType

    D) Variable.ValueType


    3. The various data types used in C# are

    i) Integral Type           ii) Floating point types

    iii) Boolean types       iv) Nullable types

    A) i, ii and iii only

    B) ii, iii and iv only

    C) i, iii and iv only

    D) All i, ii, iii and iv


    4. The built-in operators that are provided by C# programming language are...

    i) Arithmetic operators          ii) Logical operators

    iii) Bitwise operators             iv) Assignment operators

    A) i, ii and iii only

    B) ii, iii and iv only

    C) i, iii and iv only

    D) All i, ii, iii and iv


    5. Match the different Bitwise operators supported by C# with their descriptions.

    i) &                   a) Binary Left Shift Operator

    ii) ^                   b) Binary Right Shift Operator

    iii) <<               c) Binary XOR operator

    iv) >>               d) Binary AND operator

    A) i-d, ii-c, iii-a, iv-b

    B) i-b, ii-c, iii-a, iv-d

    C) i-c, ii-a, iii-b, iv-d

    D) i-a, ii-c, iii-d, iv-b



    6. What will be the value of the following expression if x=10?

    A) 25

    B) -5

    C) 10

    D) 15


    7. While passing parameter to a method ................ copies the actual value of an argument into the formal parameter of the function.

    A) Output Parameter

    B) Value Parameter

    C) Reference Parameter

    D) Initial Parameter


    8. In C# methods can be defined by using which of the following syntex?

    A) <Method Name> (parameter list) { Method body }

    B) <Method Name> <Return Type> <Access Specifier> (parameter list) { Method body }

    C) <Return Type> <Method Name> <Access Specifier> (parameter list) { Method body }

    D) None of the above


    9. Which of the following are the methods to assign values to an array?

    i) double [ ] score = {234.0, 214.5, 572.0};

    ii) int [ ] marks = new int [3] {33, 45, 67};

    iii) int [ ] marks = new int [ ] {33, 45, 67};

    A) i and ii only

    B) ii and iii only

    C) i and iii only

    D) All i, ii, iii


    10. State whether the following statements are True or False.

    i) Unlike classes, structures cannot inherit other structures or classes.

    ii) A structure can implement one or more interfaces.

    iii) Structure members can be specified as abstract, virtual or protected.

    A) i- True, ii- False, iii-True

    B) i- False, ii- True, iii-True

    C) i-True, ii-True, iii-False

    D) i- False, ii- False, iii-True


    Answers:

    1.   C) i, ii and iv only
    2.   B) System.ValueType
    3.   D) All i, ii, iii and iv
    4.   D) All i, ii, iii and iv
    5.   A) i-d, ii-c, iii-a, iv-b
    6.   A) 25
    7.   B) Value Parameter
    8.   A)<Access Specifier><Return Type> <Method Name> (parameter list) {Method body}
    9.   D) All i, ii, iii
    10. C) i-True, ii-True, iii-False


    You Might also view the following Related Posts

    الاثنين، 12 أغسطس 2013

    Solved Objective Questions of C# set-1


    1. Which of the following is not the component of .Net framework?

    A) Common Language Run time(CLR)

    B) .Net Framework Library.

    C) Component Network

    D) Windows Workflow Foundation (WF)


    2. Following is/are the Integrated Development Environment (IDE) for C#.

    A) Visual Studio 2010 (VS)

    B) Visual Web Developer

    C) Both A and B
    Visual overview of the Common CLR Language Inf...
    Visual overview of the Common CLR Language Infrastructure, and how the components relate to each other. Converted to SVG from PNG version, originally by Foofy from English Wikipedia. (Photo credit: Wikipedia)

    D) Only A


    3. A C# program may consist of the following parts.

    i) Namespace declaration

    ii) Class methods

    iii) A main method

    iv) Statement & Expressions

    A) i, ii and iii only

    B) ii, iii and iv only

    C) i, iii and iv only

    D) All i, ii, iii and iv


    4. State True or False for naming class in C#.

    i) The class name can be a C# keyword.

    ii) A name must begin with a letter, can be followed by letters, digits and underscore.

    A) i- True, ii- False

    B) i- False, ii- True

    C) i-True, ii-True

    D) i- False, ii- False


    5. ...................... is a name which can be used to identify a class, variable, function etc.

    A) Keyword

    B) Reference

    C) Identifier

    D) Object


    6. .................... conversions are performed by C# compiler itself and ..................... conversions are performed by users by using predefined functions.

    A) Implicit type, Explicit type

    B) Explicit type, Implicit type

    C) External type, Internal type

    D) Internal type, External type


    7. A variable can be declared by using which of the following syntax?

    A) <variable_list> <data_type>;

    B) <variable_list>, <data_type>

    C) <data_type> <variable_list>

    D) <data_type> <variable_list>;


    8. Match the following.

    i) *                  a) returns the address of an variable

    ii) ? :                b) point to variable

    iii) &                c) conditional expression

    A) i-a, ii-b, iii-c

    B) i-b, ii-c, iii-a

    C) i-c, ii-a, iii-b

    D) i-a, ii-c, iii-b


    9. C# supports the following types of access specifiers.

    i) public ii) friend iii) private iv) protected v) internal

    A) i, ii, iii and iv only

    B) i, iii, iv and v only

    C) i, ii, iv and v only

    D) All i, ii, iii, iv and v


    10. ........................ access specifier allows a class to expose it's member variables and member functions to other functions and objects in the current application.

    A) Internal

    B) Protected

    C) Private

    D) Public


    Answers:

    1.  C) Component Network
    2.  C) Both A and B
    3.  D) All i, ii, iii  and iv
    4.  B) i- False, ii- True
    5.  C) Identifier
    6.  A) Implicit type, Explicit type
    7.  D) <data_type> <variable_list>;
    8.  B) i-b, ii-c, iii-a
    9.   B) i, iii, iv and v only
    10. A) Internal


    You Might also view the following Related Posts