SlideShare uma empresa Scribd logo
1 de 96
Baixar para ler offline
Cover Page
C Programming
Language
Author: JavaChamp Team
Copyright (c) 2010-2014
(2) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
About Us
Powered by QuizOver.com
The Leading Online Quiz & Exam Creator
Create, Share, and Discover Quizzes & Exams
http://www.quizover.com
(3) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
Disclaimer
All services and content of QuizOver.com are provided under QuizOver.com terms of use on an "as is" basis,
without warranty of any kind, either expressed or implied, including, without limitation, warranties that the provided
services and content are free of defects, merchantable, fit for a particular purpose or non-infringing.
The entire risk as to the quality and performance of the provided services and content is with you.
In no event shall QuizOver.com be liable for any damages whatsoever arising out of or in connection with the use
or performance of the services.
Should any provided services and content prove defective in any respect, you (not the initial developer, author or
any other contributor) assume the cost of any necessary servicing, repair or correction.
This disclaimer of warranty constitutes an essential part of these "terms of use".
No use of any services and content of QuizOver.com is authorized hereunder except under this disclaimer.
The detailed and up to date "terms of use" of QuizOver.com can be found under:
http://www.QuizOver.com/public/termsOfUse.xhtml
(4) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
eBook Content License
Creative Commons License
Attribution-NonCommercial-NoDerivs 3.0 Unported (CC BY-NC-ND 3.0)
http://creativecommons.org/licenses/by-nc-nd/3.0/
You are free to:
Share: copy and redistribute the material in any medium or format
The licensor cannot revoke these freedoms as long as you follow the license terms.
Under the following terms:
Attribution: You must give appropriate credit, provide a link to the license, and indicate if changes were made. You
may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
NonCommercial: You may not use the material for commercial purposes.
NoDerivatives: If you remix, transform, or build upon the material, you may not distribute the modified material.
No additional restrictions: You may not apply legal terms or technological measures that legally restrict others
from doing anything the license permits.
-
-
-
-
-
-
-
-
-
-
-
-
(5) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
Table of Contents
Quiz Permalink: http://www.quizover.com/pdf/c-certification-questions
Author Profile: http://www.quizover.com/user/profile/Java.Champ
1. C Programming Language
Basics
Arithmetic operators
Logical operators and Conditions
Print out Statements
Flow Control
Inputs Reading
Assignement
Arrays
Methods and Functions
Identifiers and Variables
Data Types
Strings
(6) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
4. Chapter: Basics
1. Basics Questions
•
•
•
(7) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
4.1.1. Question: The C programming Language is
The C programming Language is
Please choose only one answer:
Low level language
High level language
Machine language
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: c language
Permalink: http://www.quizover.com/pdf/c-language
•
•
•
(8) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
4.1.2. Question: To include a header file in a C program:
To include a header file in a C program:
Please choose only one answer:
#include "stdio.h" ;
#include "stdio.h"
Both correct
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: include in C
Permalink: http://www.quizover.com/pdf/include-in-c
•
•
•
(9) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
4.1.3. Question: the #include keyword in c language is:
the #include keyword in c language is:
Please choose only one answer:
executive c statement
compiler directive
both correct
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: how to include in C?
Permalink: http://www.quizover.com/pdf/how-to-include-in-c
•
•
•
(10) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
4.1.4. Question: To include a header file in a C program:
To include a header file in a C program:
Please choose only one answer:
#include "stdio.h"
#include <stdio.h>
Both correct
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: how to include a header in C?
Permalink: http://www.quizover.com/pdf/how-to-include-a-header-in-c
•
•
•
(11) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
4.1.5. Question: The main() function is:
The main() function is:
Please choose only one answer:
to write output to the screen
the program entry point
Both correct
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: main function in C
Permalink: http://www.quizover.com/pdf/main-function-in-c
•
•
•
(12) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
4.1.6. Question: How to write comments in C language?
How to write comments in C language?
Please choose only one answer:
Use /* ….. */ for multi-line comments
Use // for single-line comments
Both correct
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: How to write comments in C language?
Permalink: http://www.quizover.com/pdf/how-to-write-comments-in-c-language
•
•
•
(13) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
4.1.7. Question: The computer performs computations internally using
The computer performs computations internally using
Please choose only one answer:
Binary number system
Decimal number system
Hexadec. number system
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: Binary number system
Permalink: http://www.quizover.com/pdf/binary-number-system
(14) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
5. Chapter: Arithmetic operators
1. Arithmetic operators Questions
•
•
•
(15) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
5.1.1. Question: To compute the square of the value in variable a:
To compute the square of the value in variable a:
Please choose only one answer:
b = a^2;
z = a * a;
both correct
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: How to square a value in C?
Permalink: http://www.quizover.com/pdf/how-to-square-a-value-in-c
•
•
•
(16) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
5.1.2. Question: The value of z in the following statement:
int x = 9 , y = 2 , z...
The value of z in the following statement:
int x = 9 , y = 2 , z = x / y;
Please choose only one answer:
4
4.5
5
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: arithmetic operators in C
Permalink: http://www.quizover.com/pdf/arithmetic-operators-in-c
•
•
•
(17) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
5.1.3. Question: choose the proper function to compute the cubic value of any input ...
choose the proper function to compute the cubic value of any input integer n:
Please choose only one answer:
int cube(void) { return (n * n * n) ; }
int cube(int n) { return (n * n * n) ; }
void cube(int n) { return (n * n * n) ; }
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: write method in C
Permalink: http://www.quizover.com/pdf/write-method-in-c
•
•
•
(18) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
5.1.4. Question: what is the output of the following piece of code
what is the output of the following piece of code
Please choose only one answer:
3
4
5
Author: JavaChamp Team
int a = 1, b = 2, c;
c = a-- + b--;
printf(“%d”,c);
Check the answer of this question online on QuizOver.com:
Question: decrementation in C
Permalink: http://www.quizover.com/pdf/decrementation-in-c
•
•
•
(19) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
5.1.5. Question: What is the output of the following piece of code?
What is the output of the following piece of code?
Please choose only one answer:
8
9
10
Author: JavaChamp Team
int x = 3, y = 5, z;
z = x + ++y;
printf(“%d”,z);
Check the answer of this question online on QuizOver.com:
Question: How to increment int in C?
Permalink: http://www.quizover.com/pdf/how-to-increment-int-in-c
•
•
•
(20) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
5.1.6. Question: A short-cut for the statement: x = x + 1;
A short-cut for the statement: x = x + 1;
Please choose only one answer:
x += 1;
x++;
Both correct
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: post increment in C
Permalink: http://www.quizover.com/pdf/post-increment-in-c
•
•
•
(21) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
5.1.7. Question: what is the output of the following piece of code
int z = 23 % 3;
what is the output of the following piece of code
int z = 23 % 3;
Please choose only one answer:
7
2
30
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: remainder operator in C
Permalink: http://www.quizover.com/pdf/remainder-operator-in-c
•
•
•
(22) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
5.1.8. Question: To compute the cube of the value in variable x:
To compute the cube of the value in variable x:
Please choose only one answer:
c = x * x * x;
c = x^3;
Both correct
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: C arithmetic operators
Permalink: http://www.quizover.com/pdf/c-arithmetic-operators
•
•
•
(23) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
5.1.9. Question: what is the output of the following piece of code:
what is the output of the following piece of code:
Please choose only one answer:
1
2
3
Author: JavaChamp Team
int c = 19 % 4;
Check the answer of this question online on QuizOver.com:
Question: How to use Remainder operator in C?
Permalink: http://www.quizover.com/pdf/how-to-use-remainder-operator-in-c
•
•
•
(24) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
5.1.10. Question: printf("%f", sqrt(sqrt (x)));
printf("%f", sqrt(sqrt (x)));
Please choose only one answer:
is correct
has syntax error
causes run-time error
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: How sqrt method works in C?
Permalink: http://www.quizover.com/pdf/how-sqrt-method-works-in-c
•
•
•
(25) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
5.1.11. Question: What is the output of the following piece of code:
What is the output of the following piece of code:
Please choose only one answer:
8
9
10
Author: JavaChamp Team
int x = 3, y = 5, z;
z = ++x + ++y;
printf(“%d”,z);
Check the answer of this question online on QuizOver.com:
Question: How to increment in C?
Permalink: http://www.quizover.com/pdf/how-to-increment-in-c
•
•
•
(26) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
5.1.12. Question: What is the output of the following piece of code?
What is the output of the following piece of code?
Please choose only one answer:
8
9
10
Author: JavaChamp Team
int x = 3, y = 5, z ;
z = x++ + ++y;
printf(“%d”,z);
Check the answer of this question online on QuizOver.com:
Question: How incrementation works in C?
Permalink: http://www.quizover.com/pdf/how-incrementation-works-in-c
(27) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
6. Chapter: Logical operators and Conditions
1. Logical operators and Conditions Questions
•
•
•
•
(28) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
6.1.1. Question: What is the result of compiling and running the following code?
What is the result of compiling and running the following code?
Please choose only one answer:
no output is produced
c is smaller than C
c is greater than C
compilation error
Author: Yasser Ibrahim
public static void main(String[] args) {
char c = 'c';
String result = (c > 'C') ? "c is greater than C " : "c is smaller than C";
System.out.print(result);
}
Check the answer of this question online on QuizOver.com:
Question: conditional operator in Java
Permalink: http://www.quizover.com/pdf/conditional-operator-in-java
•
•
•
(29) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
6.1.2. Question: The operator = in the Boolean condition if( age = 3 )
The operator = in the Boolean condition if( age = 3 )
Please choose only one answer:
assignment operator
check for equality condition operator
both correct
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: How to write if statement in C?
Permalink: http://www.quizover.com/pdf/how-to-write-if-statement-in-c
•
•
•
(30) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
6.1.3. Question: what is the result of the condition ( x ;; y ) given the declaratio...
what is the result of the condition ( x ;; y ) given the declaration :
int x = 1 , y = 2 ;
Please choose only one answer:
false
unknown
true
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: logical AND operator in C
Permalink: http://www.quizover.com/pdf/logical-and-operator-in-c
•
•
•
(31) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
6.1.4. Question: consider the following statement:
if( 7 ) printf("CHECK");
consider the following statement:
if( 7 ) printf("CHECK");
Please choose only one answer:
the printf() statement will always be executed
the printf() statement will never be executed
Depends on the compiler
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: how conditions evaluated in C
Permalink: http://www.quizover.com/pdf/how-conditions-evaluated-in-c
•
•
•
(32) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
6.1.5. Question: What is the result of the condition ( a ;; b ) given the following ...
What is the result of the condition ( a ;; b ) given the following declaration :
Please choose only one answer:
true
false
unknown
Author: JavaChamp Team
int a = 3 , b = 1 ;
Check the answer of this question online on QuizOver.com:
Question: How to evaluate conditions in C?
Permalink: http://www.quizover.com/pdf/how-to-evaluate-conditions-in-c
•
•
•
(33) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
6.1.6. Question: the ; operator in the Boolean condition if( (x>5) ; ( y < 9 ) ) &h...
the ; operator in the Boolean condition if( (x>5) ; ( y < 9 ) ) …
Please choose only one answer:
bit-wise AND operator
address operator
logical AND operator
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: bit-wise AND operator in C
Permalink: http://www.quizover.com/pdf/bitwise-and-operator-in-c
•
•
•
(34) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
6.1.7. Question: what is the result of the condition ( x ; y ) given the declaration...
what is the result of the condition ( x ; y ) given the declaration:
int x = 1 , y = 2 ;
Please choose only one answer:
true
unknown
false
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: bit-wise AND C operator
Permalink: http://www.quizover.com/pdf/bitwise-and-c-operator
•
•
•
(35) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
6.1.8. Question: To find the max value between x,y :
To find the max value between x,y :
Please choose only one answer:
if ( x > y ) max = x;
else max = y;
max = y;
if ( x > y ) max = x;
both correct
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: How to find max value in C?
Permalink: http://www.quizover.com/pdf/how-to-find-max-value-in-c
•
•
•
(36) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
6.1.9. Question: What is the output of the following piece of code:
What is the output of the following piece of code:
Please choose only one answer:
no output
7
3
Author: JavaChamp Team
int x = 7;
if ( x = 3 ) printf( “%d“ , x);
Check the answer of this question online on QuizOver.com:
Question: How to evaluate C conditions?
Permalink: http://www.quizover.com/pdf/how-to-evaluate-c-conditions
•
•
•
(37) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
6.1.10. Question: if ( 16 = m ) printf("m is 16");
if ( 16 = m ) printf("m is 16");
Please choose only one answer:
is correct
has syntax error
causes run-time error
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: How to write C if statement?
Permalink: http://www.quizover.com/pdf/how-to-write-c-if-statement
(38) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
7. Chapter: Print out Statements
1. Print out Statements Questions
•
•
•
(39) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
7.1.1. Question: To write statement hi world:
To write statement hi world:
Please choose only one answer:
puts(‘hi world’);
puts("hi world");
Both correct
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: How to print out a String in C?
Permalink: http://www.quizover.com/pdf/how-to-print-out-a-string-in-c
•
•
•
(40) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
7.1.2. Question: To write the ASCII code of char ch=’x’;
To write the ASCII code of char ch=’x’;
Please choose only one answer:
printf("%d",ch);
putch(ch);
printf("%d", ascii(ch));
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: How to print out ASCII in c?
Permalink: http://www.quizover.com/pdf/how-to-print-out-ascii-in-c
•
•
•
(41) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
7.1.3. Question: To write the value of x where:
double x = 0.12345;
To write the value of x where:
double x = 0.12345;
Please choose only one answer:
printf( "%lf " , x);
printf( "%f " , x);
printf( "%ld " , x);
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: how to print double in C?
Permalink: http://www.quizover.com/pdf/how-to-print-double-in-c
•
•
•
(42) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
7.1.4. Question: To print character a:
To print character a:
Please choose only one answer:
putch("a");
putch(‘a’);
Both correct
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: How to print out a character in C?
Permalink: http://www.quizover.com/pdf/how-to-print-out-a-character-in-c
•
•
•
(43) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
7.1.5. Question: what is the best choice to print the value of variable x where:
...
what is the best choice to print the value of variable x where:
int x = 123;
Please choose only one answer:
printf("%d",x);
printf("%c",x);
printf("%f",x);
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: print int in C
Permalink: http://www.quizover.com/pdf/print-int-in-c
•
•
•
(44) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
7.1.6. Question: what is the best choice to print the value of variable y where:flo...
what is the best choice to print the value of variable y where:float y = 2.34;
Please choose only one answer:
printf("%d",y);
printf("%f",y);
printf("%c",y);
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: printf float in C
Permalink: http://www.quizover.com/pdf/printf-float-in-c
•
•
•
(45) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
7.1.7. Question: To write string char str[30] = "C Language";
What to use?
To write string char str[30] = "C Language";
What to use?
Please choose only one answer:
printf("%s",str);
puts(str);
Both correct
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: How to print out in c?
Permalink: http://www.quizover.com/pdf/how-to-print-out-in-c
(46) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
8. Chapter: Flow Control
1. Flow Control Questions
•
•
•
(47) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
8.1.1. Question: consider the following statement:
while ( 1 ) ;
consider the following statement:
while ( 1 ) ;
Please choose only one answer:
Infinite loop
Syntax error
Depends on the compiler
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: infinite loop in C
Permalink: http://www.quizover.com/pdf/infinite-loop-in-c
•
•
•
(48) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
8.1.2. Question: What is the output of the following piece of code:
What is the output of the following piece of code:
Please choose only one answer:
One
Two
TwoThree
Author: Yasser Ibrahim
switch(2) {
case 1: printf(“One”);break;
case 2: printf(“Two”);break;
case 3: printf(“Three”);break;
}
Check the answer of this question online on QuizOver.com:
Question: how switch works in C?
Permalink: http://www.quizover.com/pdf/how-switch-works-in-c
•
•
•
(49) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
8.1.3. Question: To write character array
char mystr[50] = "string" , i = 0;
To write character array
char mystr[50] = "string" , i = 0;
Please choose only one answer:
len = strlen (mystr);
for ( i = 0 ; i < len ; i++ ) putch(mystr [i] );
for ( i = 0 ; i < 50 ; i++ ) putch(mystr [i] );
Both correct
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: How to write a for loop in C?
Permalink: http://www.quizover.com/pdf/how-to-write-a-for-loop-in-c
•
•
•
(50) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
8.1.4. Question: for(j=63 , i < 95 , i +=3) x += sqrt(j);
for(j=63 , i < 95 , i +=3) x += sqrt(j);
Please choose only one answer:
is correct
has syntax error
causes run-time error
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: using for loop in C
Permalink: http://www.quizover.com/pdf/using-for-loop-in-c
•
•
•
(51) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
8.1.5. Question: consider the following statement:
while ( 3 ) ;
consider the following statement:
while ( 3 ) ;
Please choose only one answer:
Infinite loop
Syntax error
Executes only 3 iterations
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: infinite while loop in C
Permalink: http://www.quizover.com/pdf/infinite-while-loop-in-c
•
•
•
(52) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
8.1.6. Question: What is the output of the following piece of code:
What is the output of the following piece of code:
Please choose only one answer:
Default
One
Two
Author: Yasser Ibrahim
switch(476) {
case 1: printf(“One”);break;
case 2: printf(“Two”);break;
default: printf(“Default”);break;
}
Check the answer of this question online on QuizOver.com:
Question: how to write switch statement in C?
Permalink: http://www.quizover.com/pdf/how-to-write-switch-statement-in-c
•
•
•
(53) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
8.1.7. Question: while (degree < 100 ); count+= degree;
while (degree < 100 ); count+= degree;
Please choose only one answer:
is correct and causes no runtime error
has syntax error
causes run-time error
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: how to write while loop in C?
Permalink: http://www.quizover.com/pdf/how-to-write-while-loop-in-c
•
•
•
(54) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
8.1.8. Question: while (degree < 100 ) count+= degree++;
while (degree < 100 ) count+= degree++;
Please choose only one answer:
is correct
has syntax error
causes run-time error
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: while loop in C
Permalink: http://www.quizover.com/pdf/while-loop-in-c
•
•
•
(55) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
8.1.9. Question: consider the following statement:
for( ; ; ) ;
consider the following statement:
for( ; ; ) ;
Please choose only one answer:
Depends on the compiler
Syntax error
Infinite loop
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: how to write for loop in C?
Permalink: http://www.quizover.com/pdf/how-to-write-for-loop-in-c
•
•
•
(56) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
8.1.10. Question: What is the output of the following piece of code:
What is the output of the following piece of code:
Please choose only one answer:
One
Two
TwoThree
Author: Yasser Ibrahim
switch(2) {
case 1: printf(“One”);break;
case 2: printf(“Two”);
case 3: printf(“Three”);break;
}
Check the answer of this question online on QuizOver.com:
Question: how to write switch in C?
Permalink: http://www.quizover.com/pdf/how-to-write-switch-in-c
(57) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
9. Chapter: Inputs Reading
1. Inputs Reading Questions
•
•
•
(58) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
9.1.1. Question: To get a statement from the user input in the array char s[100]:
To get a statement from the user input in the array char s[100]:
Please choose only one answer:
gets( s[100] );
gets( s[] );
gets( s );
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: How to read inputs into an array in C?
Permalink: http://www.quizover.com/pdf/how-to-read-inputs-into-an-array-in-c
•
•
•
(59) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
9.1.2. Question: To get a statement from the user input in the array
char s[100] :
To get a statement from the user input in the array
char s[100] :
Please choose only one answer:
gets( s );
scanf( "%s", s );
Both correct
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: How to read user inputs in C?
Permalink: http://www.quizover.com/pdf/how-to-read-user-inputs-in-c
•
•
•
(60) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
9.1.3. Question: scanf("%d", ;time);
scanf("%d", ;time);
Please choose only one answer:
is correct
has syntax error
causes run-time error
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: How to write C scanf?
Permalink: http://www.quizover.com/pdf/how-to-write-c-scanf
•
•
•
(61) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
9.1.4. Question: what is the best choice to input the value of variable c where:cha...
what is the best choice to input the value of variable c where:char c;
Please choose only one answer:
scanf("%d", ;c);
scanf("%f", ;c);
scanf("%c", ;c);
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: read char in C
Permalink: http://www.quizover.com/pdf/read-char-in-c
(62) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
10. Chapter: Assignement
1. Assignement Questions
•
•
•
(63) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
10.1.1. Question: To assign the value of integer x into character ch where:
int x =...
To assign the value of integer x into character ch where:
int x = 5; char ch;
Please choose only one answer:
ch = x;
ch = ascii(x);
x = ch;
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: How to cenvert between char and int in C?
Permalink: http://www.quizover.com/pdf/how-to-cenvert-between-char-and-int-in-c
(64) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
11. Chapter: Arrays
1. Arrays Questions
•
•
•
(65) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
11.1.1. Question: To declare and initialize character array:
To declare and initialize character array:
Please choose only one answer:
char s[] = { ‘a’, ‘b’ , ‘c’ };
char s[] = "abc";
both correct
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: declare char array in C
Permalink: http://www.quizover.com/pdf/declare-char-array-in-c
•
•
•
(66) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
11.1.2. Question: To declare and initialize character array :
To declare and initialize character array :
Please choose only one answer:
char s[] = { ‘a’, ‘b’ , ‘c’ };
char s[] = "abc";
both correct
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: How to declare and initialize character array in C?
Permalink: http://www.quizover.com/pdf/how-to-declare-and-initialize-character-array-in-c
•
•
•
(67) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
11.1.3. Question: float values(200) = ( 1 , 2 , 3 , 4 );
float values(200) = ( 1 , 2 , 3 , 4 );
Please choose only one answer:
is correct
has syntax error
causes run-time error
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: how to declare C arrays?
Permalink: http://www.quizover.com/pdf/how-to-declare-c-arrays
•
•
•
(68) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
11.1.4. Question: float values(200) = ( 1 , 2 , 3 , 4 );
float values(200) = ( 1 , 2 , 3 , 4 );
Please choose only one answer:
correct
syntax error
run-time error
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: Arrays declaration in C
Permalink: http://www.quizover.com/pdf/arrays-declaration-in-c
(69) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
12. Chapter: Methods and Functions
1. Methods and Functions Questions
•
•
•
(70) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
12.1.1. Question: what is the output of the following program
what is the output of the following program
Please choose only one answer:
Unknown (random value)
Zero
3000
Author: Yasser Ibrahim
main(){
int x;
printf(“%d”,x);
}
Check the answer of this question online on QuizOver.com:
Question: how to print int in C?
Permalink: http://www.quizover.com/pdf/how-to-print-int-in-c
•
•
•
(71) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
12.1.2. Question: int multiply(int x, int y) {
return x*y;
}
int multiply(int x, int y) {
return x*y;
}
Please choose only one answer:
is correct
has syntax error
causes run-time error
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: How to write C method?
Permalink: http://www.quizover.com/pdf/how-to-write-c-method
•
•
•
(72) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
12.1.3. Question: What is the output of the following program:
What is the output of the following program:
Please choose only one answer:
5
7
unknown
Author: JavaChamp Team
int change( int x ) {
x = 7; return(x);
}
main(){
int x = 5;
change(x);
printf(“%d”,x);
}
Check the answer of this question online on QuizOver.com:
Question: How to write a method in c?
Permalink: http://www.quizover.com/pdf/how-to-write-a-method-in-c
•
•
•
(73) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
12.1.4. Question: What is the output of the following program:
What is the output of the following program:
Please choose only one answer:
8
unknown
both wrong
Author: Yasser Ibrahim
int sum( int x, int y ) {
return (x + y);
}
main(){
int x = 5 , y = 3;
printf(“%d”, sum(x,y));
}
Check the answer of this question online on QuizOver.com:
Question: How to write and call method?
Permalink: http://www.quizover.com/pdf/how-to-write-and-call-method
•
•
•
(74) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
12.1.5. Question: what is the output of the following program
what is the output of the following program
Please choose only one answer:
8
unknown
both wrong
Author: JavaChamp Team
int sum( int x, int y ) {
int z = x + y;
}
main(){
int x = 5 , y = 3;
printf(“%d”, sum(x,y));
}
Check the answer of this question online on QuizOver.com:
Question: return value in c method?
Permalink: http://www.quizover.com/pdf/return-value-in-c-method
•
•
•
(75) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
12.1.6. Question: what is the output of the following program
what is the output of the following program
Please choose only one answer:
5
7
unknown
Author: JavaChamp Team
int change( int x ) {
x = 7;
}
main(){
int x = 5;
change(x);
printf(“%d”,x);
}
Check the answer of this question online on QuizOver.com:
Question: pass by value in C?
Permalink: http://www.quizover.com/pdf/pass-by-value-in-c
(76) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
13. Chapter: Identifiers and Variables
1. Identifiers and Variables Questions
•
•
•
(77) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
13.1.1. Question: Which of the following identifiers is a legal identifier:
Which of the following identifiers is a legal identifier:
Please choose only one answer:
my mark
my_mark
my-mark
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: how to declare a valid variable in C?
Permalink: http://www.quizover.com/pdf/how-to-declare-a-valid-variable-in-c
•
•
•
(78) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
13.1.2. Question: consider the following variables declaration statement:
int age,...
consider the following variables declaration statement:
int age, AGE;
Please choose only one answer:
Correct statement, the compiler uses age and AGE as completely different variables.
Correct statement, the compiler uses age and AGE as the same variable.
Wrong statement, because you can’t declare more than one variable with the same name.
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: How to declare C valid variable?
Permalink: http://www.quizover.com/pdf/how-to-declare-c-valid-variable
•
•
•
(79) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
13.1.3. Question: To define a constant ABC with value 358:
To define a constant ABC with value 358:
Please choose only one answer:
#define ABC = 358
#define ABC = 358 ;
#define ABC 358
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: how to define a constant in C?
Permalink: http://www.quizover.com/pdf/how-to-define-a-constant-in-c
•
•
•
(80) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
13.1.4. Question: The variables in C programming language:
The variables in C programming language:
Please choose only one answer:
Must be declared before being used.
Can be used without declaration
Can be used before declaration
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: variable declaration in C
Permalink: http://www.quizover.com/pdf/variable-declaration-in-c
•
•
•
(81) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
13.1.5. Question: What is the role of variables in programming languages:
What is the role of variables in programming languages:
Please choose only one answer:
Perform standard functions like printing to the screen
Data storage
Both correct
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: variable role in C
Permalink: http://www.quizover.com/pdf/variable-role-in-c
•
•
•
(82) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
13.1.6. Question: Which of the following identifiers is a legal identifier?
Which of the following identifiers is a legal identifier?
Please choose only one answer:
abc#*
#+abc
abc
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: how to declare C legal iedntifier?
Permalink: http://www.quizover.com/pdf/how-to-declare-c-legal-iedntifier
•
•
•
(83) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
13.1.7. Question: Which of the following identifiers is a legal identifier :
Which of the following identifiers is a legal identifier :
Please choose only one answer:
1abc
abc 1
abc1
Author: Yasser Ibrahim
Check the answer of this question online on QuizOver.com:
Question: lega Identifier rules in C
Permalink: http://www.quizover.com/pdf/lega-identifier-rules-in-c
(84) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
14. Chapter: Data Types
1. Data Types Questions
•
•
•
(85) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
14.1.1. Question: If MSB of a binary number is "0" then it is:
If MSB of a binary number is "0" then it is:
Please choose only one answer:
Odd number
Even number
Positive number
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: MSB in C
Permalink: http://www.quizover.com/pdf/msb-in-c
•
•
•
(86) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
14.1.2. Question: what is the best choice to store the number of university students:
what is the best choice to store the number of university students:
Please choose only one answer:
char n = 20000;
float n = 20000;
int n = 20000;
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: Data types in C
Permalink: http://www.quizover.com/pdf/data-types-in-c
•
•
•
(87) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
14.1.3. Question: If LSB of a binary number is "0" then it is:
If LSB of a binary number is "0" then it is:
Please choose only one answer:
Positive number
Even number
Odd number
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: LSB in C
Permalink: http://www.quizover.com/pdf/lsb-in-c
•
•
•
(88) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
14.1.4. Question: The highest digit in any number system equals:
The highest digit in any number system equals:
Please choose only one answer:
Zero
Base - 1
Base + 1
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: max value in number system
Permalink: http://www.quizover.com/pdf/max-value-in-number-system
•
•
•
(89) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
14.1.5. Question: what is the storage size of the float data type (float)?
what is the storage size of the float data type (float)?
Please choose only one answer:
1 byte
2 byte
4 byte
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: float storage size in C
Permalink: http://www.quizover.com/pdf/float-storage-size-in-c
•
•
•
(90) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
14.1.6. Question: what is the best choice to store the natural number PI = 3.1459
what is the best choice to store the natural number PI = 3.1459
Please choose only one answer:
int pi = 3.1459;
char pi = 3.1459;
float pi = 3.1459;
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: different C data types
Permalink: http://www.quizover.com/pdf/different-c-data-types
•
•
•
(91) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
14.1.7. Question: what is the storage size of the integer data type (char)?
what is the storage size of the integer data type (char)?
Please choose only one answer:
1 byte
2 byte
4 byte
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: char storage size in C
Permalink: http://www.quizover.com/pdf/char-storage-size-in-c
•
•
•
(92) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
14.1.8. Question: what is the storage size of the float data type (int)?
what is the storage size of the float data type (int)?
Please choose only one answer:
1 byte
2 byte
4 byte
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: int storage size in C
Permalink: http://www.quizover.com/pdf/int-storage-size-in-c
•
•
•
(93) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
14.1.9. Question: to assign the value of integer x into character ch where:
int x = ...
to assign the value of integer x into character ch where:
int x = 5;
char ch;
Please choose only one answer:
ch = x;
ch = ascii(x);
x = ch;
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: how to assign int into char in C?
Permalink: http://www.quizover.com/pdf/how-to-assign-int-into-char-in-c
(94) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
15. Chapter: Strings
1. Strings Questions
•
•
•
(95) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
15.1.1. Question: To copy a string into another, given:
char s1[30] = "xyz", s2[20];
To copy a string into another, given:
char s1[30] = "xyz", s2[20];
Please choose only one answer:
s2 = s1;
strcpy(s2,s1);
Both wrong
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: How to copy a string into another in C?
Permalink: http://www.quizover.com/pdf/how-to-copy-a-string-into-another-in-c
•
•
•
(96) Powered by QuizOver.com - http://www.quizover.com
QuizOver.com is the leading online quiz & exam creator
Copyright (c) 2009-2014 all rights reserved
15.1.2. Question: to concatenate two strings into third string, given :
char s1[30] ...
to concatenate two strings into third string, given :
char s1[30] = "hi", s2[20] = "world", s3[10];
Please choose only one answer:
s3 = s1 + s2;
strcpy(s3,s1);strcat(s3,s2);
s3 = strcat(s1,s2);
Author: JavaChamp Team
Check the answer of this question online on QuizOver.com:
Question: how to concatenate strings in C?
Permalink: http://www.quizover.com/pdf/how-to-concatenate-strings-in-c

Mais conteúdo relacionado

Destaque

SharePoint 2010 Data View webparts - Advanced editing methods
SharePoint 2010 Data View webparts - Advanced editing methodsSharePoint 2010 Data View webparts - Advanced editing methods
SharePoint 2010 Data View webparts - Advanced editing methodsOrbit One - We create coherence
 
Coches Fantasticos
Coches FantasticosCoches Fantasticos
Coches Fantasticosjosevlc
 
Angles In Life
Angles In LifeAngles In Life
Angles In Lifeguest07d0a
 
Open Space Technology progetto Sbilanciati e dì la tua!
Open Space Technology progetto Sbilanciati e dì la tua!Open Space Technology progetto Sbilanciati e dì la tua!
Open Space Technology progetto Sbilanciati e dì la tua!Conetica
 
NEDMA15: How to Optimize Email for all Inboxes in a Mobile World - Justine Jo...
NEDMA15: How to Optimize Email for all Inboxes in a Mobile World - Justine Jo...NEDMA15: How to Optimize Email for all Inboxes in a Mobile World - Justine Jo...
NEDMA15: How to Optimize Email for all Inboxes in a Mobile World - Justine Jo...New England Direct Marketing Association
 
Prueba
PruebaPrueba
Pruebajhon
 
Solving Business Problems for Our Clients, Each Step of the Way
Solving Business Problems for Our Clients, Each Step of the WaySolving Business Problems for Our Clients, Each Step of the Way
Solving Business Problems for Our Clients, Each Step of the WayKevin Hoffman
 
CEFPI Wash DC Sept 29, 2009 Closing Keynote Presentation
CEFPI Wash DC Sept 29, 2009 Closing Keynote PresentationCEFPI Wash DC Sept 29, 2009 Closing Keynote Presentation
CEFPI Wash DC Sept 29, 2009 Closing Keynote PresentationChristian Long
 
everdo for ad
everdo for adeverdo for ad
everdo for adzopen
 
Debt Dr Newsletter December 2010
Debt Dr Newsletter December 2010Debt Dr Newsletter December 2010
Debt Dr Newsletter December 2010drazza65
 

Destaque (20)

Учебные форматы МАСП
Учебные форматы МАСПУчебные форматы МАСП
Учебные форматы МАСП
 
Toman Hall Of Fame
Toman Hall Of FameToman Hall Of Fame
Toman Hall Of Fame
 
SharePoint 2010 Data View webparts - Advanced editing methods
SharePoint 2010 Data View webparts - Advanced editing methodsSharePoint 2010 Data View webparts - Advanced editing methods
SharePoint 2010 Data View webparts - Advanced editing methods
 
การนำชมห้องสมุด
การนำชมห้องสมุดการนำชมห้องสมุด
การนำชมห้องสมุด
 
Coches Fantasticos
Coches FantasticosCoches Fantasticos
Coches Fantasticos
 
About Blogs
About BlogsAbout Blogs
About Blogs
 
Angles In Life
Angles In LifeAngles In Life
Angles In Life
 
F15 Shuttle
F15 ShuttleF15 Shuttle
F15 Shuttle
 
Open Space Technology progetto Sbilanciati e dì la tua!
Open Space Technology progetto Sbilanciati e dì la tua!Open Space Technology progetto Sbilanciati e dì la tua!
Open Space Technology progetto Sbilanciati e dì la tua!
 
NEDMA15: How to Optimize Email for all Inboxes in a Mobile World - Justine Jo...
NEDMA15: How to Optimize Email for all Inboxes in a Mobile World - Justine Jo...NEDMA15: How to Optimize Email for all Inboxes in a Mobile World - Justine Jo...
NEDMA15: How to Optimize Email for all Inboxes in a Mobile World - Justine Jo...
 
Bloque cierre tfa
Bloque cierre tfaBloque cierre tfa
Bloque cierre tfa
 
Prueba
PruebaPrueba
Prueba
 
Solving Business Problems for Our Clients, Each Step of the Way
Solving Business Problems for Our Clients, Each Step of the WaySolving Business Problems for Our Clients, Each Step of the Way
Solving Business Problems for Our Clients, Each Step of the Way
 
PO
POPO
PO
 
CEFPI Wash DC Sept 29, 2009 Closing Keynote Presentation
CEFPI Wash DC Sept 29, 2009 Closing Keynote PresentationCEFPI Wash DC Sept 29, 2009 Closing Keynote Presentation
CEFPI Wash DC Sept 29, 2009 Closing Keynote Presentation
 
everdo for ad
everdo for adeverdo for ad
everdo for ad
 
Akka
AkkaAkka
Akka
 
iPhoneography
iPhoneographyiPhoneography
iPhoneography
 
Debt Dr Newsletter December 2010
Debt Dr Newsletter December 2010Debt Dr Newsletter December 2010
Debt Dr Newsletter December 2010
 
Projeto Apc Vivian
Projeto Apc VivianProjeto Apc Vivian
Projeto Apc Vivian
 

Semelhante a C Programming Language Quiz

Assembly Programming Quiz
Assembly Programming QuizAssembly Programming Quiz
Assembly Programming QuizYasser Ibrahim
 
Oracle Certified Professional Java Programmer
Oracle Certified Professional Java Programmer Oracle Certified Professional Java Programmer
Oracle Certified Professional Java Programmer Yasser Ibrahim
 
Sun Certified Enterprise Architect Scea Mock Exam
Sun Certified Enterprise Architect Scea Mock ExamSun Certified Enterprise Architect Scea Mock Exam
Sun Certified Enterprise Architect Scea Mock ExamYasser Ibrahim
 
Salesforce Development Lifecycle and Deployment Architect | How to Prepare
Salesforce Development Lifecycle and Deployment Architect | How to PrepareSalesforce Development Lifecycle and Deployment Architect | How to Prepare
Salesforce Development Lifecycle and Deployment Architect | How to PrepareAdinaCoyle
 
Real IBM C1000-155 Exam Questions: Analysis and Answers Explained
Real IBM C1000-155 Exam Questions: Analysis and Answers ExplainedReal IBM C1000-155 Exam Questions: Analysis and Answers Explained
Real IBM C1000-155 Exam Questions: Analysis and Answers ExplainedKatyMorgan10
 
A Step-by-Step IBM C1000-056 Certification Prep
A Step-by-Step IBM C1000-056 Certification PrepA Step-by-Step IBM C1000-056 Certification Prep
A Step-by-Step IBM C1000-056 Certification PrepKatyMorgan10
 
Встреча "QA: в каких направлениях может найти себя тестировщик?"
Встреча "QA: в каких направлениях может найти себя тестировщик?"Встреча "QA: в каких направлениях может найти себя тестировщик?"
Встреча "QA: в каких направлениях может найти себя тестировщик?"GoIT
 
Using The .NET Framework
Using The .NET FrameworkUsing The .NET Framework
Using The .NET FrameworkLearnNowOnline
 
Continuous Testing Meets the Classroom at Code.org
Continuous Testing Meets the Classroom at Code.orgContinuous Testing Meets the Classroom at Code.org
Continuous Testing Meets the Classroom at Code.orgSauce Labs
 
Modern Software Practices - by Damon Poole
Modern Software Practices - by Damon PooleModern Software Practices - by Damon Poole
Modern Software Practices - by Damon PooleSynerzip
 
[LATEST] Start Your Career with ServiceNow CIS-VR Certification
[LATEST] Start Your Career with ServiceNow CIS-VR Certification[LATEST] Start Your Career with ServiceNow CIS-VR Certification
[LATEST] Start Your Career with ServiceNow CIS-VR CertificationMeghna Arora
 
SAP C_CPE_14: Latest Questions and Exam Guide
SAP C_CPE_14: Latest Questions and Exam GuideSAP C_CPE_14: Latest Questions and Exam Guide
SAP C_CPE_14: Latest Questions and Exam Guidecarinachiara1
 
Building Windows 8 Metro Style Applications Using JavaScript and HTML5
Building Windows 8 Metro Style Applications Using JavaScript and HTML5Building Windows 8 Metro Style Applications Using JavaScript and HTML5
Building Windows 8 Metro Style Applications Using JavaScript and HTML5LearnNowOnline
 
70 534 microsoft real exam
70 534 microsoft real exam70 534 microsoft real exam
70 534 microsoft real examadam_jhon
 
9 a0 056
9 a0 0569 a0 056
9 a0 056Almo56
 
[Webinar] Continuous Testing Done Right: Test Automation at the World's Leadi...
[Webinar] Continuous Testing Done Right: Test Automation at the World's Leadi...[Webinar] Continuous Testing Done Right: Test Automation at the World's Leadi...
[Webinar] Continuous Testing Done Right: Test Automation at the World's Leadi...Applitools
 
Istqb iseb bh0-010-ajoy_singha
Istqb iseb bh0-010-ajoy_singhaIstqb iseb bh0-010-ajoy_singha
Istqb iseb bh0-010-ajoy_singhaTestingGeeks
 
Microsoft MCPD 70-492 it examen dumps
Microsoft MCPD 70-492 it examen dumpsMicrosoft MCPD 70-492 it examen dumps
Microsoft MCPD 70-492 it examen dumpslilylucy
 
KnockOutJS with ASP.NET MVC
KnockOutJS with ASP.NET MVCKnockOutJS with ASP.NET MVC
KnockOutJS with ASP.NET MVCLearnNowOnline
 

Semelhante a C Programming Language Quiz (20)

Assembly Programming Quiz
Assembly Programming QuizAssembly Programming Quiz
Assembly Programming Quiz
 
Oracle Certified Professional Java Programmer
Oracle Certified Professional Java Programmer Oracle Certified Professional Java Programmer
Oracle Certified Professional Java Programmer
 
Sun Certified Enterprise Architect Scea Mock Exam
Sun Certified Enterprise Architect Scea Mock ExamSun Certified Enterprise Architect Scea Mock Exam
Sun Certified Enterprise Architect Scea Mock Exam
 
Scjp 16-pdf-e book-exam-questions
Scjp 16-pdf-e book-exam-questionsScjp 16-pdf-e book-exam-questions
Scjp 16-pdf-e book-exam-questions
 
Salesforce Development Lifecycle and Deployment Architect | How to Prepare
Salesforce Development Lifecycle and Deployment Architect | How to PrepareSalesforce Development Lifecycle and Deployment Architect | How to Prepare
Salesforce Development Lifecycle and Deployment Architect | How to Prepare
 
Real IBM C1000-155 Exam Questions: Analysis and Answers Explained
Real IBM C1000-155 Exam Questions: Analysis and Answers ExplainedReal IBM C1000-155 Exam Questions: Analysis and Answers Explained
Real IBM C1000-155 Exam Questions: Analysis and Answers Explained
 
A Step-by-Step IBM C1000-056 Certification Prep
A Step-by-Step IBM C1000-056 Certification PrepA Step-by-Step IBM C1000-056 Certification Prep
A Step-by-Step IBM C1000-056 Certification Prep
 
Встреча "QA: в каких направлениях может найти себя тестировщик?"
Встреча "QA: в каких направлениях может найти себя тестировщик?"Встреча "QA: в каких направлениях может найти себя тестировщик?"
Встреча "QA: в каких направлениях может найти себя тестировщик?"
 
Using The .NET Framework
Using The .NET FrameworkUsing The .NET Framework
Using The .NET Framework
 
Continuous Testing Meets the Classroom at Code.org
Continuous Testing Meets the Classroom at Code.orgContinuous Testing Meets the Classroom at Code.org
Continuous Testing Meets the Classroom at Code.org
 
Modern Software Practices - by Damon Poole
Modern Software Practices - by Damon PooleModern Software Practices - by Damon Poole
Modern Software Practices - by Damon Poole
 
[LATEST] Start Your Career with ServiceNow CIS-VR Certification
[LATEST] Start Your Career with ServiceNow CIS-VR Certification[LATEST] Start Your Career with ServiceNow CIS-VR Certification
[LATEST] Start Your Career with ServiceNow CIS-VR Certification
 
SAP C_CPE_14: Latest Questions and Exam Guide
SAP C_CPE_14: Latest Questions and Exam GuideSAP C_CPE_14: Latest Questions and Exam Guide
SAP C_CPE_14: Latest Questions and Exam Guide
 
Building Windows 8 Metro Style Applications Using JavaScript and HTML5
Building Windows 8 Metro Style Applications Using JavaScript and HTML5Building Windows 8 Metro Style Applications Using JavaScript and HTML5
Building Windows 8 Metro Style Applications Using JavaScript and HTML5
 
70 534 microsoft real exam
70 534 microsoft real exam70 534 microsoft real exam
70 534 microsoft real exam
 
9 a0 056
9 a0 0569 a0 056
9 a0 056
 
[Webinar] Continuous Testing Done Right: Test Automation at the World's Leadi...
[Webinar] Continuous Testing Done Right: Test Automation at the World's Leadi...[Webinar] Continuous Testing Done Right: Test Automation at the World's Leadi...
[Webinar] Continuous Testing Done Right: Test Automation at the World's Leadi...
 
Istqb iseb bh0-010-ajoy_singha
Istqb iseb bh0-010-ajoy_singhaIstqb iseb bh0-010-ajoy_singha
Istqb iseb bh0-010-ajoy_singha
 
Microsoft MCPD 70-492 it examen dumps
Microsoft MCPD 70-492 it examen dumpsMicrosoft MCPD 70-492 it examen dumps
Microsoft MCPD 70-492 it examen dumps
 
KnockOutJS with ASP.NET MVC
KnockOutJS with ASP.NET MVCKnockOutJS with ASP.NET MVC
KnockOutJS with ASP.NET MVC
 

Último

Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 

Último (20)

Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 

C Programming Language Quiz

  • 1. Cover Page C Programming Language Author: JavaChamp Team Copyright (c) 2010-2014
  • 2. (2) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved About Us Powered by QuizOver.com The Leading Online Quiz & Exam Creator Create, Share, and Discover Quizzes & Exams http://www.quizover.com
  • 3. (3) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved Disclaimer All services and content of QuizOver.com are provided under QuizOver.com terms of use on an "as is" basis, without warranty of any kind, either expressed or implied, including, without limitation, warranties that the provided services and content are free of defects, merchantable, fit for a particular purpose or non-infringing. The entire risk as to the quality and performance of the provided services and content is with you. In no event shall QuizOver.com be liable for any damages whatsoever arising out of or in connection with the use or performance of the services. Should any provided services and content prove defective in any respect, you (not the initial developer, author or any other contributor) assume the cost of any necessary servicing, repair or correction. This disclaimer of warranty constitutes an essential part of these "terms of use". No use of any services and content of QuizOver.com is authorized hereunder except under this disclaimer. The detailed and up to date "terms of use" of QuizOver.com can be found under: http://www.QuizOver.com/public/termsOfUse.xhtml
  • 4. (4) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved eBook Content License Creative Commons License Attribution-NonCommercial-NoDerivs 3.0 Unported (CC BY-NC-ND 3.0) http://creativecommons.org/licenses/by-nc-nd/3.0/ You are free to: Share: copy and redistribute the material in any medium or format The licensor cannot revoke these freedoms as long as you follow the license terms. Under the following terms: Attribution: You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. NonCommercial: You may not use the material for commercial purposes. NoDerivatives: If you remix, transform, or build upon the material, you may not distribute the modified material. No additional restrictions: You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
  • 5. - - - - - - - - - - - - (5) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved Table of Contents Quiz Permalink: http://www.quizover.com/pdf/c-certification-questions Author Profile: http://www.quizover.com/user/profile/Java.Champ 1. C Programming Language Basics Arithmetic operators Logical operators and Conditions Print out Statements Flow Control Inputs Reading Assignement Arrays Methods and Functions Identifiers and Variables Data Types Strings
  • 6. (6) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 4. Chapter: Basics 1. Basics Questions
  • 7. • • • (7) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 4.1.1. Question: The C programming Language is The C programming Language is Please choose only one answer: Low level language High level language Machine language Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: c language Permalink: http://www.quizover.com/pdf/c-language
  • 8. • • • (8) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 4.1.2. Question: To include a header file in a C program: To include a header file in a C program: Please choose only one answer: #include "stdio.h" ; #include "stdio.h" Both correct Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: include in C Permalink: http://www.quizover.com/pdf/include-in-c
  • 9. • • • (9) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 4.1.3. Question: the #include keyword in c language is: the #include keyword in c language is: Please choose only one answer: executive c statement compiler directive both correct Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: how to include in C? Permalink: http://www.quizover.com/pdf/how-to-include-in-c
  • 10. • • • (10) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 4.1.4. Question: To include a header file in a C program: To include a header file in a C program: Please choose only one answer: #include "stdio.h" #include <stdio.h> Both correct Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: how to include a header in C? Permalink: http://www.quizover.com/pdf/how-to-include-a-header-in-c
  • 11. • • • (11) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 4.1.5. Question: The main() function is: The main() function is: Please choose only one answer: to write output to the screen the program entry point Both correct Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: main function in C Permalink: http://www.quizover.com/pdf/main-function-in-c
  • 12. • • • (12) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 4.1.6. Question: How to write comments in C language? How to write comments in C language? Please choose only one answer: Use /* ….. */ for multi-line comments Use // for single-line comments Both correct Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: How to write comments in C language? Permalink: http://www.quizover.com/pdf/how-to-write-comments-in-c-language
  • 13. • • • (13) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 4.1.7. Question: The computer performs computations internally using The computer performs computations internally using Please choose only one answer: Binary number system Decimal number system Hexadec. number system Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: Binary number system Permalink: http://www.quizover.com/pdf/binary-number-system
  • 14. (14) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 5. Chapter: Arithmetic operators 1. Arithmetic operators Questions
  • 15. • • • (15) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 5.1.1. Question: To compute the square of the value in variable a: To compute the square of the value in variable a: Please choose only one answer: b = a^2; z = a * a; both correct Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: How to square a value in C? Permalink: http://www.quizover.com/pdf/how-to-square-a-value-in-c
  • 16. • • • (16) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 5.1.2. Question: The value of z in the following statement: int x = 9 , y = 2 , z... The value of z in the following statement: int x = 9 , y = 2 , z = x / y; Please choose only one answer: 4 4.5 5 Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: arithmetic operators in C Permalink: http://www.quizover.com/pdf/arithmetic-operators-in-c
  • 17. • • • (17) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 5.1.3. Question: choose the proper function to compute the cubic value of any input ... choose the proper function to compute the cubic value of any input integer n: Please choose only one answer: int cube(void) { return (n * n * n) ; } int cube(int n) { return (n * n * n) ; } void cube(int n) { return (n * n * n) ; } Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: write method in C Permalink: http://www.quizover.com/pdf/write-method-in-c
  • 18. • • • (18) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 5.1.4. Question: what is the output of the following piece of code what is the output of the following piece of code Please choose only one answer: 3 4 5 Author: JavaChamp Team int a = 1, b = 2, c; c = a-- + b--; printf(“%d”,c); Check the answer of this question online on QuizOver.com: Question: decrementation in C Permalink: http://www.quizover.com/pdf/decrementation-in-c
  • 19. • • • (19) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 5.1.5. Question: What is the output of the following piece of code? What is the output of the following piece of code? Please choose only one answer: 8 9 10 Author: JavaChamp Team int x = 3, y = 5, z; z = x + ++y; printf(“%d”,z); Check the answer of this question online on QuizOver.com: Question: How to increment int in C? Permalink: http://www.quizover.com/pdf/how-to-increment-int-in-c
  • 20. • • • (20) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 5.1.6. Question: A short-cut for the statement: x = x + 1; A short-cut for the statement: x = x + 1; Please choose only one answer: x += 1; x++; Both correct Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: post increment in C Permalink: http://www.quizover.com/pdf/post-increment-in-c
  • 21. • • • (21) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 5.1.7. Question: what is the output of the following piece of code int z = 23 % 3; what is the output of the following piece of code int z = 23 % 3; Please choose only one answer: 7 2 30 Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: remainder operator in C Permalink: http://www.quizover.com/pdf/remainder-operator-in-c
  • 22. • • • (22) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 5.1.8. Question: To compute the cube of the value in variable x: To compute the cube of the value in variable x: Please choose only one answer: c = x * x * x; c = x^3; Both correct Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: C arithmetic operators Permalink: http://www.quizover.com/pdf/c-arithmetic-operators
  • 23. • • • (23) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 5.1.9. Question: what is the output of the following piece of code: what is the output of the following piece of code: Please choose only one answer: 1 2 3 Author: JavaChamp Team int c = 19 % 4; Check the answer of this question online on QuizOver.com: Question: How to use Remainder operator in C? Permalink: http://www.quizover.com/pdf/how-to-use-remainder-operator-in-c
  • 24. • • • (24) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 5.1.10. Question: printf("%f", sqrt(sqrt (x))); printf("%f", sqrt(sqrt (x))); Please choose only one answer: is correct has syntax error causes run-time error Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: How sqrt method works in C? Permalink: http://www.quizover.com/pdf/how-sqrt-method-works-in-c
  • 25. • • • (25) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 5.1.11. Question: What is the output of the following piece of code: What is the output of the following piece of code: Please choose only one answer: 8 9 10 Author: JavaChamp Team int x = 3, y = 5, z; z = ++x + ++y; printf(“%d”,z); Check the answer of this question online on QuizOver.com: Question: How to increment in C? Permalink: http://www.quizover.com/pdf/how-to-increment-in-c
  • 26. • • • (26) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 5.1.12. Question: What is the output of the following piece of code? What is the output of the following piece of code? Please choose only one answer: 8 9 10 Author: JavaChamp Team int x = 3, y = 5, z ; z = x++ + ++y; printf(“%d”,z); Check the answer of this question online on QuizOver.com: Question: How incrementation works in C? Permalink: http://www.quizover.com/pdf/how-incrementation-works-in-c
  • 27. (27) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 6. Chapter: Logical operators and Conditions 1. Logical operators and Conditions Questions
  • 28. • • • • (28) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 6.1.1. Question: What is the result of compiling and running the following code? What is the result of compiling and running the following code? Please choose only one answer: no output is produced c is smaller than C c is greater than C compilation error Author: Yasser Ibrahim public static void main(String[] args) { char c = 'c'; String result = (c > 'C') ? "c is greater than C " : "c is smaller than C"; System.out.print(result); } Check the answer of this question online on QuizOver.com: Question: conditional operator in Java Permalink: http://www.quizover.com/pdf/conditional-operator-in-java
  • 29. • • • (29) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 6.1.2. Question: The operator = in the Boolean condition if( age = 3 ) The operator = in the Boolean condition if( age = 3 ) Please choose only one answer: assignment operator check for equality condition operator both correct Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: How to write if statement in C? Permalink: http://www.quizover.com/pdf/how-to-write-if-statement-in-c
  • 30. • • • (30) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 6.1.3. Question: what is the result of the condition ( x ;; y ) given the declaratio... what is the result of the condition ( x ;; y ) given the declaration : int x = 1 , y = 2 ; Please choose only one answer: false unknown true Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: logical AND operator in C Permalink: http://www.quizover.com/pdf/logical-and-operator-in-c
  • 31. • • • (31) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 6.1.4. Question: consider the following statement: if( 7 ) printf("CHECK"); consider the following statement: if( 7 ) printf("CHECK"); Please choose only one answer: the printf() statement will always be executed the printf() statement will never be executed Depends on the compiler Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: how conditions evaluated in C Permalink: http://www.quizover.com/pdf/how-conditions-evaluated-in-c
  • 32. • • • (32) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 6.1.5. Question: What is the result of the condition ( a ;; b ) given the following ... What is the result of the condition ( a ;; b ) given the following declaration : Please choose only one answer: true false unknown Author: JavaChamp Team int a = 3 , b = 1 ; Check the answer of this question online on QuizOver.com: Question: How to evaluate conditions in C? Permalink: http://www.quizover.com/pdf/how-to-evaluate-conditions-in-c
  • 33. • • • (33) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 6.1.6. Question: the ; operator in the Boolean condition if( (x>5) ; ( y < 9 ) ) &h... the ; operator in the Boolean condition if( (x>5) ; ( y < 9 ) ) … Please choose only one answer: bit-wise AND operator address operator logical AND operator Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: bit-wise AND operator in C Permalink: http://www.quizover.com/pdf/bitwise-and-operator-in-c
  • 34. • • • (34) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 6.1.7. Question: what is the result of the condition ( x ; y ) given the declaration... what is the result of the condition ( x ; y ) given the declaration: int x = 1 , y = 2 ; Please choose only one answer: true unknown false Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: bit-wise AND C operator Permalink: http://www.quizover.com/pdf/bitwise-and-c-operator
  • 35. • • • (35) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 6.1.8. Question: To find the max value between x,y : To find the max value between x,y : Please choose only one answer: if ( x > y ) max = x; else max = y; max = y; if ( x > y ) max = x; both correct Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: How to find max value in C? Permalink: http://www.quizover.com/pdf/how-to-find-max-value-in-c
  • 36. • • • (36) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 6.1.9. Question: What is the output of the following piece of code: What is the output of the following piece of code: Please choose only one answer: no output 7 3 Author: JavaChamp Team int x = 7; if ( x = 3 ) printf( “%d“ , x); Check the answer of this question online on QuizOver.com: Question: How to evaluate C conditions? Permalink: http://www.quizover.com/pdf/how-to-evaluate-c-conditions
  • 37. • • • (37) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 6.1.10. Question: if ( 16 = m ) printf("m is 16"); if ( 16 = m ) printf("m is 16"); Please choose only one answer: is correct has syntax error causes run-time error Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: How to write C if statement? Permalink: http://www.quizover.com/pdf/how-to-write-c-if-statement
  • 38. (38) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 7. Chapter: Print out Statements 1. Print out Statements Questions
  • 39. • • • (39) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 7.1.1. Question: To write statement hi world: To write statement hi world: Please choose only one answer: puts(‘hi world’); puts("hi world"); Both correct Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: How to print out a String in C? Permalink: http://www.quizover.com/pdf/how-to-print-out-a-string-in-c
  • 40. • • • (40) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 7.1.2. Question: To write the ASCII code of char ch=’x’; To write the ASCII code of char ch=’x’; Please choose only one answer: printf("%d",ch); putch(ch); printf("%d", ascii(ch)); Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: How to print out ASCII in c? Permalink: http://www.quizover.com/pdf/how-to-print-out-ascii-in-c
  • 41. • • • (41) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 7.1.3. Question: To write the value of x where: double x = 0.12345; To write the value of x where: double x = 0.12345; Please choose only one answer: printf( "%lf " , x); printf( "%f " , x); printf( "%ld " , x); Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: how to print double in C? Permalink: http://www.quizover.com/pdf/how-to-print-double-in-c
  • 42. • • • (42) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 7.1.4. Question: To print character a: To print character a: Please choose only one answer: putch("a"); putch(‘a’); Both correct Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: How to print out a character in C? Permalink: http://www.quizover.com/pdf/how-to-print-out-a-character-in-c
  • 43. • • • (43) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 7.1.5. Question: what is the best choice to print the value of variable x where: ... what is the best choice to print the value of variable x where: int x = 123; Please choose only one answer: printf("%d",x); printf("%c",x); printf("%f",x); Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: print int in C Permalink: http://www.quizover.com/pdf/print-int-in-c
  • 44. • • • (44) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 7.1.6. Question: what is the best choice to print the value of variable y where:flo... what is the best choice to print the value of variable y where:float y = 2.34; Please choose only one answer: printf("%d",y); printf("%f",y); printf("%c",y); Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: printf float in C Permalink: http://www.quizover.com/pdf/printf-float-in-c
  • 45. • • • (45) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 7.1.7. Question: To write string char str[30] = "C Language"; What to use? To write string char str[30] = "C Language"; What to use? Please choose only one answer: printf("%s",str); puts(str); Both correct Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: How to print out in c? Permalink: http://www.quizover.com/pdf/how-to-print-out-in-c
  • 46. (46) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 8. Chapter: Flow Control 1. Flow Control Questions
  • 47. • • • (47) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 8.1.1. Question: consider the following statement: while ( 1 ) ; consider the following statement: while ( 1 ) ; Please choose only one answer: Infinite loop Syntax error Depends on the compiler Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: infinite loop in C Permalink: http://www.quizover.com/pdf/infinite-loop-in-c
  • 48. • • • (48) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 8.1.2. Question: What is the output of the following piece of code: What is the output of the following piece of code: Please choose only one answer: One Two TwoThree Author: Yasser Ibrahim switch(2) { case 1: printf(“One”);break; case 2: printf(“Two”);break; case 3: printf(“Three”);break; } Check the answer of this question online on QuizOver.com: Question: how switch works in C? Permalink: http://www.quizover.com/pdf/how-switch-works-in-c
  • 49. • • • (49) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 8.1.3. Question: To write character array char mystr[50] = "string" , i = 0; To write character array char mystr[50] = "string" , i = 0; Please choose only one answer: len = strlen (mystr); for ( i = 0 ; i < len ; i++ ) putch(mystr [i] ); for ( i = 0 ; i < 50 ; i++ ) putch(mystr [i] ); Both correct Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: How to write a for loop in C? Permalink: http://www.quizover.com/pdf/how-to-write-a-for-loop-in-c
  • 50. • • • (50) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 8.1.4. Question: for(j=63 , i < 95 , i +=3) x += sqrt(j); for(j=63 , i < 95 , i +=3) x += sqrt(j); Please choose only one answer: is correct has syntax error causes run-time error Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: using for loop in C Permalink: http://www.quizover.com/pdf/using-for-loop-in-c
  • 51. • • • (51) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 8.1.5. Question: consider the following statement: while ( 3 ) ; consider the following statement: while ( 3 ) ; Please choose only one answer: Infinite loop Syntax error Executes only 3 iterations Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: infinite while loop in C Permalink: http://www.quizover.com/pdf/infinite-while-loop-in-c
  • 52. • • • (52) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 8.1.6. Question: What is the output of the following piece of code: What is the output of the following piece of code: Please choose only one answer: Default One Two Author: Yasser Ibrahim switch(476) { case 1: printf(“One”);break; case 2: printf(“Two”);break; default: printf(“Default”);break; } Check the answer of this question online on QuizOver.com: Question: how to write switch statement in C? Permalink: http://www.quizover.com/pdf/how-to-write-switch-statement-in-c
  • 53. • • • (53) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 8.1.7. Question: while (degree < 100 ); count+= degree; while (degree < 100 ); count+= degree; Please choose only one answer: is correct and causes no runtime error has syntax error causes run-time error Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: how to write while loop in C? Permalink: http://www.quizover.com/pdf/how-to-write-while-loop-in-c
  • 54. • • • (54) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 8.1.8. Question: while (degree < 100 ) count+= degree++; while (degree < 100 ) count+= degree++; Please choose only one answer: is correct has syntax error causes run-time error Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: while loop in C Permalink: http://www.quizover.com/pdf/while-loop-in-c
  • 55. • • • (55) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 8.1.9. Question: consider the following statement: for( ; ; ) ; consider the following statement: for( ; ; ) ; Please choose only one answer: Depends on the compiler Syntax error Infinite loop Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: how to write for loop in C? Permalink: http://www.quizover.com/pdf/how-to-write-for-loop-in-c
  • 56. • • • (56) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 8.1.10. Question: What is the output of the following piece of code: What is the output of the following piece of code: Please choose only one answer: One Two TwoThree Author: Yasser Ibrahim switch(2) { case 1: printf(“One”);break; case 2: printf(“Two”); case 3: printf(“Three”);break; } Check the answer of this question online on QuizOver.com: Question: how to write switch in C? Permalink: http://www.quizover.com/pdf/how-to-write-switch-in-c
  • 57. (57) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 9. Chapter: Inputs Reading 1. Inputs Reading Questions
  • 58. • • • (58) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 9.1.1. Question: To get a statement from the user input in the array char s[100]: To get a statement from the user input in the array char s[100]: Please choose only one answer: gets( s[100] ); gets( s[] ); gets( s ); Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: How to read inputs into an array in C? Permalink: http://www.quizover.com/pdf/how-to-read-inputs-into-an-array-in-c
  • 59. • • • (59) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 9.1.2. Question: To get a statement from the user input in the array char s[100] : To get a statement from the user input in the array char s[100] : Please choose only one answer: gets( s ); scanf( "%s", s ); Both correct Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: How to read user inputs in C? Permalink: http://www.quizover.com/pdf/how-to-read-user-inputs-in-c
  • 60. • • • (60) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 9.1.3. Question: scanf("%d", ;time); scanf("%d", ;time); Please choose only one answer: is correct has syntax error causes run-time error Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: How to write C scanf? Permalink: http://www.quizover.com/pdf/how-to-write-c-scanf
  • 61. • • • (61) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 9.1.4. Question: what is the best choice to input the value of variable c where:cha... what is the best choice to input the value of variable c where:char c; Please choose only one answer: scanf("%d", ;c); scanf("%f", ;c); scanf("%c", ;c); Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: read char in C Permalink: http://www.quizover.com/pdf/read-char-in-c
  • 62. (62) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 10. Chapter: Assignement 1. Assignement Questions
  • 63. • • • (63) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 10.1.1. Question: To assign the value of integer x into character ch where: int x =... To assign the value of integer x into character ch where: int x = 5; char ch; Please choose only one answer: ch = x; ch = ascii(x); x = ch; Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: How to cenvert between char and int in C? Permalink: http://www.quizover.com/pdf/how-to-cenvert-between-char-and-int-in-c
  • 64. (64) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 11. Chapter: Arrays 1. Arrays Questions
  • 65. • • • (65) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 11.1.1. Question: To declare and initialize character array: To declare and initialize character array: Please choose only one answer: char s[] = { ‘a’, ‘b’ , ‘c’ }; char s[] = "abc"; both correct Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: declare char array in C Permalink: http://www.quizover.com/pdf/declare-char-array-in-c
  • 66. • • • (66) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 11.1.2. Question: To declare and initialize character array : To declare and initialize character array : Please choose only one answer: char s[] = { ‘a’, ‘b’ , ‘c’ }; char s[] = "abc"; both correct Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: How to declare and initialize character array in C? Permalink: http://www.quizover.com/pdf/how-to-declare-and-initialize-character-array-in-c
  • 67. • • • (67) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 11.1.3. Question: float values(200) = ( 1 , 2 , 3 , 4 ); float values(200) = ( 1 , 2 , 3 , 4 ); Please choose only one answer: is correct has syntax error causes run-time error Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: how to declare C arrays? Permalink: http://www.quizover.com/pdf/how-to-declare-c-arrays
  • 68. • • • (68) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 11.1.4. Question: float values(200) = ( 1 , 2 , 3 , 4 ); float values(200) = ( 1 , 2 , 3 , 4 ); Please choose only one answer: correct syntax error run-time error Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: Arrays declaration in C Permalink: http://www.quizover.com/pdf/arrays-declaration-in-c
  • 69. (69) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 12. Chapter: Methods and Functions 1. Methods and Functions Questions
  • 70. • • • (70) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 12.1.1. Question: what is the output of the following program what is the output of the following program Please choose only one answer: Unknown (random value) Zero 3000 Author: Yasser Ibrahim main(){ int x; printf(“%d”,x); } Check the answer of this question online on QuizOver.com: Question: how to print int in C? Permalink: http://www.quizover.com/pdf/how-to-print-int-in-c
  • 71. • • • (71) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 12.1.2. Question: int multiply(int x, int y) { return x*y; } int multiply(int x, int y) { return x*y; } Please choose only one answer: is correct has syntax error causes run-time error Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: How to write C method? Permalink: http://www.quizover.com/pdf/how-to-write-c-method
  • 72. • • • (72) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 12.1.3. Question: What is the output of the following program: What is the output of the following program: Please choose only one answer: 5 7 unknown Author: JavaChamp Team int change( int x ) { x = 7; return(x); } main(){ int x = 5; change(x); printf(“%d”,x); } Check the answer of this question online on QuizOver.com: Question: How to write a method in c? Permalink: http://www.quizover.com/pdf/how-to-write-a-method-in-c
  • 73. • • • (73) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 12.1.4. Question: What is the output of the following program: What is the output of the following program: Please choose only one answer: 8 unknown both wrong Author: Yasser Ibrahim int sum( int x, int y ) { return (x + y); } main(){ int x = 5 , y = 3; printf(“%d”, sum(x,y)); } Check the answer of this question online on QuizOver.com: Question: How to write and call method? Permalink: http://www.quizover.com/pdf/how-to-write-and-call-method
  • 74. • • • (74) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 12.1.5. Question: what is the output of the following program what is the output of the following program Please choose only one answer: 8 unknown both wrong Author: JavaChamp Team int sum( int x, int y ) { int z = x + y; } main(){ int x = 5 , y = 3; printf(“%d”, sum(x,y)); } Check the answer of this question online on QuizOver.com: Question: return value in c method? Permalink: http://www.quizover.com/pdf/return-value-in-c-method
  • 75. • • • (75) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 12.1.6. Question: what is the output of the following program what is the output of the following program Please choose only one answer: 5 7 unknown Author: JavaChamp Team int change( int x ) { x = 7; } main(){ int x = 5; change(x); printf(“%d”,x); } Check the answer of this question online on QuizOver.com: Question: pass by value in C? Permalink: http://www.quizover.com/pdf/pass-by-value-in-c
  • 76. (76) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 13. Chapter: Identifiers and Variables 1. Identifiers and Variables Questions
  • 77. • • • (77) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 13.1.1. Question: Which of the following identifiers is a legal identifier: Which of the following identifiers is a legal identifier: Please choose only one answer: my mark my_mark my-mark Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: how to declare a valid variable in C? Permalink: http://www.quizover.com/pdf/how-to-declare-a-valid-variable-in-c
  • 78. • • • (78) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 13.1.2. Question: consider the following variables declaration statement: int age,... consider the following variables declaration statement: int age, AGE; Please choose only one answer: Correct statement, the compiler uses age and AGE as completely different variables. Correct statement, the compiler uses age and AGE as the same variable. Wrong statement, because you can’t declare more than one variable with the same name. Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: How to declare C valid variable? Permalink: http://www.quizover.com/pdf/how-to-declare-c-valid-variable
  • 79. • • • (79) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 13.1.3. Question: To define a constant ABC with value 358: To define a constant ABC with value 358: Please choose only one answer: #define ABC = 358 #define ABC = 358 ; #define ABC 358 Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: how to define a constant in C? Permalink: http://www.quizover.com/pdf/how-to-define-a-constant-in-c
  • 80. • • • (80) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 13.1.4. Question: The variables in C programming language: The variables in C programming language: Please choose only one answer: Must be declared before being used. Can be used without declaration Can be used before declaration Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: variable declaration in C Permalink: http://www.quizover.com/pdf/variable-declaration-in-c
  • 81. • • • (81) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 13.1.5. Question: What is the role of variables in programming languages: What is the role of variables in programming languages: Please choose only one answer: Perform standard functions like printing to the screen Data storage Both correct Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: variable role in C Permalink: http://www.quizover.com/pdf/variable-role-in-c
  • 82. • • • (82) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 13.1.6. Question: Which of the following identifiers is a legal identifier? Which of the following identifiers is a legal identifier? Please choose only one answer: abc#* #+abc abc Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: how to declare C legal iedntifier? Permalink: http://www.quizover.com/pdf/how-to-declare-c-legal-iedntifier
  • 83. • • • (83) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 13.1.7. Question: Which of the following identifiers is a legal identifier : Which of the following identifiers is a legal identifier : Please choose only one answer: 1abc abc 1 abc1 Author: Yasser Ibrahim Check the answer of this question online on QuizOver.com: Question: lega Identifier rules in C Permalink: http://www.quizover.com/pdf/lega-identifier-rules-in-c
  • 84. (84) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 14. Chapter: Data Types 1. Data Types Questions
  • 85. • • • (85) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 14.1.1. Question: If MSB of a binary number is "0" then it is: If MSB of a binary number is "0" then it is: Please choose only one answer: Odd number Even number Positive number Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: MSB in C Permalink: http://www.quizover.com/pdf/msb-in-c
  • 86. • • • (86) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 14.1.2. Question: what is the best choice to store the number of university students: what is the best choice to store the number of university students: Please choose only one answer: char n = 20000; float n = 20000; int n = 20000; Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: Data types in C Permalink: http://www.quizover.com/pdf/data-types-in-c
  • 87. • • • (87) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 14.1.3. Question: If LSB of a binary number is "0" then it is: If LSB of a binary number is "0" then it is: Please choose only one answer: Positive number Even number Odd number Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: LSB in C Permalink: http://www.quizover.com/pdf/lsb-in-c
  • 88. • • • (88) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 14.1.4. Question: The highest digit in any number system equals: The highest digit in any number system equals: Please choose only one answer: Zero Base - 1 Base + 1 Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: max value in number system Permalink: http://www.quizover.com/pdf/max-value-in-number-system
  • 89. • • • (89) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 14.1.5. Question: what is the storage size of the float data type (float)? what is the storage size of the float data type (float)? Please choose only one answer: 1 byte 2 byte 4 byte Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: float storage size in C Permalink: http://www.quizover.com/pdf/float-storage-size-in-c
  • 90. • • • (90) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 14.1.6. Question: what is the best choice to store the natural number PI = 3.1459 what is the best choice to store the natural number PI = 3.1459 Please choose only one answer: int pi = 3.1459; char pi = 3.1459; float pi = 3.1459; Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: different C data types Permalink: http://www.quizover.com/pdf/different-c-data-types
  • 91. • • • (91) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 14.1.7. Question: what is the storage size of the integer data type (char)? what is the storage size of the integer data type (char)? Please choose only one answer: 1 byte 2 byte 4 byte Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: char storage size in C Permalink: http://www.quizover.com/pdf/char-storage-size-in-c
  • 92. • • • (92) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 14.1.8. Question: what is the storage size of the float data type (int)? what is the storage size of the float data type (int)? Please choose only one answer: 1 byte 2 byte 4 byte Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: int storage size in C Permalink: http://www.quizover.com/pdf/int-storage-size-in-c
  • 93. • • • (93) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 14.1.9. Question: to assign the value of integer x into character ch where: int x = ... to assign the value of integer x into character ch where: int x = 5; char ch; Please choose only one answer: ch = x; ch = ascii(x); x = ch; Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: how to assign int into char in C? Permalink: http://www.quizover.com/pdf/how-to-assign-int-into-char-in-c
  • 94. (94) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 15. Chapter: Strings 1. Strings Questions
  • 95. • • • (95) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 15.1.1. Question: To copy a string into another, given: char s1[30] = "xyz", s2[20]; To copy a string into another, given: char s1[30] = "xyz", s2[20]; Please choose only one answer: s2 = s1; strcpy(s2,s1); Both wrong Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: How to copy a string into another in C? Permalink: http://www.quizover.com/pdf/how-to-copy-a-string-into-another-in-c
  • 96. • • • (96) Powered by QuizOver.com - http://www.quizover.com QuizOver.com is the leading online quiz & exam creator Copyright (c) 2009-2014 all rights reserved 15.1.2. Question: to concatenate two strings into third string, given : char s1[30] ... to concatenate two strings into third string, given : char s1[30] = "hi", s2[20] = "world", s3[10]; Please choose only one answer: s3 = s1 + s2; strcpy(s3,s1);strcat(s3,s2); s3 = strcat(s1,s2); Author: JavaChamp Team Check the answer of this question online on QuizOver.com: Question: how to concatenate strings in C? Permalink: http://www.quizover.com/pdf/how-to-concatenate-strings-in-c