Objective Questions of C with answer set-2

1. Hierarchy decides which operator
A) is most important
B) is used first
C) is fastest
D) Operates on largest numbers

2. A pointer can hold
A) Single address at a time
B) Two addresses at a time
C) Number of addresses at a time
D) No address
3. An integer constant in C must have
A) At least one digit
B) At least one decimal point
C) A comma along with digits
D) Digits separated by commas

4. main() {
                Int a=3, b=2, c*d*e;
                d=&a; e=&b;
                c=*d+*e;
                }
                Which one of the given answers is correct?
A) a=4, c-6
B) a=3, c=5
C) a=3, c=6
D) a=3, c=8

5. In C a variable cannot contain
A) Blank Spaces
B) Decimal Point
C) Hyphen
D) All of the above

6. Assume that variable x resides at memory location 1234, y at 1111 and p at 2222.
                Int x=1, y=2, *p;
                p=&x;
                y=*p;
What will be the value of y after execution of above code?
A) 2
B) 1
C) 1234
D) 1111

7. Which of the following is FALSE in C?
A) Keywords can be used as variable names
B) Variable names can contain a digit
C) Variable names do not contain a blank space
D) Capital letters can be used in variables

8. If an integer occupies 4 bytes and a character occupies 1 byte of memory, each element of the following structure would occupy how many bytes ?
                struct name {
                int age;
                char name[30];
                };
A) 30
B) 32
C) 34
D) 36

9. The expression x=4+2 % -8 evaluates to
A) -6
B) 6
C) 4
D) None of the above

10. A structure brings together a group of
A) items of the same data type
B) related data items and variables
C) integers with user defined names
D) floating points with user defined names

Answers:
1. B) is used first
2. A) Single address at a time
3. A) At least one digit
4. B) a=3, c=5
5. A) Blank Spaces
6. B) 1
7. A) Keywords …… variable names
8. C) 34
9. B) 6
10. B) related data items and variables

You Might also view the following Related Posts

Best 10 ways of making money online

Best 10 ways of making money online

Making money online is not easy task if you don't know about the best and easy ways for that. Since, Internet is itself a virtual world, so it may have several fraud offers. Selecting a best method of earning money online may be difficult task for anyone. You should be much careful while selecting the method for earning money online. You should select such a method which would be good and reliable source of income for your life time.
I have presented here some best ways of making money online. I hope that this post would become best guideline for you. 


1. Doing Freelance Writing: Freelance Writing is one of the most popular options for Internet money making. You don't need to invest any money for doing such jobs and you don't need to own a website. It is best for all the fields' writers to make quick money. Most all of such Freelance service providing websites takes some charge (about 10%) after completing the project from the job providers or writers. There are tons of places online where you can offer writing service to others but some of them are best all over for Freelance Writing.

2. Doing Affiliate Marketing: This is also the best choices method so far for making money online. In this method you are basically selling other people's stuff for a commission. For doing such jobs you may have to need your own website or blog but some of the affiliate marketing companies provide you a domain and a site also for promoting their stuffs.

3. Selling on eBay: Selling on eBay is a really good online business opportunity. The best part about launching an eBay store is that you don't really need to invest financially to get started. For the better profit find out what are the hot selling items in eBay, find a wholesaler, buy them in bulk which comes out way cheaper, and then sell them individually for a profit.

4. Starting a Blog: You can also make money online by starting your own blog. Now a day it is becoming increasingly popular. You should post good articles for the blog to get better result. You can generate revenue by displaying Adsense ads, by selling affiliate products, selling advertizing space and other more.

5. Sharing photos on Stock Photography sites: If you are professional photographer or you like photography and enjoy taking interesting pictures, there are a lot of such websites from where you can earn online by sharing your amazing, interesting and original photos on them. They generate revenue from the pages where your photos display by displaying Google Adsense or other online advertizing networks ads around the photos. Almost all such websites gives you over 50% revenue generated from your photos.

6. Sharing files online: Similarly to the sharing photos on stock photography sites, you can earn online by uploading and sharing different types of files like Txt, PDF etc. If anyone downloads your file you can earn some amount.

7. Making videos and sharing: Similarly sharing your files, you can make interesting videos and upload on such sites which give revenue for you. Revver and Break etc. are such sites which will share a percentage of their ad revenue.

8. Participating on Paid Surveys: Participating on online surveys is one of the easiest ways of making money online. Market research companies get paid from their manufacturers and companies to gather feedback from their consumers. Such companies collect feedback by doing online surveys.

9. Getting paid by reading Emails: You can get paid by reading emails which you receive to your mailbox by registering on some site which paid to others for reading their emails.

10. Completing different offers: Some of the companies gives you some money for completing different types of offers like participating on surveys, visiting their ads, registering on the sites etc.


All of these methods which i have listed are based on the priorities of my suggestions for participating on them. If you have know about any other easiest and reliable methods of making money online or you have any comments about the post, you are welcomed to comment on the comment session.

Solved Objective questions of computer data structure set-3




1. Which of the following is not the type of queue?

A) Ordinary queue

B) Single ended queue

C) Circular queue

D) Priority queue


2. The property of binary tree is

A) The first subset is called left subtree

B) The second subtree is called right subtree

C) The root cannot contain NULL

D) The right subtree can be empty


3. State true or false.

i) The degree of root node is always zero.

ii) Nodes that are not root and not leaf are called as internal nodes.


A) True, True

B) True, False

C) False, True

D) False, False


4. Any node is the path from the root to the node is called

A) Successor node

B) Ancestor node

C) Internal node

D) None of the above


5. State true of false.

i) A node is a parent if it has successor nodes.

ii) A node is child node if out degree is one.

A) True, True

B) True, False

C) False, True

D) False, False


6. ………………. is not an operation performed on linear list

a) Insertion b) Deletion c) Retrieval d) Traversal

A) only a,b and c

B) only a and b

C) All of the above

D) None of the above


7. Which is/are the application(s) of stack

A) Function calls

B) Large number Arithmetic

C) Evaluation of arithmetic expressions

D) All of the above


8. A …………… is an acyclic digraph, which has only one node with indegree 0, and other nodes have in-degree 1.

A) Directed tree

B) Undirected tree

C) Dis-joint tree

D) Direction oriented tree


9. …………………. Is a directed tree in which outdegree of each node is less than or equal to two.

A) Unary tree

B) Binary tree

C) Trinary tree

D) Both B and C


10. State true or false.

i) An empty tree is also a binary tree.

ii) In strictly binary tree, the out-degree of every node is either o or 2.

A) True, False

B) False, True

C) True, True

D) False, False


11. Which of the following data structures are indexed structures?

A. Linear arrays

B. Linked lists

C. Queue

D. Stack


12. Which of the following data structure store the homogeneous data elements?

A. Arrays

B. Records

C. Pointers

D. Lists


13. When new data are to be inserted into a data structure, but there is not available space; this situation is usually called ....

A. Underflow

B. overflow

C. houseful

D. saturated


14. A data structure where elements can be added or removed at either end but not in the middle is called ...

A. linked lists

B. stacks

C. queues

D. dequeue


15. Operations on a data structure may be .....

A. creation

B. destruction

C. selection

D. all of the above


16. The way in which the data item or items are logically related defines .....

A. storage structure

B. data structure

C. data relationship

D. data operation


17. Which of the following are the operations applicable an primitive data structures?

A. create

B. destroy

C. update

D. all of the above


18. The use of pointers to refer elements of a data structure in which elements are logically adjacent is ....

A. pointers

B. linked allocation

C. stack

D. queue


19. Arrays are best data structures

A. for relatively permanent collections of data

B. for the size of the structure and the data in the structure are constantly changing

C. for both of above situation

D. for non of above situation


20. Which of the following statement is false?

A. Arrays are dense lists and static data structure.

B. Data elements in linked list need not be stored in adjacent space in memory

C. Pointers store the next data element of a list.

D. Linked lists are collection of the nodes that contain information part and next pointer.


Answers:


1. B) Single ended queue
2. D) The right ..... empty
3. C) False, True
4. B) Ancestor node
5. B) True, False
6. D) None of the above
7. D) All of the above
8. A) Directed tree
9. B) Binary tree
10. C) True, True
11. A. Linear arrays
12. B. Records
13. B. overflow
14. D. dequeue
15. D. all of the above
16. B. data structure
17. D. all of the above
18. B. linked allocation
20. C. Pointers store the next data element of a list.


Related Posts



For other more Multiple Choice Questions (MCQs): Click Here

 

List of top 7 Free bulk search engine submission tools

Submitting a site on different search engine along with major search engines like Google, Yahoo and Bing is a first step of the search engine optimization (SEO) after creating a website. For submitting your site to those search engines, you have to submit manually on each search engine and it takes longer time to complete that. But if you have no time for that you can use some bulk search engine submission tools which are available on the web. You can submit your site on the search engine by using those tools on free as well as on paid. You can get better result if you use paid service. 

Here, I have listed some top bulk search engine submission tools, which are offering free services also. 
  1. SubmitExpress.com: SubmitExpress is such a tool form which you can submit your site with 70 over search engines and directories. Those are all for free. 
  2. Addme.com: Addme provides a variety of powerful search engine submission services. Its free search engine submission service submits your site URL to 20 search engine. 
  3. Free Web Submission.co.uk: This web submission tool also submits your site URL to the 20 over biggest search engines. 
  4. Ineedhits.com: Ineedhits free search engine submission tool also submits your websites to the major 20 search engines. 
  5. USWebsites.com: This free search engine submission tool provides you with a quick and easy way to submit your website to some of the most important and major search engine and directories. 
  6. Addpro.com: You can use this free tool to submit on some search engines along with Google. It can submit your site to 18 search engines. 
  7. Isubmit.com: Isubmit.com is new tool to submit your site URL to large number of search engine and directories. It claims that they can submit over 350 search engine and directories. 
In spite of using these free search engine submission tools you can submit on numbers of search engine with in no time. It is better to submit for each search engine manually. If you know about any other such tools or you have any comment you are welcomed to submit on comment session.

You may also wanted to view the following related posts

Solved Objective Questions of Computer Fundamental set-2

1. The default setting for a horizontal rule is ..............
A) shaded
B) unshaded
C) both
D) none of the above

2. ............... tag is used to embed image in a webpage.
A) <img src="pic.gif">
B) <img src=pic.gif>
C) <img source="pic.gif">
D) None of the above

3. This is a global collection of high-powered computer that are connected together with cables, telephone lines, microwave dishes, satellites etc.
A) Arpanet
B) Internet
C) Network
D) All of the above

4. ............ is used to pointing / selecting the screen co-ordinates by detecting the light.
A) Light Pen
B) Bar Code Reader
C) Digital Camera
D) Smart Cards

5. ............... displays the information about the active document such as page number, section number, number of pages, insertion point, position, etc.
A) View Bar
B) Menu Bar
C) Status Bar
D) Ruler Line

6. ........... a record means a new record to the file.
A) Amending
B) Updating
C) Editing
D) Appending

7.  To move the cursor to end of the document, press ................
A) Ctrl+End
B) End
C) Alt+End
D) Shift+End

8. SMTP stands for
A) Simple Mail Transfer Protocol
B) Simple Mail Transport Protocol
C) Sample Mail Transfer Protocol
D) Sample Mail Transport Protocol

9. JPEG stands for ...............
A) Joint Photo Experts Group
B) Joint Photogenic Experts Group
C) Joint Photographic Experts Group
D) Joint Photoelectric Experts Group

10. The short cut key to start a new line without starting a new paragraph is ......
A) Ctrl+Enter
B) Shift+Enter
C) Alt+Enter
D) Enter

Answers:
1. A) shaded
2. A) <img src="pic.gif">
3. B) Internet
4. A) Light Pen
5. C) Status Bar
6. D) Appending
7. A) Ctrl+End
8. A) Simple Mail Transfer Protocol
9. C) Joint Photographic Experts Group
10. B) Shift+Enter

What is literal and non-literal copying of computer programs?

 literal and non-literal copying of computer programs

Copying a computer program can be literal, where the program code itself is copied, in which case the two programs are written in the same computer programming language. Alternatively, copying can be non-literal, where elements of the program such as its structure, sequence of operations, functions, interfaces and methodologies are copied but the program code is not directly copied.


Literal copying occurs where a person copies an existing program by disk to disk copying or by writing out or printing the program listing, perhaps to key it into another computer at a later date. In either case, the person making the copy may make some alterations to the copy. These may be to disguise its origins or to enhance the program, for example, by adding some additional functions. Literal copying is relatively easy for infringement. Even relatively small programs will be the result of the programmer's skill, experience and judgment. The following case in the first to seriously consider the issues relating to literal copying of computer programs and lays down some important precedents for software copyright.

The law's recognition of non-literal copying is important because otherwise it would be too easy to defeat copyright protection of computer programs. With some works of copyright, it is an easy matter to distinguish between the literal and non-literal elements. For example, with a work of literature, perhaps in the form of an historical novel, the literal element comprises the words, sentences and paragraphs as expressed in print, while the non-literal elements, in which case they may have their own copyright independent of the copyright subsisting in the finished novel. However, in the absence of such materials, it is clear that taking the non-literal elements can infringe.

You may also wanted to view the following related posts

Solved Objective Questions of System Analysis and Design set-5

1. ……………….. includes review of the existing procedures and information flow.
A) Feasibility Study
B) Feasibility report
C) System Design
D) System analysis

2. A rectangle in a DFD represents
A) a process
B) a data store
C) an external entity
D) an input unit

3. …………….. refers to the collection of information pertinent to systems Project.
A) Data transfer
B) Data gathering
C) Data Embedding
D) Data Request

4. ………………….. means coordinated effort, to communicate the information of the system written form.
A) System documentation
B) Resource required
C) Development schedule
D) User Document

5. MDP stands for
A) Master Development Plan
B) Master Design Program
C) Mandatory Database Program
D) Master Database Plan

6. External Entities may be a
A) Source of input data only
B) Source of input data or destination of results
C) Destination of results only
D) Repository of data

7. …………………. is a group of interested components working together towards a common goal by accepting inputs and producing outputs in an organized transformation process.
A) System
B) Network
C) Team
D) System Unit

8. To create vehicle of information to provide evidence in the development process and to monitor the process. This is one of the objectives of
A) Analysis
B) Design
C) Development
D) Documentation

9. A …………. System is no more than idea
A) Conceptual
B) Logical
C) Physical
D) All of the above

10. By an external entity we mean a
A) Unit outside the system being designed which can be controlled by an analyst.
B) Unit outside the system whose behavior is independent of the system being designed
C) A unit external to the system being designed
D) A unit which is not part of a DFD



Answers:
1.   A) Feasibility Study
2.   C) an external entity
3.   B) Data gathering
4.   A) System documentation
5.   A) Master Development Plan
6.   B) Source of …… destination   of results
7.   A) System
8.   D) Documentation
9.   A) Conceptual
10.   C) A unit external …… being designed