
C Programming Quiz

Quiz
•
Computers
•
University
•
Hard
Jyothi Battini
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a correct syntax to output "Hello World" in C?
Console.WriteLine(“HelloWorld”);
System.out.println(“HelloWorld”);
cout<<”HelloWorld”;
printf(“HelloWorld”);
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you insert COMMENTS in C code?
—This is a comment
#This is a comment
//This is a comment
/*This is a comment*/
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When a variable is created in C, a memory address is assigned to the variable.
True
False
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In C, code statements must end with a semicolon (;)
True
False
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How can you create a variable with the numeric value 5?
valnum=5;
num=5;
num=5int;
int num=5;
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How can you create a variable with the floating number 2.8?
float num=2.8;
valnum=2.8;
num=2.8float;
num=2.8double;
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which operator is used to add together two values?
The & sign
The ADD keyword
The * sign
The + sign
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
C program MCQ contest

Quiz
•
University
50 questions
BSIT1104 CP PL Exam

Quiz
•
University
50 questions
SKILL QUIZ

Quiz
•
University
50 questions
LATIHAN SOAL

Quiz
•
10th Grade - University
50 questions
Programming Paradigm using 'C' Quiz 4

Quiz
•
University
45 questions
Fundamentos-Programacion

Quiz
•
University
50 questions
lập trình C2

Quiz
•
University
50 questions
UAS Pemrograman SQL II

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University