C Programming Quizzes, Questions & Answers
Recent Quizzes
This aptitude test focuses on assessing skills in C programming, specifically related to pointers and strings. It includes practical questions on structure access, pointer operations, and string manipulation, essential for...
Questions: 15 | Attempts: 1134 | Last updated: Mar 16, 2023
-
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?
This Aptitude test on C-Programming focuses on pointers and strings. It assesses understanding through questions on pointer operations, structure access, and string manipulations, essential for proficiency in C programming.
Questions: 15 | Attempts: 2353 | Last updated: May 21, 2024
-
Sample QuestionAre the expression *ptr++ and ++*ptr are same?
Did you know that the C programming language is a general procedural computer programming language supporting structured programming? It has discovered maximum use in applications that were formerly encoded in assembly language....
Questions: 10 | Attempts: 249 | Last updated: Oct 21, 2024
-
Sample Questionmain() { char *ptr1 = “abcdef”; ptr1 = ptr1 + (strlen(ptr1)-1); printf(“%c”,--*ptr1--); printf(“%c”,--*--ptr1); printf(“%c”,--*(ptr1--)); printf(“%c”,--*(--ptr1)); printf(“%c”,*ptr1); }
Intro to C Programming Quiz 2 assesses fundamental skills in C programming. It covers topics such as loop structures, variable usage, and program testing, providing learners with practical challenges to enhance their...
Questions: 11 | Attempts: 1451 | Last updated: Feb 20, 2023
-
Sample QuestionThe body of a while loop may never get executed.
Play this amazing quiz that covers the questions related to introduction to C programming. whether you are a hardcore C programmer or just have started learning about it, playing this quiz will absolutely benefit you and...
Questions: 20 | Attempts: 12878 | Last updated: Jan 13, 2025
-
Sample QuestionA placeholder begins with the symbol _____.
C language is the first language that most programmers get introduced to programming. The quiz below is a sample test to show you the questions you would expect to get in your papers come exam time. Give it a try and all the...
Questions: 40 | Attempts: 3959 | Last updated: Mar 22, 2023
-
Sample QuestionIdentify the loop construct:
The 'Fundamental C Test1' assesses foundational knowledge in C programming. It covers syntax errors, function purposes, identifiers, data ranges, and logic in C programs, essential for beginners to understand and apply basic C...
Questions: 40 | Attempts: 1695 | Last updated: Aug 19, 2023
-
Sample QuestionWhat type of errors are checked during compilation
This quiz is based on what we have covered so far. It also includes what was discussed on Monday class. Remember that you can take the quiz TWO times at most.
Questions: 25 | Attempts: 349 | Last updated: Feb 20, 2023
-
Sample QuestionNumber 1 is a legal name for variables in C language.
HI GUYS!!!THIS QUIZ LIKE TEST IS RELATED TO FUNDAMENTAL MODULE TEST IN CTS. WHICH WILL BE VERY USEFUL FOR YOU TO SELF-TEST YOUR SKILLS!!!TOPICS COVERED ARE:->PROBLEM SOLVING IN C.->DATA STRUCTURES IN...
Questions: 16 | Attempts: 3060 | Last updated: Mar 21, 2023
-
Sample Question1. create table { empno numeric (4) constraint emp_prim primary keyEmpname varchar2 (20) constraint emp_const check(empname = upper(empname))}
*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: 702 | 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);}
Advertisement