Quizzes
Search
Take Quizzes
Animal
Nutrition
Love
Relationship
Computer
Sports
Society
Business
Geography
Language
Personality
Harry Potter
Movie
Television
Music
Online Exam
Health
Country
Art
Entertainment
Celebrity
Math
Game
Book
Fun
Science
Food
History
Education
All Topics
Create a Quiz
Quiz Maker
Training Maker
Survey Maker
Flashcards
Brain Games
See All
ProProfs.com
Search
Create A Quiz
Take Quizzes
Animal
Nutrition
Love
Relationship
Computer
Sports
Society
Business
Geography
Language
Personality
Harry Potter
Movie
Television
Music
Online Exam
Health
Country
Art
Entertainment
Celebrity
Math
Game
Book
Fun
Science
Food
History
Education
All Topics
Products
Quiz Maker
Training Maker
Survey Maker
Flashcards
Brain Games
See All
ProProfs.com
Quizzes
Quizzes
›
Computer
Fundamental C Test2
40 Questions
|
By Sudha_test | Updated: Jul 30, 2011
| Attempts: 839
Share
Start
Share on Facebook
Share on Twitter
Share on Whatsapp
Share on Pinterest
Share on Email
Copy to Clipboard
Embed on your website
Question
1
/ 40
0 %
0/100
Score
0/100
1.
Every C Program Statement must be terminated with a
.
#
;
!
Submit
Start Quiz
About This Quiz
This test is to rate your fundamental C concepts
2.
What's your name?
We’ll put your name on your report, certificate, and leaderboard.
What grade are you in?
Grade 12
Grade 11
Grade 10
Grade 9
Grade 8
Grade 7
Grade 6
Grade 5
Grade 4
Grade 3
Grade 2
Grade 1
Kindergarten (K)
2.
The process of removing a bug is known as
Debugging
Compilation
Executing
Running
Submit
3.
++I is a ----------------------operator.
Pre-decrement
Pre-increment
Post increment
Post decrement
Submit
4.
C language has been developed by
Martin Richards
Ken Thompson
Peter Norton
Dennis Ritchie
Submit
5.
The symbol for right shift operator is
− >
>
>>
Submit
6.
Format specifier for the string is
%u
%d
%c
%s
Submit
7.
X=9-12/3+3*2-1, what is the value of x
-10
10
4
2
Submit
8.
The equality relational operator is represent by
:=
==
.EQ
=
Submit
9.
Size of (double) returns———
8
2
10
4
Submit
10.
The conditional operators “ ? :” is similar to
Nested if
If-then-else
While
Do-while
Submit
11.
What could be output of the following function main( ) {int x=2,y=6,z=6; x=y=z; printf(“%d”,x); }
2
1
0
6
Submit
12.
Which of the following is a valid numeric constant
20,000
15 750
$1000
65432
Submit
13.
The keyword is used to define a new data type.
Array
Structure
Typedef
Union
Submit
14.
The purpose of the following fragment B=S+B S=B-S; B=B-S; Where S,B are two integers is to
Negate the contents of S and B
Swap the contents of S and B
Transfer the contents of S to B
Transfer the contents of B to S
Submit
15.
Which of the following is allowed in a C arithmetic statement
( )
[ ]
{ }
/ /
Submit
16.
How would you declare a constant of 5 called “MYCONST”?
#define MYCONST 5
Var int MYCONST=5
Int myconst = 5;
Constant MYCONST = 5;
Submit
17.
Which of the following is the assignment operator in C
!=
= =
=
: =
Submit
18.
‘void’ means
1
Nothing
Something not known
0
Submit
19.
What is output of following Program? main( ) {int x=10,y=5,p,q ; p= x> 9 ; q= x > 3 && y != 3 ; printf( “p=%d q=%d ” ,p,q) ; }
P =0 q = 0
P = 0 q = 1
P = 1 q= 0
P = 1 q = 1
Submit
20.
What function is appropriate for accepting a string?
Getch ( )
Gets( )
Getche ( )
Scanf ( )
Submit
21.
In the following which one is not a C keyword?
Choice
Case
For
Volatile
Submit
22.
What is the range of unsigned char data type
0 to 512
0 to 255
-128 to 127
-32, 768 to 32,767
Submit
23.
Main( ) { int a=0; if(a) printf(“%d”,++a); else printf(“%d”, a+=2) ; } the output is
3
1
2
0
Submit
24.
What type of errors are checked during compilation
Divide by zero error
Logical errors
Run - time errors
Syntax errors
Submit
25.
Pick the operators that associates from right to left
%
-
=
+
Submit
26.
C variable cannot start with
A lower case
An underscore
A number
An upper case letter
Submit
27.
What symbol is used to represent input/output operations in a flow chart.
Rectangles
Parellograms
Circles
Rectangle with rounded end
Submit
28.
What is range of char data value?
-128 to 127
-64 to 64
0 to 255
-127 to 128
Submit
29.
The function -------------------echoes the character typed on the screen
Getchar()
Gets()
Getche()
Getchr()
Submit
30.
How many while statements are possible in do.... While loop?
Any number
2
3
1
Submit
31.
Which of the following cannot be used as an identifier.
Alphabet followed by digit
Keywords
Alphabet
Library function name
Submit
32.
Which of the following shows the correct hierarchy of arithmetic operations in C
( ), &&, *,/,+,-
( ), &&, / , *, +, -
( ),&&,*or / + or -;
( ), / or *, - or +
Submit
33.
Which of the following is not a key word of C?
Main
Void
Const
Sizeof
Submit
34.
Switch(ch) {case ‘a’: printf(“a”); case ‘b’: printf(“b”); default: printf(“error”); } if ch is assigned to the character ‘a’ then the output will be
A b
A b error
A
Error
Submit
35.
What is the result of 5 &&2 ?
0
2
1
5
Submit
36.
The output of the following program is main( ) {int i=2; printf(“%d %d %d”,i++,i,++i); }
2 2 4
2 3 3
3 3 3
2 3 4
Submit
37.
Which function returns single character
Printf
Putchar
Scanf
Getchar
Submit
38.
In switch (expression) statement, the expression should evaluate to
A void
An integer
A character
A float
Submit
39.
Main( ) { float a; int x = 6; y = 4; a = x/y; print (“%f”,a) }what is the output
Error
1.5
0.5
1.00
Submit
40.
Among the following operators, whose associatively is right to left
Logical operators
Arithmetic operators
Conditional expression
Bitwise operators
Submit
View My Results
Related Quizzes
Tablet Quiz: What Tablet Should I Buy Quiz
Tablet Quiz: What Tablet Should I Buy Quiz
Thank you for your feedback!
Would you like to edit this question to improve it?
No thanks
Name:
Email:
Oops! Give us more information:
Incorrect Question
Incorrect Answer
Typos
I have a feedback
Submit
Please provide name and email to proceed.
Please provide correct email to proceed.
Please provide feedback.
Please select the option.
All (40)
Unanswered (
)
Answered (
)
Every C Program Statement must be terminated with a
The process of removing a bug is known as
++I is a ----------------------operator.
C language has been developed by
The symbol for right shift operator is
Format specifier for the string is
X=9-12/3+3*2-1, what is the value of x
The equality relational operator is represent by
Size of (double) returns———
The conditional operators “ ? :” is similar to
What could be output of the following function ...
Which of the following is a valid numeric constant
The keyword is used to define a new data type.
The purpose of the following fragment ...
Which of the following is allowed in a C arithmetic statement
How would you declare a constant of 5 called “MYCONST”?
Which of the following is the assignment operator in C
‘void’ means
What is output of following Program? ...
What function is appropriate for accepting a string?
In the following which one is not a C keyword?
What is the range of unsigned char data type
Main( ) ...
What type of errors are checked during compilation
Pick the operators that associates from right to left
C variable cannot start with
What symbol is used to represent input/output operations in a flow...
What is range of char data value?
The function -------------------echoes the character typed on the...
How many while statements are possible in do.... While loop?
Which of the following cannot be used as an identifier.
Which of the following shows the correct hierarchy of arithmetic...
Which of the following is not a key word of C?
Switch(ch) ...
What is the result of 5 &&2 ?
The output of the following program is ...
Which function returns single character
In switch (expression) statement, the expression should evaluate to
Main( ) ...
Among the following operators, whose associatively is right to left
X
OK
X
OK
Cancel
X
OK
Cancel
Advertisement