+923132835245
safcodeinstitute@gmail.com
Online Quiz
10000+ Questions!
Students Works
Ideas & Topics!
Live Coding
HTML & CSS
Home
(current)
About
Courses
CIT
Web Designing
Graphic Designing
Web Development
Digital Marketing
WordPress + SEO
Artificial Intelligence (AI)
Shopify + WordPress Development
Tutorials
Feedback
Programming Notes
Enroll Now
Contact
Test Your Programming Skills with Safcode!
Here is all important interview / exams questions.
Student doing practice apptitude test on safcode platform.
Instruction: "Total Number of Questions: 20
Each question carry 10 mark , no negative marking"
Quiz Start
1. To use strcat() function, the ________ header file must be included in the program.
iostream.h
string.h
conio.h
stdio.h
View Answer
2. What is the default return type of a function?
void
int
float
char
View Answer
3. Which of the following functions can be used to increase the size of dynamically allocated array?
malloc()
memadjust()
realloc()
calloc()
View Answer
4. Which function would you use to convert 1.98 to 1?
floor()
ceil()
abs()
fabs()
View Answer
5. Every C program has access to which of the following files?
all of the above
stdin
stderr
stdout
View Answer
6. What is the length null string?
1
0
4
3
View Answer
7. Which of the following statements about functions is false?
A function can have multiple return statements with different return values
The main() function can be called recursively
The maximum number of arguments a function can take is 128
Functions cannot return more than one value at a time
View Answer
8. Which of the following has a global scope in the program?
Constants
Local variables
Macros
Formal parameters
View Answer
9. How much memory is required to store a value of type double?
10 bytes
6 bytes
4 bytes
8 bytes
View Answer
10. Who developed C languages?
Dennis Ritchie
Von Neuman
peter Norton
Ken Thomson
View Answer