NEW
Font size
Worksheetsc programming-Test 1
Total questions: 10
Worksheet time: 5mins
%d format specifier does
used to print an integer value.
used to print a string.
used to display a character value.
used to display a floating point value.
what is Global variable
A variable which is declared inside function
A variable which is declared outside function
The scope of a variable is available within a function in which they are declared.
Variables can be accessed only by those statements inside a function in which they are declared.
Who is the father of C language?
Steve Jobs
James Gosling
Dennis Ritchie
Rasmus Lerdorf
Which of the following is not a valid C variable name?
int number;
float rate;
int variable_count;
int $main;
Which of the following is true for variable names in C?
They can contain alphanumeric characters as well as special characters
It is not an error to declare a variable to be one of the keywords(like goto, static)
Variable names cannot start with a digit
Variable can be of any length
Which is valid C expression?
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
Which of the following cannot be a variable name in C?
volatile
true
friend
export
Which of the following declaration is not supported by C language?
String str;
char *str;
float str = 3e2;
Both String str; & float str = 3e2;
What is the result of logical or relational expression in C?
True or False
0 or 1
0 if an expression is false and any positive number if an expression is true
None of the mentioned
Functions in C Language are always
Internal
External
Both Internal and External
External and Internal are not valid terms for functions
