Hello Everyone ! My all blogs contains information, related to new technologies, Health sector information, New Games Related Information, Some recipes, and more over some Information related to matches, football matches information, information about Microsoft Applications like PowerPoint, Excel, Word, Access and some tips and tricks in Microsoft PowerPoint, word and Excel and my one of the favourite topic that is coding languages like python , html, java, css, c ,c++.
C Quiz
Get link
Facebook
X
Pinterest
Email
Other Apps
C MCQs
C MCQs
Quiz
Which of the following is allowed in a C Arithmetic instruction
[]
{}
()
None
A C variable cannot start with
Alphabet
number
A special symbol other than underscore
B and D
C programs are converted into machine language with the help of
An Editor
A compiler
An operating system
None
. For 16-bit compiler allowable range for integer constants is ______
-3.4e38 to 3.4e38
-32767 to 32768
-32768 to 32767
-32668 to 32667
C Language developed at _____
AT & T's Bell Laboratories of USA in 1972
AT & T's Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
Who is father of C Language?
Bjarne Stroustrup
Dennis Ritchie
James A. Gosling
Dr. E.F. Codd
#include "stdio.h" int main() { int a@ = 10; printf("%d", a@); return 0; }
10
@
10@
Error
Which one of the following is invalid macro in C programming?
#pragma
#error
#ifndef
#esleif
Is it possible to run program without main() function?
Yes
No
May Be
Sometimes
Which of the following shows the correct hierarchy of arithmetic operations in C
/ + * -
* - / +
+ - / *
* / + -
How many times CppBuzz.com is printed? int main() { int a = 0; while(a++); { printf("CppBuzz.com"); }
return 0; }
0
1
Infinite
Compilation Error
What is an array?
collection of variables that are of the same data type.
collection of variables that are of the dissimilar data type
array is not a collection of variables that are of the same data type.
None
What is right way to Initialization array?
int num[6] = { 2, 4, 12, 5, 45, 5 } ;
int n{} = { 2, 4, 12, 5, 45, 5 } ;
int n{6} = { 2, 4, 12 } ;
int n(6) = { 2, 4, 12, 5, 45, 5 } ;
An array elements are always stored in _________ memory locations
Sequential
Random
Sequential and Random
None
What is the right way to access value of structure variable book{ price, page }?
printf("%d%d", book.price, book.page);
printf("%d%d", price.book, page.book);
printf("%d%d", price::book, page::book);
printf("%d%d", price->book, page->book);
perror( ) function used to ?
B.
Work same as printf()
prints the error message specified by the compiler
prints the garbage value assigned by the compiler
None
Bitwise operators can operate upon?
doubles and chars
The basic element recognized by the compiler
The largest individual units of program
A and B
What is C Tokens?
The smallest individual units of c program
The basic element recognized by the compiler
The largest individual units of program
A and B
What are Keywords?
Keywords have some predefine meanings and these meanings can be changed.
Keywords have some unknown meanings and these meanings cannot be changed.
Keywords have some predefine meanings and these meanings cannot be changed.
None
What are Constants?
Constants have fixed values that do not change during the execution of a program
Constants have unknown values that may be change during the execution of a program
Constants have fixed values that change during the execution of a program
None
Which is the right way to declare constant in C?
int constant var =10;
int const var = 10;
const int var = 10;
B and C
Which operators are known as Ternary Operator?
::, ?
?, :
?, ;;
None
In switch statement, each case instance value must be _______?
Constant
Variable
Special Symbol
None
What is the work of break keyword?
Halt execution of program
Restart execution of program
Exit from loop or switch
None
What is function?
Function is the fundamental modular unit. A function is usually designed to perform a specific task.
Function is a block of statements that perform some specific task.
Function is a block of code that performs a specific task. It has a name and it is reusable.
All the above
Which one of the following sentences is true ?
The body of a while loop is executed at least once.
The body of a do ... while loop is executed at least once.
The body of a do ... while loop is executed zero or more times.
A for loop can never be used in place of a while loop
A binary tree with 27 nodes has _______ null branches
54
27
26
None
Which one of the following is not a linear data structure?
Stack
Queue
Binary Tree
Array
Recursive functions are executed in a?
Parallel Fashion
Load Balancing
LIFO
FIFO
Queue is a ___________ list.
LIFO
LILO
FIFO
FILO
Recursive functions are executed in a?
Load Balancing
LIFO
Parallel Fashion
FIFO
The statement print f ("%d", 10 ? 0 ? 5 : 1 : 12); will print?
10
0
12
1
To represent hierarchical relationship between elements, which data structure is suitable?
Tree
Priority
Deque
All of the above
Which of the following data structure is linear type?
Strings
Queue
Lists
All of the above
The statement printf("%c", 100); will print?
prints 100
print garbage
prints ASCII equivalent of 100
None
The _______ memory allocation function modifies the previous allocated space.
calloc
free
malloc
realloc
Number of binary trees formed with 5 nodes are
30
36
108
42
The "C" language is
Context free language
Context sensitive language
Regular language
None
The worst case time complexity of AVL tree is better in comparison to binary search tree for
Search and Insert Operations
Search and Delete Operations
Insert and Delete Operations
Search, Insert and Delete Operations
In which tree, for every node the height of its left subtree and right subtree differ almost by one?
Binary search tree
AVL tree
Threaded Binary Tree
Complete Binary Tree
C is ______ Language?
Low Level
High Level
Assembly Level
Machine Level
The Default Parameter Passing Mechanism is called as
Call by Value
Call by Reference
Call by Address
Call by Name
What is Dequeue?
Elements can be added from front
Elements can be added to or removed from either the front or rear
Elements can be added from rear
None
In which linked list last node address is null?
Doubly linked list
Circular list
Singly linked list
None
Which is the correct syntax to declare constant pointer?
int *const constPtr;
*int constant constPtr;
const int *constPtr;
A and C
What will be the output of the following arithmetic expression ? 5+3*2%10-8*6
-37
-42
-32
-28
What will be the output of the following statement ? int a=10; printf("%d &i",a,10);
error
10
10 10
None
What will be the output of the following statement ? printf("%X%x%ci%x",11,10,'s',12);
error
basc
Bas94c
None
What will be the output of the following statements ? int a = 4, b = 7,c; c = a = = b; printf("%i",c);
0
error
1
garbage value
What will be output if you will compile and execute the following c code? void main(){ int a=25; clrscr(); printf("%o %x",a,a); getch(); }
How Apps Helps In Growing Business Travel Industry today expect versatile situated administrations for all that they are looking for and any place they are. Individuals these days aside from inns to offer mobiles administrations. Number of inns are advanced for their business site for cell phones and empowered Facebook and portable booking abilities. Around 75% acquired the information on having a portable application for their business and a couple of carried out it. In a business where an assistance runs, their portable applications will coordinate with them impeccably. The following are the motivations to get accomplishment in your inn business by utilizing Mobile application 1. What's to come is in the possession of Mobile gadgets What's to come is in the possession of Mobile gadgets: The best evidence is the developing paces of tablets and cell phones. Applications have become more mainstream since they serve in the possession of everybody. It makes lodgings to im...
Facts About Comic Sans Comic Sans owes its reality and creation to the epic disappointment Microsoft Bob. Weave was a yellow animation, Bill Gates-glasses wearing client 'direct', intended to help individuals twist their heads around PCs. The content in Bob's discourse bubbles was planned to be written in Times New Roman, yet planner Vincent Connare thought a particularly genuine content for an animation was absurd. So he set off to make a more child cordial text style, thus it was that Comic Sans was conceived. Vincent Connare himself has conceded that while planning Comic Sans he had two funnies in his office – The Dark Knight Returns and Watchmen. He took a gander at the print in these funnies and chose to adjust their textual styles to make Comic Sans. The development to boycott Comic Sans is the greatest enemy of textual style development on the planet. At the hour of composing this post, the 'Boycott Comic Sans' online request has more than 5,000 marks! Co...
Comments