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 2
* Indicates required question
Name
*
Your answer
Register No.
*
Your answer
1.What is the other name for C Language ?: ( Question Mark Colon Operator)
*
1 point
Comparison Operator
If-Else Operator
Binary Operator
Ternary Operator
2.Choose a syntax for C Ternary Operator from the list.
*
1 point
condition ? expression1 : expression2
condition : expression1 ? expression2
condition ? expression1 < expression2
condition < expression1 ? expression2
3.Choose correct statement about Functions in C Language.
*
1 point
A Function is a group of c statements which can be reused any number of times.
Every Function has a return type.
Every Function may no may not return a value.
All the above.
4.A function which calls itself is called a ___ function.
*
1 point
Self Function
Auto Function
Recursive Function
Static Function
5.How many values can a C Function return at a time.?
*
1 point
Only One Value
Maximum of two values
Maximum of three values
Maximum of 8 values
6.What are types of Functions in C Language.?
*
1 point
Library Functions
User Defined Functions
Both Library and User Defined
None of the above
7.Choose correct statements about C Language Pass By Value.
*
1 point
Pass By Value copies the variable value in one more memory location.
Pass By Value does not use Pointers.
Pass By Value protects your source or original variables from changes in outside functions or called functions.
All the above
8.What is an Array in C language.?
*
1 point
A group of elements of same data type.
An array contains more than one element
Array elements are stored in memory in continuous or contiguous locations.
D) All the above.
9.An array Index starts with.?
*
1 point
-1
0
1
2
10.An entire array is always passed by ___ to a called function.
*
1 point
Call by value
Call by reference
Address relocation
Address restructure
11.What happens when you try to access an Array variable outside its Size.?
*
1 point
Compiler error is thrown
0 value will be returned
1 value will be returned
Some garbage value will be returned.
12.Can we change the starting index of an array from 0 to 1 in any way.?
*
1 point
Yes. Through pointers.
Yes. Through Call by Value.
Yes. Through Call by Reference.
None of the above.
13.What is a multidimensional array in C Language.?
*
1 point
It is like a matrix or table with rows and columns
It is an array of arrays
To access 3rd tow 2nd element use ary[2][1] as the index starts from 0 row or column
All the above.
14.What is the function used to allocate memory to an array at run time with Zero initial value to each.?
*
1 point
calloc()
malloc()
palloc()
kalloc()
15.What is the function used to allocate memory to an array at run time without initializing array elements.?
*
1 point
calloc()
malloc()
palloc()
kalloc()
16.What is a String in C Language.?
*
1 point
String is a new Data Type in C
String is an array of Characters with null character as the last element of array.
String is an array of Characters with null character as the first element of array
String is an array of Integers with 0 as the last element of array.
17.What is the Format specifier used to print a String or Character array in C Printf or Scanf function.?
*
1 point
%c
%C
%s
%w
18.What is the maximum length of a C String.?
*
1 point
32 characters
64 characters
256 characters
None of the above
19.A character constant is enclosed by?
*
1 point
Left Single Quotes
Right Single Quotes
Double Quotes
None of the above
20.What is a structure in C language.?
*
1 point
A structure is a collection of elements that can be of same data type.
A structure is a collection of elements that can be of different data type.
Elements of a structure are called members.
All the above
21.What are the uses of C Structures.?
*
1 point
structure is used to implement Linked Lists, Stack and Queue data structures
Structures are used in Operating System functionality like Display and Input taking.
Structure are used to exchange information with peripherals of PC
All the above
22.What is actually passed if you pass a structure variable to a function.?
*
1 point
Copy of structure variable
Reference of structure variable
Starting address of structure variable
Ending address of structure variable
23.Choose a correct statement about structure and array.?
*
1 point
An array stores only elements of same type. Accessing elements is easy.
A structure is preferred when different type elements are to be combined as a single entity.
An array implementation has performance improvements to structure
All the above
24.What are the types of C Preprocessor Directives.?
*
1 point
Macros
Conditional Compilation
File Inclusion
All the above
25.What are the types of data allowed inside a structure.?
*
1 point
int, float, double, long double
char, enum, union
pointers and Same structure type members
All the above
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
Sign in to continue
Cancel
sign in
To fill out this form, you must be signed in. Your identity will remain anonymous.
Report Abuse
Cancel
sign in