Which one in this code is literal?
int age = 25;
C- Geniusia
Quiz
•
Computers
•
University
•
Hard
Sanjeevrajan . E
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one in this code is literal?
int age = 25;
int
int age
25
=
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way to get input from user?
scanf ("%d", &var)
printf("%d", var)
printf (var)
scanf("%d", var)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Format specifier for double:
%d
%c
%f
%lf
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code?
#include<stdio.h>
intmain() {
int x=10;
printf("%d", x) ;
x=x+10;
printf("%d", x) ;
}
10 10
10 0
0 10
10 20
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of variable x?
int = x;
float a=x;
Integer
Float
Both Integer and float
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
#include <stdio.h>
int main() {
int a = 5;
printf("%d\n", a > -1);
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to represent logical AND operator in C?
And
and
&&
&
30 questions
C-Programming
Quiz
•
University
20 questions
Computer Fundamental and C Programming Concept
Quiz
•
University
20 questions
C - Strings
Quiz
•
University
20 questions
C - Structures
Quiz
•
University
20 questions
Pointers
Quiz
•
University
26 questions
C Language Basics
Quiz
•
University
26 questions
String in C Programming
Quiz
•
University
20 questions
1st Year quiz
Quiz
•
University
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