C-Programming Basics

Quiz
•
Computers
•
12th Grade
•
Medium
Evange Jeba
Used 920+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly shows the hierarchy of arithmetic operations in C?
/ + * -
* - / +
+ - / *
/ * + -
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To print out 'a' as an integer and 'b' as a decimal, which of the following printf() statement will you use?
printf("%f %lf", a, b)
printf("%f %f", a, b)
printf("%d %f", a, b)
printf("%f %d", a, b)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not logical operator?
&
&&
||
!
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When does the code block following while(x<100) execute?
When x is less than one hundred
When x is greater than one hundred
When x is equal to one hundred
while it wishes
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Input/output function prototypes and macros are defined in which header file?
conio.h
stdlib.h
stdio.h
dos.h
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of this C code?
#include <stdio.h>
int main()
{
printf("Hello World! %d \n", x);
return 0;
}
Hello World! x;
Hello World! followed by a junk value
Compile time error
Hello World!
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a correct variable type?
int
real
float
char
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Programming Quiz 1-3 | LPE-101 by Mettle X

Quiz
•
9th - 12th Grade
15 questions
แบบทดสอบการเขียนโปรแกรมเบื้องต้น

Quiz
•
12th Grade - University
15 questions
Quiz on Intro to Linux

Quiz
•
12th Grade - University
18 questions
CS1 Unit 7 Review

Quiz
•
9th - 12th Grade
15 questions
กลางภาค ภาษาซี

Quiz
•
9th - 12th Grade
20 questions
Javascript Basic

Quiz
•
9th - 12th Grade
21 questions
Struktur kawalan ulangan

Quiz
•
1st - 12th Grade
15 questions
Quiz - 10 on switch in C

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade