Explore topic-wise MCQs in C Program.

This section includes 107 Mcqs, each offering curated multiple-choice questions to sharpen your C Program knowledge and support exam preparation. Choose a topic below to get started.

51.

What is the use of “defer” attribute?

A. It defers rendering of html page
B. It defers script execution until the page has been rendered
C. It defers rendering of css attributes
D. None of mentioned
Answer» C. It defers rendering of css attributes
52.

Choose the correct XHTML for width attribute and its value.

A. width=80
B. width=”80″
C. WIDTH=”80″
D. WIDTH=80
Answer» C. WIDTH=”80″
53.

Which of the following are table tags?

A. table, thead, tr, td
B. colspan, table, tr
C. table, tt, tr, td
D. none of the mentioned
Answer» B. colspan, table, tr
54.

Some users have requested tests for IE’s float double margin bug, and support for position:fixed. Which API is suitable for them?

A. mq() media Plugin API
B. addTest() Plugin API
C. testAllProps() Plugin API
D. none of the mentioned
Answer» C. testAllProps() Plugin API
55.

is used to

A. make web page compatible only with IE8
B. mimic behaviour of IE8
C. make web page incompatible only with IE8
D. None of the mentioned
Answer» C. make web page incompatible only with IE8
56.

What is DOM?

A. Hierarchy of objects in ASP.NET
B. Application programming interface
C. Convention for representing and interacting with objects in html documents
D. None of the mentioned
Answer» D. None of the mentioned
57.

Which property is used to detect the browser’s user agent and code based on the pertinent cases?

A. navigator.userAgent
B. navigator.user
C. navigator
D. return
Answer» B. navigator.user
58.

Which one of the following is not a step to install a library you need to perform the compatibility in browsers ?

A. Download the library from the github location
B. Uncompress the file
C. Insert the following code inside the head tag
D. None of the mentioned
Answer» E.
59.

State true or false. Google Chrome has its own task manager, which allows you to view and manage your memory and CPU usage”

A. True
B. False
C. May be
D. Can't say
Answer» B. False
60.

Which of following statement is true?i. Cloud9 has gained particular interest for its integration with GitHub and Bit Bucket authentication integration and real-time collaboration.ii. Cloud9 does not account for SSH and FTP access.

A. ii
B. i
C. i and ii
D. None of the mentioned
Answer» C. i and ii
61.

State true or false. Maqetta is an open source initiative of the Dojo Foundation to geared towards visual designers through a WYSIWYG user interface.

A. True
B. False
C. May be
D. Can't say
Answer» B. False
62.

State true or false. Tomcat is an open source web server that provides a servlet container allowing you to run Java code.

A. True
B. False
C. May be
D. Can't say
Answer» B. False
63.

LightTPD is not used by

A. You Tube
B. Wikipedia
C. Meebo
D. LocalHost
Answer» E.
64.

Which of the following is not a response-header field?

A. Location
B. Server
C. ETag
D. Referer
Answer» E.
65.

Which of the following is not a request-header field?

A. Expect
B. Host
C. Delete
D. If-None-Match
Answer» D. If-None-Match
66.

When creating a Web document, what format is used to express an image's height and width?

A. Centimeters
B. Pixels
C. Dots per inch
D. Inches
Answer» C. Dots per inch
67.

An ordered list is a ...................... list and an unordered list is a ................. list.

A. bulleted & numbered
B. bulleted & tabular
C. tabular & numbered
D. numbered & bulleted
Answer» E.
68.

Blue Griffon is based on ________ rendering engine

A. WebKit
B. Gecko
C. Presto
D. None of the mentioned
Answer» C. Presto
69.

The Internet uses the ........................ as the protocol engine.

A. SLIP
B. HTTP
C. TCP/IP
D. PPP
Answer» D. PPP
70.

What does ‘3xx’ code denote?

A. Redirection
B. Server Error
C. Success
D. Informational
Answer» B. Server Error
71.

Title tag is nested within the ....................... tag.

A. Body
B. Head
C. List
D. Table
Answer» C. List
72.

Rendering engine is not responsible for

A. parsing the markup content (HTML)
B. parsing style information (CSS, XSL, and so on)
C. generating a visual presentation of the formatted content including media files referenced
D. none of the mentioned
Answer» E.
73.

.................... is a web's native protocol.

A. SLIP
B. TCP/IP
C. HTTP
D. PPP
Answer» D. PPP
74.

IEEE stands for ........

A. Institute of estimated elevator efficiency
B. Institute of electrical and economical engineers
C. Institute of Eurasia engineering event
D. Institute of electrical and electronics engineers
Answer» E.
75.

......................... connects web pages.

A. Connector
B. Link
C. Hyperlink
D. None of the above
Answer» D. None of the above
76.

.................. is suitable for remote administration of a computer.

A. FTP
B. Shell
C. Remote Procedure Call
D. Telnet
Answer» E.
77.

State true or false. Nexus is first graphical web browser.

A. True
B. False
C. May be
D. Can't say
Answer» C. May be
78.

Which one of the following is an open source JavaScript library that enables styling for HTML5 elements in versions of Internet Explorer before IE 9 ?

A. HTML5
B. HTML5 Shiv
C. HTML5 Shim
D. None of the mentioned
Answer» C. HTML5 Shim
79.

State whether the given statement is true or false. !DOCTYPE is case sensitive”

A. True
B. False
C. May be
D. Can't say
Answer» C. May be
80.

Which tag is used if you want to indicate the importance of the phrase?

A. <h2>
B. <h1>
C. <em>
D. <strong>
Answer» E.
81.

Choose the correct statement among following statements.

A. In traditional XHTML close tag for some elements is optional but not encouraged
B. In traditional HTML close tag for some elements is optional but not encouraged
C. None of the mentioned
D. In both traditional XHTML and HTML close tag for some elements is optional
Answer» C. None of the mentioned
82.

Which of the following is not a difference between HTML and XHTML

A. Charset in html is “text/html” where as in xhtml it is “application/xml+xhtml”
B. None of the mentioned
C. Tags and attributes are case-insensitive in HTML but not in XHTML
D. Special characters must be escaped using character entities in XHTML unlike HTML
Answer» C. Tags and attributes are case-insensitive in HTML but not in XHTML
83.

Which of the following element represents a thematic break rather than a horizontal rule, though that is the likely representation?

A. <dd>
B. <dt>
C. <hr>
D. <menu>
Answer» D. <menu>
84.

Which of the following element was redefined to represent user interface menus, including context menus?

A. <ul>
B. <dt>
C. <hr>
D. <menu>
Answer» E.
85.

Which tag is used if you want to highlight something that is important to the reader?

A. <b>
B. <strong>
C. <em>
D. <i>
Answer» B. <strong>
86.

State whether the given statement is true or false. “We can intermix XHTML and HTML 4.01 documents”

A. True
B. False
C. May be
D. Can't say
Answer» C. May be
87.

short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code?~!

A. 6
B. 7
C. 12
D. 24
E. It will not compile because not enough initializers are given
Answer» E. It will not compile because not enough initializers are given
88.

"My salary was increased by 15%"Select the statement, which will EXACTLY reproduce the line of text above.~!

A. printf("My salary was increased by 15/%!");
B. printf("My salary was increased by 15%!");
C. printf("My salary was increased by 15'%'!");
D. printf("My salary was increased by 15%%!");
Answer» E.
89.

C was primarily developed as%!

A. System programming language
B. General purpose language
C. Data processing language
D. None of the above.
Answer» B. General purpose language
90.

*/*_C programs are converted into machine language with the help of?

A. An Editor
B. A compiler
C. An operating system
D. None of these.
Answer» C. An operating system
91.

__For 16-bit compiler allowable range for integer constants is ________?__

A. -3.4e38 to 3.4e38
B. -32767 to 32768
C. -32668 to 32667
D. -32768 to 32767
Answer» E.
92.

C Language developed at _________?$?

A. AT & T's Bell Laboratories of USA in 1972
B. AT & T's Bell Laboratories of USA in 1970
C. Sun Microsystems in 1973
D. Cambridge University in 1972
Answer» B. AT & T's Bell Laboratories of USA in 1970
93.

Who is father of C Language?

A. Bjarne Stroustrup
B. James A. Gosling
C. Dennis Ritchie
D. Dr. E.F. Codd
Answer» D. Dr. E.F. Codd
94.

What will be printed after execution of the following program code?main(){ printf("\\nab"); printf("\\bsi"); printf("\\rha"); }

A. absiha
B. asiha
C. haasi
D. hai
E. None of these
Answer» E. None of these
95.

Which one of the following is not a valid identifier?

A. _examveda
B. 1examveda
C. exam_veda
D. examveda1
Answer» C. exam_veda
96.

A C variable cannot start with

A. A number
B. A special symbol other than underscore
C. Both of the above
D. An alphabet
Answer» D. An alphabet
97.

Which one of the following is not a reserved keyword for C?

A. auto
B. case
C. main
D. default
E. register
Answer» D. default
98.

Standard ANSI C recognizes ______ number of keywords?

A. 30
B. 32
C. 24
D. 36
E. 40
Answer» C. 24
99.

What is the difference between a declaration and a definition of a variable?

A. Both can occur multiple times, but a declaration must occur first.
B. A definition occurs once, but a declaration may occur many times.
C. Both can occur multiple times, but a definition must occur first.
D. A declaration occurs once, but a definition may occur many times.
E. There is no difference between them.
Answer» E. There is no difference between them.
100.

What number would be shown on the screen after the following statements of C are executed?char ch; int i; ch = 'G'; i = ch-'A';printf("%d", i);

A. 5
B. 6
C. 7
D. 8
E. 9
Answer» C. 7