C-Programming Basics
Quiz
•
Computers
•
12th Grade
•
Medium
Evange Jeba
Used 935+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Processing- The CPU Quiz
Quiz
•
10th Grade - University
19 questions
Categories of Computers
Quiz
•
9th Grade - University
15 questions
Imaging and Design
Quiz
•
11th - 12th Grade
20 questions
Skill Competition Quiz 2024
Quiz
•
10th Grade - University
12 questions
1.2.4. Types of Programming Language
Quiz
•
12th Grade
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
16 questions
Online Search Skills
Quiz
•
7th - 12th Grade
17 questions
Grade 4 Computer Science Quiz
Quiz
•
4th Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
