Quiz Computer Science
C Programming Questions and Answers – Random Number Generation
C Programming Questions and Answers – Random Number Generation 1.The function srand(unsigned) a) Sets the seed for rand b)…
Read More »C Programming Questions and Answers – Mathematical Functions
C Programming Questions and Answers – Mathematical Functions 1.What is the output of this C code? #include <stdio.h> #include…
Read More »C Programming Questions and Answers – Storage Management
C Programming Questions and Answers – Storage Management 1.The function ____ obtains block of memory dynamically. a) calloc b)…
Read More »C Programming Questions and Answers – Ungetc
C Programming Questions and Answers – Ungetc 1.ungetc can be used only with getc. a) true b) false c)…
Read More »C Programming Questions and Answers – Character Class Testing & Conversions
C Programming Questions and Answers – Character Class Testing & Conversions 1.Which of the following library function is not…
Read More »C Programming Questions and Answers – String Operations
C Programming Questions and Answers – String Operations 1.What is the output of this C code? #include <stdio.h> int…
Read More »C Programming Questions and Answers – Line Input & Output
C Programming Questions and Answers – Line Input & Output 1.The syntax of fgets is char *fgets(char *line, int…
Read More »C Programming Questions and Answers – Error Handling
C Programming Questions and Answers – Error Handling 1.What is the output of this C code if there is…
Read More »C Programming Questions and Answers – File Access
C Programming Questions and Answers – File Access 1.The first and second arguments of fopen are a) A character…
Read More »C Programming Questions and Answers – Formatted Input
C Programming Questions and Answers – Formatted Input 1.What is the output of this C code? #include <stdio.h> int…
Read More »