stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Do We Know Yet? Flashcards | StudBud
Explore
/
Do We Know Yet?
Do We Know Yet?
20 terms
·
StudBud Administration
·
60 plays
An introduction to C programming
Flashcards
20 cards
F
Practice quiz
P
Host live
L
Questions
20
Answers
1
Every variable has all the attributes below, expect
alias
type
value
name
2
Which of the following is NOT a valid integer value.
1.1
-3
0
21345859
3
Variable names actually corresponds to
locations in the computer's memory
data types
operators
integers
4
Which of the following is an INVALID identifier (variable name)
TEST
5test
_Test
test1
5
C programming is Case Sensitive
True
False
6
Some of the applications for C are
Operating Systems
Embedded Systems
Simulators
All of the above
7
What is a constant?
It is same as the variable
A value once declared cannot be modified
A value that keeps changing constantly
It does not exist
8
A function can be used multiple times by calling it
False
True
9
How does a bitwise XOR operator works?
If both the bits are 1 it gives 1
If both bits are 0 gives 0 else 1
If both bits are the same it gives 1 else 1
If both bits are the same it gives 0 else 1
10
X=++a, what is the value of X and a when a=18
X=18, a=18
X=18, a=19
X=19, a=19
X=19, a=18
11
When a number gets assigned to a variable that already has a value
new number gets assigned to a different memory location
the new value is destroyed and the old value remains
the new number value overwrites the previous vale
the computer issues an error
12
C is a structured programming language
False
True
13
Which Operating System Kernel was written in C
C
Python
UNIX
Basics
14
Which of the following must every C program have?
<stdio.h>
main()
#include
/*
15
Every C statement must end with a
period (.)
colon (:)
semicolon (;)
backslash (/)
16
int main() - the parentheses indicate that main is a program building block called a
module
directive
function
statement
17
How many bit positions to which side are moved in this expression a>>7;
7 bits to left
7 bits are moved either way
7 bits to right
No bits are moved
18
Scanf () function is used to
Read the values already assigned to the variables
It displays ouput
It calls another function
Takes the variable values as input form the user
19
What is the associativity of Assignment Operators ( a*=c) ?
L to R
All of the above
Based on the operands
R to L
20
C is a
Middle Level Language
High Level Language
Low Level Language
Machine Language