No student devices needed. Know more
20 questions
Who is the father of C-Language?
Steve Jobs
James Gosling
Dennis Ritche
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 known as Exit Controlled Loop?
for loop
do while loop
while loop
All of these
Which is the correct example of declaring functions?
int add(int [],int);
int add(int, int);
int add(int a, int b);
All of these
Strcmp() is used to ___________.
Find the length of the string.
Copies one string over another.
Compare two strings.
Concatenates two strings.
What is the value of "z" in this code?
The value of z is 10
The value of z is 15
The value of z is 15.6
The value of z is 16
What will be the output of this code?
OK
KO
Depends on compiler
Depends on standard
All keywords in C are ________.
lowercase
uppercase
Camelcase
None of these
What is the correct way of initializing an array in C?
int arr[4]= 1,2,3,4 ;
int arr[4]= (1,2,3,4) ;
int arr[4]= {1,2,3,4 };
int arr[4]= [1,2,3,4 ];
A function that calls itself is known as _________.
Repetation
Retention
Recursion
looping
What is structure in C?
It is a primary datatype.
It is a derived datatype.
It is a user defined datatype.
None of these
How to capture the string in C? (declared as- char str[100]; )
scanf( "%c", str);
scanf( "%s", str);
scanf( "%c", &str);
scanf( "%s", &str);
What is the output of this code?
1 1
5 1
1 5
1 13465
How many types of operators there are?
7
9
8
10
How to write a single line comment?
/* Comment */
/* Comment
//Comment//
//Comment
_________used to give tab spaces in c programming.
/n
\t
\r
\n
The program that translates your code from a high-level language to the binary language is called ________.
programmer
compiler
translator
linker
What is meant by "a" in the following C operation?
Attatch
Append
Apprehend
Add
1 byte =8 bits
True
False
scanf() is a predefined function of _______ header file.
stdlib.h
conio.h
stdio.h
stdarg.h
Explore all questions with a free account