Advertisement
Advertisement
12th Grade C Quizzes, Questions & Answers
Recent C Quizzes
Questions: 10 | Attempts: 1750 | Last updated: Mar 21, 2025
-
Sample Question#include<stdio.h> void main() { struct emp { char name[20]; int age; float sal; }; struct emp e={"Tiger"}; printf("\n %d %f",e.age,e.sal); }
Questions: 15 | Attempts: 1135 | Last updated: Mar 16, 2025
-
Sample QuestionIf a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?
Questions: 15 | Attempts: 2419 | Last updated: May 21, 2025
-
Sample QuestionAre the expression *ptr++ and ++*ptr are same?
Questions: 10 | Attempts: 13315 | Last updated: Mar 22, 2025
-
Sample QuestionC language has been developed by ?
Questions: 5 | Attempts: 284 | Last updated: Mar 17, 2025
-
Sample QuestionWhich type of language is C?
Questions: 6 | Attempts: 509 | Last updated: Mar 20, 2025
-
Sample QuestionThe characters in C are grouped into ____ categories.
Questions: 16 | Attempts: 1687 | Last updated: Oct 22, 2025
-
Sample QuestionGiven: import java.util.*;class Test { public static void main(String[] args) { // insert code here x.add("one"); x.add("two"); x.add("TWO"); System.out.printIn(x.poll()); }}
Questions: 25 | Attempts: 350 | Last updated: Feb 20, 2025
-
Sample QuestionNumber 1 is a legal name for variables in C language.
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);}
Advertisement