WorksheetsBasics of C Programming
Total questions: 20
Worksheet time: 3mins
Who invented C Language.?
Charles Babbage
Grahambel
Dennis Ritchie
Steve Jobs
C Language is a successor to which language.?
FORTRAN
D Language
BASIC
B Language
C is a which level language.?
Low Level
Low + High
High Level
None
Low level language is .?
Human readable like language.
language with big program size.
language with small program size.
Difficult to understand and readability is questionable.
High level language is a .?
Human readable like language.
language with small program size.
language with big program size.
language which is difficult to understand and not human readable.
Which statement outputs "Hello World.." .?
scanf("Hello World..");
print("Hello World..");
printf("Hello World..");
scan("Hello World..");
C is _______ type of programming language.?
Object Oriented
Procedural
Bit level language
Functional
C language was invented in which laboratories.?
Uniliver Labs
IBM Labs
AT&T Bell Labs
Verizon Labs
C language was invented to develop which Operating System.?
Android
Linux
Ubuntu
Unix
C language was invented in the year.?
1999
1978
1972
1990
C language is used in the development of .?
Databases
Graphic applications
Word Processors
All of the above
A C program is a combination of.?
Statements
Functions
Variables
All of the above
Correct way of commenting a single line is.?
/*printf("Hello C..");
//printf("Hello C..");
/*printf("Hello C..");*/
/printf("Hello C..");/
What is an Identifier in C Language.?
Name of a Function or Variable
Name of a Macros
Name of Structure or Union
All the above.
Correct way of commenting a multiple line is.?
/*printf("Hello C..");
printf("Hello C..");
//printf("Hello C..");
printf("Hello C..");
/*printf("Hello C..");
printf("Hello C..");*/
/printf("Hello C..");
printf("Hello C..");/
An Identifier may contain.?
Letters a-z, A-Z in Basic character set.
Underscore _ symbol
Numbers 0 to 9
All the above
An Identifier can start with.?
Alphabet
Underscore ( _ ) sign
Any character that can be typed on a keyboard
Option A & Option B
C Programs are used in .?
Any Electronic device which works on some logic and Operating System.
Washing machine
Fridge, Microwave Ovens
All the above.
What are the types of Constants in C Language.?
String Constants
Numeric Constants
Both A and B
Basic Constants and Advanced Constants
Choose correct statements
A constant value does not change and variable value can change according to needs.
A constant can change its values and variable value can not change according to needs.
Constants and Variables can not be used in a singe main function.
There is no restriction on number of values for constants or variables.
