C-Programming Basics

Quiz
•
Computers
•
12th Grade
•
Medium
Evange Jeba
Used 905+ 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
20 questions
Java Kena Mental

Quiz
•
12th Grade
20 questions
Python Programming Quiz

Quiz
•
10th Grade - University
20 questions
Python variables and operators quiz

Quiz
•
9th - 12th Grade
21 questions
Programming - Python (year 12)

Quiz
•
9th - 12th Grade
20 questions
Python -Iteration (loops)

Quiz
•
7th - 12th Grade
15 questions
Python Basics Quiz 1

Quiz
•
8th Grade - University
20 questions
Quiz Pemrograman Phyton

Quiz
•
9th - 12th Grade
15 questions
Quiz Pelatihan Pengenalan Bahasa Pemrograman C Part 1

Quiz
•
12th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade