What is a correct syntax to output "Hello World" in C?

C-BASICS

Quiz
•
Computers
•
University
•
Hard
JENEFA NAVEEN
Used 3+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
printf("Hello World");
System.out.printline("Hello World");
Console.WriteLine("Hello World");
cout << "Hello World";
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to declare a integer variable in C?
int x;
String x;
float x;
boolean x;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following C code snippet?
int x = 5;
int y = 3;
printf("%d", x + y);
8
53
15
35
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to write a for loop in C?
for(int i = 0; i < 10; i++)
for i = 0; i < 10; i++
for i = 0; i < 10
for(int i = 0; i < 10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to define a function in C?
void functionName() {}
functionName() {}
def functionName() {}
function functionName() {}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store decimal numbers in C?
int
char
float
double
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to compare two variables in C?
x == y
x = y
x === y
x != y
Create a free account and access millions of resources
Similar Resources on Quizizz
30 questions
Computer Programming-2

Quiz
•
University
20 questions
Programming in C(1)

Quiz
•
University
20 questions
AlgoProg - Review Quiz

Quiz
•
University
20 questions
Geeks for Geeks PCCOER Info Session CP Quiz

Quiz
•
University
20 questions
C Programming Unit-1 Test-2

Quiz
•
University
20 questions
Fianal JAVA OOP

Quiz
•
University
20 questions
Code Junction 4

Quiz
•
University
20 questions
TECHFEST QUALIFYING ROUND

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade