Safcode | Code Your Ideas by Sir Safder
+923132835245
safcodeinstitute@gmail.com
Online Quiz
10000+ Questions!
Students Works
Ideas & Topics!
Live Coding
HTML & CSS
Home
(current)
About
Courses
CIT
Web Designing
Office Automation
Graphics Designing
Web Development
Software Development
Digital Marketing
App Development
Amazon Virtual Assistant
YouTube Earning
WordPress Development
Tutorials
Feedback
Programming Notes
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. What is the length null string?
0
4
1
3
View Answer
2. Which of the following is not a reserved word in C langauge?
do
switch
goto
for
View Answer
3. To use strcat() function, the __________ header file must be included in the program.
math.h
string.h
stdio.h
conio.h
View Answer
4. Which of the following is not a storage class?
Extern
Register
Auto
Static
View Answer
5. Which of the following has a global scope in the program?
Formal parameters
Macros
Local variables
Constants
View Answer
6. Who developed C languages?
Ken Thomson
Dennis Ritchie
Von Neuman
peter Norton
View Answer
7. Calling one function from within another is said to be __________ of function calls.
Inner
Outer
None of them
Nesting
View Answer
8. Every C program has access to which of the following files?
stderr
all of the above
stdin
stdout
View Answer
9. Which function would you use to convert 1.98 to 1?
abs()
fabs()
ceil()
floor()
View Answer
10. Which of the following statements about functions is false?
The main() function can be called recursively
Functions cannot return more than one value at a time
The maximum number of arguments a function can take is 128
A function can have multiple return statements with different return values
View Answer
11. which of the following function can be used to deallocated memory when it is no longer needed?
None of these
Calloc()
Free()
Malloc()
View Answer
12. What is the default return type of a function?
void
float
char
int
View Answer
13. Which of the following functions can be used to increase the size of dynamically allocated array?
malloc()
realloc()
calloc()
memadjust()
View Answer
14. Pointers can be used to achieve?
call by procedure
call by name
call by reference
call by function
View Answer
15. ________ form a base of any C program.
Struct
All of them
Code of block
Instruction
View Answer
16. To use strcat() function, the ________ header file must be included in the program.
stdio.h
iostream.h
conio.h
string.h
View Answer
17. A __________ group together a number of data items, which need not be of the same data type.
Structure
Block
Array
Variable
View Answer
18. How much memory is required to store a value of type double?
8 bytes
4 bytes
10 bytes
6 bytes
View Answer
19. What is the range of double data type for a 16-bit compiler?
-1.7e-328 to +1.7e-328
-1.7e-308 to +1.7e-308
-1.7e-328 to +1.7e-328
-1.7e-348 to +1.7e-348
View Answer
20. A variable declared with ____ modifier can retain its value during function calls.
const
extern
static
volatile
View Answer