What will be the output of the C code?

C Basic_Questions_1

Quiz
•
Information Technology (IT)
•
University
•
Hard
Dinesh Kushwaha
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hello World! x;
Hello World! followed by a junk value
Compile time error
Hello World!
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The format identifier ‘%i’ is also used for _____ data type.
char
int
float
double
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true for variable names in C?
They can contain alphanumeric characters as well as special characters
It is not an error to declare a variable to be one of the keywords(like goto, static)
Variable names cannot start with a digit
ariable can be of any length
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is valid C expression?
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
Compile time error
Hello World! 34
Hello World! 1000
Hello World! followed by a junk value
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will happen if the following C code is executed?
It will cause a compile-time error
It will cause a run-time error
It will run without any error and prints 3
It will experience infinite looping
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Directives are translated by the
Pre-processor
Compiler
Linker
Editor
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python for loop/lists

Quiz
•
9th Grade - University
15 questions
Java_MCQ_3

Quiz
•
University
15 questions
Python_MCQ_2

Quiz
•
University
12 questions
Review loops

Quiz
•
8th Grade - University
10 questions
OOP-Q1

Quiz
•
University
10 questions
C-Volution (Hard)

Quiz
•
University
9 questions
Kiến thức về hàm print() trong Python

Quiz
•
2nd Grade - University
12 questions
Java_Quiz_Part_2

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade