C Programming Quizzes, Questions & Answers
Recent Quizzes
As you aim at getting the certification for computer operation there is need to be on your toes before the exam is due. Take up the quiz below and see what you need to polish up to get your practicing ticket. All the best and...
Questions: 71 | Attempts: 769 | Last updated: Mar 18, 2023
-
Sample QuestionThis feature prevents multiple threads from simultaneously modifying the state of the resource , by including various classes and data types.
*Please be reminded: when you answer the fill-in-the-blanks questions, do not use excessive/redundant -blanks- ,e.g.
enter:- if(a>b) ,
not if(a...
Questions: 12 | Attempts: 698 | Last updated: Feb 20, 2023
-
Sample QuestionA file (name.txt) containing a list of your classmates reads as below (ALL names follow immediately with a 'new line' character):What would be the output to the screen on running the code below:#include <stdio.h>main(){ char str1[20] = "Hello, boys"; char str2[100] = "God created the world in 7 days."; FILE *fp; fp=fopen("name.txt","r"); if (fp==NULL){ printf("Cant open !\n"); exit(1); } fgets(str1,12,fp); fgets(&str2[12],10,fp); printf("%s",str2); fclose(fp);}
C# is here Variable of reference type store the memory address of other variables in a Stack.
Questions: 65 | Attempts: 2001 | Last updated: Feb 20, 2023
-
Sample QuestionVariables of this data types store actual values.This value stored in a stack.
C is an amazing language that is easy to grasp at the same time. Take this C Loops: For, While, Do While Quiz! Test yourself today with the help of these carefully designed questions and find out just how much you know...
Questions: 14 | Attempts: 7155 | Last updated: Feb 19, 2024
-
Sample QuestionWhat is the output? for(int i=1; i<15; i=i+3) { out.print(i); }
Advertisement