Advertisement
Advertisement
C Quizzes, Questions & Answers
Recent C Quizzes
Questions: 16 | Attempts: 3060 | Last updated: Mar 21, 2025
-
Sample Question1. create table { empno numeric (4) constraint emp_prim primary keyEmpname varchar2 (20) constraint emp_const check(empname = upper(empname))}
Questions: 12 | Attempts: 703 | Last updated: Feb 20, 2025
-
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);}
Questions: 14 | Attempts: 7257 | Last updated: Feb 19, 2025
-
Sample QuestionWhat is the output? for(int i=1; i<15; i=i+3) { out.print(i); }
Questions: 10 | Attempts: 11074 | Last updated: Apr 21, 2025
-
Sample Questionvoid main() { int const * p=5; printf("%d",++(*p)); }
Advertisement