JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
Taranath Shikshana Samsthe, Laxmi Venkatesh Desai College, Raichur. Department of Computer Science
C Programming Assessment 1
* Indicates required question
Name
*
Your answer
Register No.
*
Your answer
1. Who is the father of C language?
*
1 point
Steve Jobs
b James Gosling
Dennis Ritchie
Rasmus Lerdorf
2. Which of the following is not a valid C variable name?
*
1 point
int number;
float rate;
int variable_count;
int $main;
3. All keywords in C are in ____________
*
1 point
LowerCase letters
UpperCase letters
CamelCase letters
None of the mentioned
4. Which of the following is true for variable names in C?
*
1 point
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
5. Which is valid C expression?
*
1 point
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
6. Which of the following cannot be a variable name in C?
*
1 point
volatile
true
friend
export
7. What is short int in C programming?
*
1 point
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
8. Which of the following declaration is not supported by C language?
*
1 point
String str;
char *str;
float str = 3e2;
Both String str; & float str = 3e2;
9. Which keyword is used to prevent any changes in the variable within a C program?
*
1 point
immutable
mutable
const
volatile
10. What is the result of logical or relational expression in C?
*
1 point
None of the mentioned
0 or 1
0 if an expression is false and any positive number if an expression is true
True or False
11.Where in C the order of precedence of operators do not exist?
*
1 point
Within conditional statements, if, else
Within a macro definition
Within while, do-while
None of the mentioned
12.Which of the following is NOT possible with any 2 operators in C?
*
1 point
a) Different precedence, same associativity
b) Different precedence, different associativity
c) Same precedence, different associativity
d) All of the mentioned
13.What is an example of iteration in C?
*
1 point
true
false
depends on the compiler
depends on the standard
14.Functions can return enumeration constants in C?
*
1 point
true
false
depends on the compiler
depends on the standard
15.Functions in C Language are always _________
*
1 point
Internal
External
Both Internal and External
External and Internal are not valid terms for functions
16.Which of following is not accepted in C?
*
1 point
static a = 10; //static as
static int func (int); //parameter as static
static static int a; //a static variable prefixed with static
all of the mentioned
17.Property which allows to produce different executable for different platforms in C is called?
*
1 point
File inclusion
Selective inclusion
Conditional compilation
Recursive macros
18.What is #include <stdio.h>?
*
1 point
Preprocessor directive
Inclusion directive
File inclusion directive
None of the mentioned
19.Which of the following are C preprocessors?
*
1 point
#ifdef
#define
#endif
all of the mentioned
20.The C-preprocessors are specified with _________ symbol.
*
1 point
#
$
” ”
&
21.Which of the following is the correct method array declaration
*
1 point
int num(10)
int array num[10]
int num[10]
num[10]
22.An array index always starts with which of the following
*
1 point
0
1
-1
none of the above
23.Which one follows the case statement?
*
1 point
:
;
"
.
24..Which of the declaration is correct?
*
1 point
int length;
int lenth();
char int length;
int length[];
25.What is the only function all C program must contain?
*
1 point
start()
system()
main()
program()
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. -
Terms of Service
-
Privacy Policy
Does this form look suspicious?
Report
Forms
Help and feedback
Contact form owner
Help Forms improve
Report